Package com.axelor.workflow.migrate
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 definitionsplitNode- the split this branch came from, null unlessParkedPosition.Scope.BRANCHjoinNode- the join the branch is walking towards, null unlessParkedPosition.Scope.BRANCHcallerNode- 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 leveltokenIds- the branch rows behind aParkedPosition.Scope.BRANCHposition; 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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhere a position sits in its run's structure, which decides where it may move. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallerNoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanThe three fields that name this position in a request; seeMigrationRow.joinNode()Returns the value of thejoinNoderecord component.nodeId()Returns the value of thenodeIdrecord component.Returns the value of thenodeTitlerecord component.nodeType()Returns the value of thenodeTyperecord component.revision()Returns the value of therevisionrecord component.intrunCount()Returns the value of therunCountrecord component.scope()Returns the value of thescoperecord component.Returns the value of thesplitNoderecord component.tokenIds()Returns the value of thetokenIdsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aParkedPositionrecord class.- Parameters:
revision- the value for therevisionrecord componentnodeId- the value for thenodeIdrecord componentnodeType- the value for thenodeTyperecord componentnodeTitle- the value for thenodeTitlerecord componentsplitNode- the value for thesplitNoderecord componentjoinNode- the value for thejoinNoderecord componentcallerNode- the value for thecallerNoderecord componentscope- the value for thescoperecord componentrunCount- the value for therunCountrecord componenttokenIds- the value for thetokenIdsrecord component
-
-
Method Details
-
isAt
The three fields that name this position in a request; seeMigrationRow. -
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 '=='. -
revision
Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
nodeType
Returns the value of thenodeTyperecord component.- Returns:
- the value of the
nodeTyperecord component
-
nodeTitle
Returns the value of thenodeTitlerecord component.- Returns:
- the value of the
nodeTitlerecord component
-
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
-
callerNode
Returns the value of thecallerNoderecord component.- Returns:
- the value of the
callerNoderecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
runCount
public int runCount()Returns the value of therunCountrecord component.- Returns:
- the value of the
runCountrecord component
-
tokenIds
Returns the value of thetokenIdsrecord component.- Returns:
- the value of the
tokenIdsrecord component
-