Class ScriptCondition
java.lang.Object
org.camunda.bpm.engine.impl.scripting.ScriptCondition
- All Implemented Interfaces:
Condition
A
Condition which invokes a ExecutableScript when evaluated.- Author:
- Sebastian Menski
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(DelegateExecution execution) Evaluates the condition and returns the result.booleanevaluate(VariableScope scope, DelegateExecution execution) Evaluates the condition and returns the result.booleantryEvaluate(VariableScope scope, DelegateExecution execution) Tries to evaluate the condition.
-
Field Details
-
script
-
-
Constructor Details
-
ScriptCondition
-
-
Method Details
-
evaluate
Description copied from interface:ConditionEvaluates the condition and returns the result. The scope will be the same as the execution. -
evaluate
Description copied from interface:ConditionEvaluates the condition and returns the result. -
tryEvaluate
Description copied from interface:ConditionTries to evaluate the condition. If the property which is used in the condition does not exist false will be returned.- Specified by:
tryEvaluatein interfaceCondition- Parameters:
scope- the variable scope which can differ of the executionexecution- the execution which is used to evaluate the condition- Returns:
- the result
-
getScript
-