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:
propagate - if true, the values modified by Groovy update Bonita variables
POST /API/runtimeAPI/evaluateGroovyExpressionWithContext/{processInstanceUUID}/{propagate}
expression=…&context=…&options=…
API Example:
AbstractRemoteRuntimeAPI.evaluateGroovyExpression({'propagate': /* propagate if true, the values modified by Groovy update Bonita variables */, 'processInstanceUUID': /* processInstanceUUID the process instance UUID */, 'expression': /* expression the expression */, 'context': /* context the extra variables added in the Groovy context */, '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
context - the extra variables added in the Groovy context
options - the options map (domain, queyList, user)