Package org.camunda.bpm.engine.impl
Interface Condition
-
- All Known Implementing Classes:
ScriptCondition
,UelExpressionCondition
public interface Condition
- Author:
- Tom Baeyens, Christopher Zell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
evaluate(DelegateExecution execution)
Evaluates the condition and returns the result.boolean
evaluate(VariableScope scope, DelegateExecution execution)
Evaluates the condition and returns the result.boolean
tryEvaluate(VariableScope scope, DelegateExecution execution)
Tries to evaluate the condition.
-
-
-
Method Detail
-
evaluate
boolean evaluate(DelegateExecution execution)
Evaluates the condition and returns the result. The scope will be the same as the execution.- Parameters:
execution
- the execution which is used to evaluate the condition- Returns:
- the result
-
evaluate
boolean evaluate(VariableScope scope, DelegateExecution execution)
Evaluates the condition and returns the result.- Parameters:
scope
- the variable scope which can differ of the executionexecution
- the execution which is used to evaluate the condition- Returns:
- the result
-
tryEvaluate
boolean tryEvaluate(VariableScope scope, DelegateExecution execution)
Tries to evaluate the condition. If the property which is used in the condition does not exist false will be returned.- Parameters:
scope
- the variable scope which can differ of the executionexecution
- the execution which is used to evaluate the condition- Returns:
- the result
-
-