Package com.axelor.workflow.plan
Record Class WorkflowPlan.SplitStep
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.SplitStep
- All Implemented Interfaces:
WorkflowPlan.Step
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.SplitStep(String id, SplitMode mode, List<WorkflowPlan.Branch> branches, String join, String defaultFlow, String defaultNext)
extends Record
implements WorkflowPlan.Step
A split.
one continues down its first matching flow or the default; some and
all fork, meeting at join, which the compiler pairs from the <join>
naming the split. The default flow is held apart from branches.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranches()Returns the value of thebranchesrecord component.Returns the value of thedefaultFlowrecord component.Returns the value of thedefaultNextrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanforks()Whether branches run side by side and meet at a join.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.join()Returns the value of thejoinrecord component.mode()Returns the value of themoderecord component.targets()final StringtoString()Returns a string representation of this record class.type()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.axelor.workflow.plan.WorkflowPlan.Step
async, boundaries, catching
-
Constructor Details
-
SplitStep
public SplitStep(String id, SplitMode mode, List<WorkflowPlan.Branch> branches, String join, String defaultFlow, String defaultNext) Creates an instance of aSplitSteprecord class.- Parameters:
id- the value for theidrecord componentmode- the value for themoderecord componentbranches- the value for thebranchesrecord componentjoin- the value for thejoinrecord componentdefaultFlow- the value for thedefaultFlowrecord componentdefaultNext- the value for thedefaultNextrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceWorkflowPlan.Step
-
forks
public boolean forks()Whether branches run side by side and meet at a join. -
targets
- Specified by:
targetsin interfaceWorkflowPlan.Step
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceWorkflowPlan.Step- Returns:
- the value of the
idrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
branches
Returns the value of thebranchesrecord component.- Returns:
- the value of the
branchesrecord component
-
join
Returns the value of thejoinrecord component.- Returns:
- the value of the
joinrecord component
-
defaultFlow
Returns the value of thedefaultFlowrecord component.- Returns:
- the value of the
defaultFlowrecord component
-
defaultNext
Returns the value of thedefaultNextrecord component.- Returns:
- the value of the
defaultNextrecord component
-