Package com.axelor.workflow.exec
Record Class StepOutcome.Park
java.lang.Object
java.lang.Record
com.axelor.workflow.exec.StepOutcome.Park
- All Implemented Interfaces:
StepOutcome
- Enclosing interface:
StepOutcome
public static record StepOutcome.Park(String node, String parkKey, LocalDateTime wakeAt)
extends Record
implements StepOutcome
Park at a node that waits: the run is left waiting rather than finished.
wakeAt is when
a timer is due, or null.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.workflow.exec.StepOutcome
StepOutcome.Absorbed, StepOutcome.Activated, StepOutcome.Blocked, StepOutcome.Continue, StepOutcome.Done, StepOutcome.Fork, StepOutcome.Park, StepOutcome.Terminated -
Constructor Summary
ConstructorsConstructorDescriptionPark(String node, String parkKey, LocalDateTime wakeAt) Creates an instance of aParkrecord 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.node()Returns the value of thenoderecord component.parkKey()Returns the value of theparkKeyrecord component.final StringtoString()Returns a string representation of this record class.wakeAt()Returns the value of thewakeAtrecord component.
-
Constructor Details
-
Park
Creates an instance of aParkrecord class.- Parameters:
node- the value for thenoderecord componentparkKey- the value for theparkKeyrecord componentwakeAt- the value for thewakeAtrecord component
-
-
Method Details
-
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). -
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
parkKey
Returns the value of theparkKeyrecord component.- Returns:
- the value of the
parkKeyrecord component
-
wakeAt
Returns the value of thewakeAtrecord component.- Returns:
- the value of the
wakeAtrecord component
-