Package com.axelor.workflow.split
Record Class WorkflowSplitService.BranchOutcome
java.lang.Object
java.lang.Record
com.axelor.workflow.split.WorkflowSplitService.BranchOutcome
- Enclosing class:
WorkflowSplitService
public static record WorkflowSplitService.BranchOutcome(String flowId, String branchNode, String currentNode, WorkflowSplitService.BranchOutcome.State state, String parkKey, LocalDateTime wakeAt, WorkflowSplitService.PendingActivation child, WorkflowSplitService.BranchOutcome.Element element, String writes, String bindings)
extends Record
Where one branch got to when the walk stopped for the split.
flowId is the branch's
identity; branchNode is only where that flow pointed.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordWhat a region's branch walks: the record bound to itsselfand the frame its body opened.static enum -
Constructor Summary
ConstructorsConstructorDescriptionBranchOutcome(String flowId, String branchNode, String currentNode, WorkflowSplitService.BranchOutcome.State state, String parkKey, LocalDateTime wakeAt, WorkflowSplitService.PendingActivation child, WorkflowSplitService.BranchOutcome.Element element, String writes, String bindings) Creates an instance of aBranchOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbindings()Returns the value of thebindingsrecord component.blocked(String flowId, String branchNode, String currentNode, WorkflowSplitService.PendingActivation child) Stopped on a split of its own, which travels up with it and is written beneath it.blocked(String flowId, String branchNode, String currentNode, WorkflowSplitService.PendingActivation child, WorkflowSplitService.BranchOutcome.Element element) The same, for a branch walking a subflow's body over an element of its own.Returns the value of thebranchNoderecord component.child()Returns the value of thechildrecord component.Returns the value of thecurrentNoderecord component.element()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.flowId()Returns the value of theflowIdrecord component.final inthashCode()Returns a hash code value for this object.parkKey()Returns the value of theparkKeyrecord component.Got as far as it will: to the join, or to an end before it.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Stopped on a person or a timer, under its own park key.waiting(String flowId, String branchNode, String currentNode, String parkKey, LocalDateTime wakeAt, WorkflowSplitService.BranchOutcome.Element element) The same, for a branch walking a subflow's body over an element of its own.wakeAt()Returns the value of thewakeAtrecord component.withBindings(String bindings) The same, with what the branch read asagent,taskanderror.withWrites(String writes) writes()Returns the value of thewritesrecord component.
-
Constructor Details
-
BranchOutcome
public BranchOutcome(String flowId, String branchNode, String currentNode, WorkflowSplitService.BranchOutcome.State state, String parkKey, LocalDateTime wakeAt, WorkflowSplitService.PendingActivation child, WorkflowSplitService.BranchOutcome.Element element, String writes, String bindings) Creates an instance of aBranchOutcomerecord class.- Parameters:
flowId- the value for theflowIdrecord componentbranchNode- the value for thebranchNoderecord componentcurrentNode- the value for thecurrentNoderecord componentstate- the value for thestaterecord componentparkKey- the value for theparkKeyrecord componentwakeAt- the value for thewakeAtrecord componentchild- the value for thechildrecord componentelement- the value for theelementrecord componentwrites- the value for thewritesrecord componentbindings- the value for thebindingsrecord component
-
-
Method Details
-
waiting
public static WorkflowSplitService.BranchOutcome waiting(String flowId, String branchNode, String currentNode, String parkKey, LocalDateTime wakeAt) Stopped on a person or a timer, under its own park key. -
waiting
public static WorkflowSplitService.BranchOutcome waiting(String flowId, String branchNode, String currentNode, String parkKey, LocalDateTime wakeAt, WorkflowSplitService.BranchOutcome.Element element) The same, for a branch walking a subflow's body over an element of its own. -
blocked
public static WorkflowSplitService.BranchOutcome blocked(String flowId, String branchNode, String currentNode, WorkflowSplitService.PendingActivation child) Stopped on a split of its own, which travels up with it and is written beneath it. -
blocked
public static WorkflowSplitService.BranchOutcome blocked(String flowId, String branchNode, String currentNode, WorkflowSplitService.PendingActivation child, WorkflowSplitService.BranchOutcome.Element element) The same, for a branch walking a subflow's body over an element of its own. -
settled
public static WorkflowSplitService.BranchOutcome settled(String flowId, String branchNode, String currentNode, boolean atBarrier) Got as far as it will: to the join, or to an end before it. -
withWrites
-
withBindings
The same, with what the branch read asagent,taskanderror. -
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). -
flowId
Returns the value of theflowIdrecord component.- Returns:
- the value of the
flowIdrecord component
-
branchNode
Returns the value of thebranchNoderecord component.- Returns:
- the value of the
branchNoderecord component
-
currentNode
Returns the value of thecurrentNoderecord component.- Returns:
- the value of the
currentNoderecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
parkKey
Returns the value of theparkKeyrecord component.- Returns:
- the value of the
parkKeyrecord component
-
wakeAt
Returns the value of thewakeAtrecord component.- Returns:
- the value of the
wakeAtrecord component
-
child
Returns the value of thechildrecord component.- Returns:
- the value of the
childrecord component
-
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
writes
Returns the value of thewritesrecord component.- Returns:
- the value of the
writesrecord component
-
bindings
Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-