Package com.axelor.workflow.view
Record Class WorkflowRunView.Activation
java.lang.Object
java.lang.Record
com.axelor.workflow.view.WorkflowRunView.Activation
- Record Components:
policy-all, orquorumwhen the join waits for a number of arrivalsthreshold- how many arrivals that number is; null underallactivated- branches the split selected (S)arrived- branches that reached the join (A)ended- branches that finished before reaching it (E)pending- branches that could still arrive (P)decision-continue,endorfail; null while it is still openstatus- the activation's own lifecycle:open,cancelling,ready,joining,done,cancelledorfailed
- Enclosing class:
WorkflowRunView
public static record WorkflowRunView.Activation(String splitNode, String joinNode, String policy, Integer threshold, int activated, int arrived, int ended, int pending, String decision, String status, List<WorkflowRunView.Branch> branches)
extends Record
One activation of one split. The counts are the join's own stored inputs, not a tally of
branches, since cancelled losers cannot be told apart afterwards.-
Constructor Summary
ConstructorsConstructorDescriptionActivation(String splitNode, String joinNode, String policy, Integer threshold, int activated, int arrived, int ended, int pending, String decision, String status, List<WorkflowRunView.Branch> branches) Creates an instance of aActivationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactivatedrecord component.intarrived()Returns the value of thearrivedrecord component.branches()Returns the value of thebranchesrecord component.decision()Returns the value of thedecisionrecord component.intended()Returns the value of theendedrecord component.final 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.intpending()Returns the value of thependingrecord component.policy()Returns the value of thepolicyrecord component.Returns the value of thesplitNoderecord component.status()Returns the value of thestatusrecord component.Returns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Activation
public Activation(String splitNode, String joinNode, String policy, Integer threshold, int activated, int arrived, int ended, int pending, String decision, String status, List<WorkflowRunView.Branch> branches) Creates an instance of aActivationrecord class.- Parameters:
splitNode- the value for thesplitNoderecord componentjoinNode- the value for thejoinNoderecord componentpolicy- the value for thepolicyrecord componentthreshold- the value for thethresholdrecord componentactivated- the value for theactivatedrecord componentarrived- the value for thearrivedrecord componentended- the value for theendedrecord componentpending- the value for thependingrecord componentdecision- the value for thedecisionrecord componentstatus- the value for thestatusrecord componentbranches- the value for thebranchesrecord component
-
-
Method Details
-
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
-
policy
Returns the value of thepolicyrecord component.- Returns:
- the value of the
policyrecord component
-
threshold
Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-
activated
public int activated()Returns the value of theactivatedrecord component.- Returns:
- the value of the
activatedrecord component
-
arrived
public int arrived()Returns the value of thearrivedrecord component.- Returns:
- the value of the
arrivedrecord component
-
ended
public int ended()Returns the value of theendedrecord component.- Returns:
- the value of the
endedrecord component
-
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
decision
Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
branches
Returns the value of thebranchesrecord component.- Returns:
- the value of the
branchesrecord component
-