Package com.axelor.workflow.split
Record Class WorkflowSplitService.PendingActivation
java.lang.Object
java.lang.Record
com.axelor.workflow.split.WorkflowSplitService.PendingActivation
- Enclosing class:
WorkflowSplitService
public static record WorkflowSplitService.PendingActivation(String splitNode, String joinNode, String nodePath, Integer threshold, int selected, List<WorkflowSplitService.BranchOutcome> outcomes, WorkflowSplitService.RegionPark regionPark)
extends Record
A split one branch ran into, carried up the stack until that branch has a row for it to hang
from, then written right after its parent.
-
Constructor Summary
ConstructorsConstructorDescriptionPendingActivation(String splitNode, String joinNode, String nodePath, Integer threshold, int selected, List<WorkflowSplitService.BranchOutcome> outcomes, WorkflowSplitService.RegionPark regionPark) Creates an instance of aPendingActivationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.joinNode()Returns the value of thejoinNoderecord component.nodePath()Returns the value of thenodePathrecord component.outcomes()Returns the value of theoutcomesrecord component.region(String splitNode, String joinNode, int selected, List<WorkflowSplitService.BranchOutcome> outcomes, WorkflowSplitService.RegionPark park) A subflow's region: its branches walk the body embedded atsplitNode.Returns the value of theregionParkrecord component.intselected()Returns the value of theselectedrecord component.split(String splitNode, String joinNode, Integer threshold, int selected, List<WorkflowSplitService.BranchOutcome> outcomes) A split's activation: its branches walk the run's own graph.Returns the value of thesplitNoderecord component.Returns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PendingActivation
public PendingActivation(String splitNode, String joinNode, String nodePath, Integer threshold, int selected, List<WorkflowSplitService.BranchOutcome> outcomes, WorkflowSplitService.RegionPark regionPark) Creates an instance of aPendingActivationrecord class.- Parameters:
splitNode- the value for thesplitNoderecord componentjoinNode- the value for thejoinNoderecord componentnodePath- the value for thenodePathrecord componentthreshold- the value for thethresholdrecord componentselected- the value for theselectedrecord componentoutcomes- the value for theoutcomesrecord componentregionPark- the value for theregionParkrecord component
-
-
Method Details
-
split
public static WorkflowSplitService.PendingActivation split(String splitNode, String joinNode, Integer threshold, int selected, List<WorkflowSplitService.BranchOutcome> outcomes) A split's activation: its branches walk the run's own graph. -
region
public static WorkflowSplitService.PendingActivation region(String splitNode, String joinNode, int selected, List<WorkflowSplitService.BranchOutcome> outcomes, WorkflowSplitService.RegionPark park) A subflow's region: its branches walk the body embedded atsplitNode. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
splitNode
Returns the value of thesplitNoderecord component.- Returns:
- the value of the
splitNoderecord component
-
joinNode
Returns the value of thejoinNoderecord component.- Returns:
- the value of the
joinNoderecord component
-
nodePath
Returns the value of thenodePathrecord component.- Returns:
- the value of the
nodePathrecord component
-
threshold
Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-
selected
public int selected()Returns the value of theselectedrecord component.- Returns:
- the value of the
selectedrecord component
-
outcomes
Returns the value of theoutcomesrecord component.- Returns:
- the value of the
outcomesrecord component
-
regionPark
Returns the value of theregionParkrecord component.- Returns:
- the value of the
regionParkrecord component
-