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 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 a PendingActivation record class.
      Parameters:
      splitNode - the value for the splitNode record component
      joinNode - the value for the joinNode record component
      nodePath - the value for the nodePath record component
      threshold - the value for the threshold record component
      selected - the value for the selected record component
      outcomes - the value for the outcomes record component
      regionPark - the value for the regionPark record 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 at splitNode.
    • 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
    • nodePath

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

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

      public int selected()
      Returns the value of the selected record component.
      Returns:
      the value of the selected record component
    • outcomes

      Returns the value of the outcomes record component.
      Returns:
      the value of the outcomes record component
    • regionPark

      public WorkflowSplitService.RegionPark regionPark()
      Returns the value of the regionPark record component.
      Returns:
      the value of the regionPark record component