Record Class MigrationReport.RowResult

java.lang.Object
java.lang.Record
com.axelor.workflow.migrate.MigrationReport.RowResult
Record Components:
moved - runs re-entered on the target node
cancelled - runs given up for good
ended - runs finished as a success cut short
raced - runs no longer parked when reached, such as by an approver or a due timer
refused - why the whole row was rejected before anything was touched, or null
remaining - runs of this row the chunk bound did not reach
Enclosing class:
MigrationReport

public static record MigrationReport.RowResult(Integer revision, String nodeId, String splitNode, int moved, int cancelled, int ended, int raced, String refused, int remaining) extends Record
One row's outcome.
  • Constructor Details

    • RowResult

      public RowResult(Integer revision, String nodeId, String splitNode, int moved, int cancelled, int ended, int raced, String refused, int remaining)
      Creates an instance of a RowResult 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
      moved - the value for the moved record component
      cancelled - the value for the cancelled record component
      ended - the value for the ended record component
      raced - the value for the raced record component
      refused - the value for the refused record component
      remaining - the value for the remaining record component
  • Method Details

    • refused

      public static MigrationReport.RowResult refused(MigrationRow row, String reason)
    • 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
    • splitNode

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

      public int moved()
      Returns the value of the moved record component.
      Returns:
      the value of the moved record component
    • cancelled

      public int cancelled()
      Returns the value of the cancelled record component.
      Returns:
      the value of the cancelled record component
    • ended

      public int ended()
      Returns the value of the ended record component.
      Returns:
      the value of the ended record component
    • raced

      public int raced()
      Returns the value of the raced record component.
      Returns:
      the value of the raced record component
    • refused

      public String refused()
      Returns the value of the refused record component.
      Returns:
      the value of the refused record component
    • remaining

      public int remaining()
      Returns the value of the remaining record component.
      Returns:
      the value of the remaining record component