Interface WorkflowCondition


public interface WorkflowCondition
Interface for implementing custom workflow conditions. WorkflowCondition provides the mechanism for evaluating business rules and logic that determine when transitions should be available or when conditional results should be executed.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Evaluates the condition against the provided attributes and returns whether the condition is satisfied.
  • Method Details

    • check

      boolean check(WorkflowExecutionContext context, Condition condition) throws WorkflowException
      Evaluates the condition against the provided attributes and returns whether the condition is satisfied.
      Parameters:
      context - the execution context
      condition - the condition definition containing type, value, and arguments
      Returns:
      true if the condition is satisfied, false otherwise
      Throws:
      WorkflowException - if there's an error evaluating the condition