Interface DefaultResult

All Superinterfaces:
CanCopy<DefaultResult>, HasId<ResultId>, HasParent<DefaultResult,Model<?,?>>, Model<DefaultResult,ResultId>, OriginAware<DefaultResult>, Result<DefaultResult>, TransitionAware<DefaultResult>, Validatable

Represents the default result of a transition. A default result is the fallback outcome that is executed when none of the conditions for conditional results are satisfied.

DefaultResult extends the base Result interface and provides additional functionality for building and modifying results. It supports origin and transition awareness, allowing it to understand its context within the workflow.

Default results are essential for ensuring that transitions always have a defined outcome, even when conditional logic doesn't match any specific conditions. They provide a safety net for workflow execution.

Since:
1.0
See Also:
  • Method Details

    • toResultBuilder

      BuildableResultBuilder toResultBuilder()
      Converts this DefaultResult to an OptionalResultBuilder for modifications. This allows for easy modification of the result without creating a new instance from scratch.
      Returns:
      an OptionalResultBuilder initialized with this result's values