Record Class StudioDeployService.Deployed

java.lang.Object
java.lang.Record
com.axelor.studio.service.StudioDeployService.Deployed
Enclosing class:
StudioDeployService

public static record StudioDeployService.Deployed(MetaWorkflow workflow, Integer supersededRevision) extends Record
What a workflow deploy wrote, and the revision it displaced.

supersededRevision is null whenever this deploy displaced nothing, which is two cases: a first-ever deploy, and one whose XML was unchanged — the save mints only on a real change, so the number the row had is still the current one and nothing was left behind on it.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Deployed(MetaWorkflow workflow, Integer supersededRevision)
    Creates an instance of a Deployed record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Whether this deploy left runs parked on the revision it replaced -- what decides whether the operator is offered the mover.
    Returns the value of the supersededRevision record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the workflow record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Deployed

      public Deployed(MetaWorkflow workflow, Integer supersededRevision)
      Creates an instance of a Deployed record class.
      Parameters:
      workflow - the value for the workflow record component
      supersededRevision - the value for the supersededRevision record component
  • Method Details

    • hasParkedBacklog

      public boolean hasParkedBacklog()
      Whether this deploy left runs parked on the revision it replaced -- what decides whether the operator is offered the mover.

      Scoped to that one revision rather than the whole definition: the aggregate count would re-open the mover after every future deploy over some unrelated backlog several revisions back. A deploy that superseded nothing left nobody behind, whatever is parked on the revision that is still current.

    • 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.
    • workflow

      public MetaWorkflow workflow()
      Returns the value of the workflow record component.
      Returns:
      the value of the workflow record component
    • supersededRevision

      public Integer supersededRevision()
      Returns the value of the supersededRevision record component.
      Returns:
      the value of the supersededRevision record component