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.
  • 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 a BranchOutcome record class.
      Parameters:
      flowId - the value for the flowId record component
      branchNode - the value for the branchNode record component
      currentNode - the value for the currentNode record component
      state - the value for the state record component
      parkKey - the value for the parkKey record component
      wakeAt - the value for the wakeAt record component
      child - the value for the child record component
      element - the value for the element record component
      writes - the value for the writes record component
      bindings - the value for the bindings record 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

      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

      public WorkflowSplitService.BranchOutcome withWrites(String writes)
    • withBindings

      public WorkflowSplitService.BranchOutcome withBindings(String bindings)
      The same, with what the branch read as agent, task and error.
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • flowId

      public String flowId()
      Returns the value of the flowId record component.
      Returns:
      the value of the flowId record component
    • branchNode

      public String branchNode()
      Returns the value of the branchNode record component.
      Returns:
      the value of the branchNode record component
    • currentNode

      public String currentNode()
      Returns the value of the currentNode record component.
      Returns:
      the value of the currentNode record component
    • state

      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • parkKey

      public String parkKey()
      Returns the value of the parkKey record component.
      Returns:
      the value of the parkKey record component
    • wakeAt

      public LocalDateTime wakeAt()
      Returns the value of the wakeAt record component.
      Returns:
      the value of the wakeAt record component
    • child

      Returns the value of the child record component.
      Returns:
      the value of the child record component
    • element

      Returns the value of the element record component.
      Returns:
      the value of the element record component
    • writes

      public String writes()
      Returns the value of the writes record component.
      Returns:
      the value of the writes record component
    • bindings

      public String bindings()
      Returns the value of the bindings record component.
      Returns:
      the value of the bindings record component