Interface Fork

All Superinterfaces:
CanCopy<Fork>, HasId<ForkId>, HasParent<Fork,WorkflowDefinition>, Model<Fork,ForkId>, Validatable

public interface Fork extends Model<Fork,ForkId>, HasParent<Fork,WorkflowDefinition>
Represents a fork in a workflow definition that allows parallel execution paths. Fork enables a workflow to split into multiple concurrent branches, where each branch can execute independently and potentially rejoin later through a Join.
Since:
1.0
See Also:
  • Method Details

    • getResults

      List<DefaultResult> getResults()
      Gets all the results that define the parallel execution paths of this fork.
      Returns:
      a list containing all results that define the fork paths
    • toBuilder

      Creates a new fork builder initialized with the current fork definition. This method allows for easy modification of existing fork definitions by providing a builder that starts with the current state of the fork.