Record Class WorkflowRunView.Activation

java.lang.Object
java.lang.Record
com.axelor.workflow.view.WorkflowRunView.Activation
Record Components:
policy - all, or quorum when the join waits for a number of arrivals
threshold - how many arrivals that number is; null under all
activated - 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, end or fail; null while it is still open
status - the activation's own lifecycle: open, cancelling, ready, joining, done, cancelled or failed
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 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 a Activation record class.
      Parameters:
      splitNode - the value for the splitNode record component
      joinNode - the value for the joinNode record component
      policy - the value for the policy record component
      threshold - the value for the threshold record component
      activated - the value for the activated record component
      arrived - the value for the arrived record component
      ended - the value for the ended record component
      pending - the value for the pending record component
      decision - the value for the decision record component
      status - the value for the status record component
      branches - the value for the branches record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • splitNode

      public String splitNode()
      Returns the value of the splitNode record component.
      Returns:
      the value of the splitNode record component
    • joinNode

      public String joinNode()
      Returns the value of the joinNode record component.
      Returns:
      the value of the joinNode record component
    • policy

      public String policy()
      Returns the value of the policy record component.
      Returns:
      the value of the policy record component
    • threshold

      public Integer threshold()
      Returns the value of the threshold record component.
      Returns:
      the value of the threshold record component
    • activated

      public int activated()
      Returns the value of the activated record component.
      Returns:
      the value of the activated record component
    • arrived

      public int arrived()
      Returns the value of the arrived record component.
      Returns:
      the value of the arrived record component
    • ended

      public int ended()
      Returns the value of the ended record component.
      Returns:
      the value of the ended record component
    • pending

      public int pending()
      Returns the value of the pending record component.
      Returns:
      the value of the pending record component
    • decision

      public String decision()
      Returns the value of the decision record component.
      Returns:
      the value of the decision record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • branches

      public List<WorkflowRunView.Branch> branches()
      Returns the value of the branches record component.
      Returns:
      the value of the branches record component