Interface Condition

All Known Implementing Classes:
ScriptCondition, UelExpressionCondition

public interface Condition
Author:
Tom Baeyens, Christopher Zell <christopher.zell@camunda.com>
  • Method Details

    • 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 execution
      execution - 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 execution
      execution - the execution which is used to evaluate the condition
      Returns:
      the result