Record Class ParkedPosition

java.lang.Object
java.lang.Record
com.axelor.workflow.migrate.ParkedPosition
Record Components:
revision - the revision these runs pinned, or null for runs pinned to none, which resolve the live definition
splitNode - the split this branch came from, null unless ParkedPosition.Scope.BRANCH
joinNode - the join the branch is walking towards, null unless ParkedPosition.Scope.BRANCH
callerNode - the parent's node that spawned this child run: a <call> for a call's child, a boundary for an escape branch. Null at top level
tokenIds - the branch rows behind a ParkedPosition.Scope.BRANCH position; empty otherwise

public record ParkedPosition(Integer revision, String nodeId, String nodeType, String nodeTitle, String splitNode, String joinNode, String callerNode, ParkedPosition.Scope scope, int runCount, List<Long> tokenIds) extends Record
One place runs are parked and how many: a graph position, not a run. Holds no run ids; MigrationInventory.pageOf(com.axelor.meta.db.MetaWorkflow, com.axelor.workflow.migrate.ParkedPosition, int, int, java.lang.String) lists them on demand.
  • Constructor Details

    • ParkedPosition

      public ParkedPosition(Integer revision, String nodeId, String nodeType, String nodeTitle, String splitNode, String joinNode, String callerNode, ParkedPosition.Scope scope, int runCount, List<Long> tokenIds)
      Creates an instance of a ParkedPosition record class.
      Parameters:
      revision - the value for the revision record component
      nodeId - the value for the nodeId record component
      nodeType - the value for the nodeType record component
      nodeTitle - the value for the nodeTitle record component
      splitNode - the value for the splitNode record component
      joinNode - the value for the joinNode record component
      callerNode - the value for the callerNode record component
      scope - the value for the scope record component
      runCount - the value for the runCount record component
      tokenIds - the value for the tokenIds record component
  • Method Details

    • isAt

      public boolean isAt(Integer revision, String nodeId, String splitNode)
      The three fields that name this position in a request; see MigrationRow.
    • 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.
    • revision

      public Integer revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • nodeId

      public String nodeId()
      Returns the value of the nodeId record component.
      Returns:
      the value of the nodeId record component
    • nodeType

      public String nodeType()
      Returns the value of the nodeType record component.
      Returns:
      the value of the nodeType record component
    • nodeTitle

      public String nodeTitle()
      Returns the value of the nodeTitle record component.
      Returns:
      the value of the nodeTitle record component
    • 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
    • callerNode

      public String callerNode()
      Returns the value of the callerNode record component.
      Returns:
      the value of the callerNode record component
    • scope

      public ParkedPosition.Scope scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • runCount

      public int runCount()
      Returns the value of the runCount record component.
      Returns:
      the value of the runCount record component
    • tokenIds

      public List<Long> tokenIds()
      Returns the value of the tokenIds record component.
      Returns:
      the value of the tokenIds record component