Package com.axelor.studio.service
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
ConstructorsConstructorDescriptionDeployed(MetaWorkflow workflow, Integer supersededRevision) Creates an instance of aDeployedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanWhether this deploy left runs parked on the revision it replaced -- what decides whether the operator is offered the mover.Returns the value of thesupersededRevisionrecord component.final StringtoString()Returns a string representation of this record class.workflow()Returns the value of theworkflowrecord component.
-
Constructor Details
-
Deployed
Creates an instance of aDeployedrecord class.- Parameters:
workflow- the value for theworkflowrecord componentsupersededRevision- the value for thesupersededRevisionrecord 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
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. All components in this record class are compared withObjects::equals(Object,Object). -
workflow
Returns the value of theworkflowrecord component.- Returns:
- the value of the
workflowrecord component
-
supersededRevision
Returns the value of thesupersededRevisionrecord component.- Returns:
- the value of the
supersededRevisionrecord component
-