Record Class MigrationRow

java.lang.Object
java.lang.Record
com.axelor.workflow.migrate.MigrationRow
Record Components:
revision - the source revision this position sits on; null for the unpinned group
splitNode - the split, for a branch position; null otherwise. With revision and nodeId it names the position, which the server matches against a fresh inventory
target - the node to move onto, or END to finish the run as a success cut short; null for CANCEL
runIds - the runs (or branch rows) this row reaches; empty means every run at the position
excludeIds - when runIds is empty, the runs to leave out

public record MigrationRow(Integer revision, String nodeId, String splitNode, MigrationRow.Action action, String target, List<Long> runIds, List<Long> excludeIds) extends Record
One row of the mover: a position, an action, and which runs behind the position it reaches.
  • Field Details

  • Constructor Details

    • MigrationRow

      public MigrationRow(Integer revision, String nodeId, String splitNode, MigrationRow.Action action, String target, List<Long> runIds)
      A row that excludes nothing: the runs it names, or the whole position when it names none.
    • MigrationRow

      public MigrationRow(Integer revision, String nodeId, String splitNode, MigrationRow.Action action, String target, List<Long> runIds, List<Long> excludeIds)
      Creates an instance of a MigrationRow record class.
      Parameters:
      revision - the value for the revision record component
      nodeId - the value for the nodeId record component
      splitNode - the value for the splitNode record component
      action - the value for the action record component
      target - the value for the target record component
      runIds - the value for the runIds record component
      excludeIds - the value for the excludeIds record component
  • Method Details

    • endsTheRun

      public boolean endsTheRun()
    • 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.
    • 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
    • splitNode

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

      public MigrationRow.Action action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • target

      public String target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • runIds

      public List<Long> runIds()
      Returns the value of the runIds record component.
      Returns:
      the value of the runIds record component
    • excludeIds

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