Package su.onno.process
Record Class ProcessExecutionContext
java.lang.Object
java.lang.Record
su.onno.process.ProcessExecutionContext
public record ProcessExecutionContext(UUID instanceId, UUID tokenId, String definitionKey, int definitionVersion, int attempt, Instant enteredAt)
extends Record
Stable execution identity supplied to an automatic process step.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessExecutionContext(UUID instanceId, UUID tokenId, String definitionKey, int definitionVersion, int attempt, Instant enteredAt) Creates an instance of aProcessExecutionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.Returns the value of thedefinitionKeyrecord component.intReturns the value of thedefinitionVersionrecord component.Returns the value of theenteredAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Stable key for idempotent work or an outbox message produced by this execution attempt.Returns the value of theinstanceIdrecord component.tokenId()Returns the value of thetokenIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessExecutionContext
public ProcessExecutionContext(UUID instanceId, UUID tokenId, String definitionKey, int definitionVersion, int attempt, Instant enteredAt) Creates an instance of aProcessExecutionContextrecord class.- Parameters:
instanceId- the value for theinstanceIdrecord componenttokenId- the value for thetokenIdrecord componentdefinitionKey- the value for thedefinitionKeyrecord componentdefinitionVersion- the value for thedefinitionVersionrecord componentattempt- the value for theattemptrecord componententeredAt- the value for theenteredAtrecord component
-
-
Method Details
-
idempotencyKey
Stable key for idempotent work or an outbox message produced by this execution attempt. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
tokenId
Returns the value of thetokenIdrecord component.- Returns:
- the value of the
tokenIdrecord component
-
definitionKey
Returns the value of thedefinitionKeyrecord component.- Returns:
- the value of the
definitionKeyrecord component
-
definitionVersion
public int definitionVersion()Returns the value of thedefinitionVersionrecord component.- Returns:
- the value of the
definitionVersionrecord component
-
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-
enteredAt
Returns the value of theenteredAtrecord component.- Returns:
- the value of the
enteredAtrecord component
-