Interface ConditionalResult

All Superinterfaces:
CanCopy<ConditionalResult>, HasId<ResultId>, HasParent<ConditionalResult,Transition>, Model<ConditionalResult,ResultId>, OriginAware<ConditionalResult>, Result<ConditionalResult>, Validatable

Represents a conditional result that is executed when specific conditions are met. ConditionalResult extends the base Result interface to provide conditional execution based on workflow attributes and state.

Conditional results are used in transitions to provide different outcomes based on the current workflow state, attributes, or other contextual information. They allow for dynamic workflow behavior where the same transition can lead to different destinations or execute different functions based on runtime conditions.

Conditional results are evaluated in order, and the first one whose conditions are satisfied will be executed. If no conditional results match, the default result will be used.

Since:
1.0
See Also:
  • Method Details

    • getConditions

      Conditions getConditions()
      Gets the conditions that determine when this result should be executed.
      Returns:
      the conditions for this conditional result