Path: / API / runtimeAPI / evaluateGroovyExpression / {instanceUUID} / {propagate}

Evaluates an expression using Groovy. If more than one Groovy expressions are in the expression, they must start with ${ and finish with }. It returns an Object if the expression is an only Groovy one or a String if the expression contains String and or more than one Groovy expression.

Path parameters:
instanceUUID - the process instance UUID
propagate - true if true, the values modified by Groovy update Bonita variables

Method Summary
ResourceDescription
POST /API/runtimeAPI/evaluateGroovyExpression/{instanceUUID}/{propagate}Evaluates an expression using Groovy.

Method Detail
HTTP Example:
POST /API/runtimeAPI/evaluateGroovyExpression/{instanceUUID}/{propagate}

expression=&options=
API Example:

AbstractRemoteRuntimeAPI.evaluateGroovyExpression({'instanceUUID': /* instanceUUID the process instance UUID */,
  'propagate': /* propagate true if true, the values modified by Groovy update Bonita variables */,
  'expression': /* expression the expression */,
  'options': /* options the options map (domain, queyList, user) */});

Evaluates an expression using Groovy. If more than one Groovy expressions are in the expression, they must start with ${ and finish with }. It returns an Object if the expression is an only Groovy one or a String if the expression contains String and or more than one Groovy expression.

Output:
java.lang.Object - either an Object if the expression is a Groovy one or a String
Form parameters:
expression - the expression
options - the options map (domain, queyList, user)
Produces:
text/*
application/xml
Consumes:
application/x-www-form-urlencoded
application/xml