Package com.yworkflow.definition.model
Interface Fork
- All Superinterfaces:
CanCopy<Fork>,HasId<ForkId>,HasParent<Fork,,WorkflowDefinition> Model<Fork,,ForkId> Validatable
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 Summary
Modifier and TypeMethodDescriptionGets all the results that define the parallel execution paths of this fork.Creates a new fork builder initialized with the current fork definition.Methods inherited from interface com.yworkflow.definition.model.base.HasParent
withParentMethods inherited from interface com.yworkflow.definition.model.base.Model
getExtensions, getParent, getProperties, getPropertyDifferenceMethods inherited from interface com.yworkflow.definition.model.validation.Validatable
validate
-
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
BuildableForkBuilder 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.
-