Package su.onno.process
Record Class ProcessTransitionSnapshot
java.lang.Object
java.lang.Record
su.onno.process.ProcessTransitionSnapshot
public record ProcessTransitionSnapshot(UUID id, UUID instanceId, UUID tokenId, int definitionVersion, ProcessTransitionType type, String fromStep, String toStep, String outcome, ProcessActorId actorId, String actor, Instant occurredAt, int sequence)
extends Record
One durable, append-only transition in a process instance's audit history.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessTransitionSnapshot(UUID id, UUID instanceId, String fromStep, String toStep, String outcome, ProcessActorId actorId, String actor, Instant occurredAt, int sequence) Source-compatible constructor for the original human-task-only transition shape.ProcessTransitionSnapshot(UUID id, UUID instanceId, UUID tokenId, int definitionVersion, ProcessTransitionType type, String fromStep, String toStep, String outcome, ProcessActorId actorId, String actor, Instant occurredAt, int sequence) Creates an instance of aProcessTransitionSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.actorId()Returns the value of theactorIdrecord component.intReturns the value of thedefinitionVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.fromStep()Returns the value of thefromSteprecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinstanceIdrecord component.Returns the value of theoccurredAtrecord component.outcome()Returns the value of theoutcomerecord component.intsequence()Returns the value of thesequencerecord component.tokenId()Returns the value of thetokenIdrecord component.toStep()Returns the value of thetoSteprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ProcessTransitionSnapshot
public ProcessTransitionSnapshot(UUID id, UUID instanceId, String fromStep, String toStep, String outcome, ProcessActorId actorId, String actor, Instant occurredAt, int sequence) Source-compatible constructor for the original human-task-only transition shape. -
ProcessTransitionSnapshot
public ProcessTransitionSnapshot(UUID id, UUID instanceId, UUID tokenId, int definitionVersion, ProcessTransitionType type, String fromStep, String toStep, String outcome, ProcessActorId actorId, String actor, Instant occurredAt, int sequence) Creates an instance of aProcessTransitionSnapshotrecord class.- Parameters:
id- the value for theidrecord componentinstanceId- the value for theinstanceIdrecord componenttokenId- the value for thetokenIdrecord componentdefinitionVersion- the value for thedefinitionVersionrecord componenttype- the value for thetyperecord componentfromStep- the value for thefromSteprecord componenttoStep- the value for thetoSteprecord componentoutcome- the value for theoutcomerecord componentactorId- the value for theactorIdrecord componentactor- the value for theactorrecord componentoccurredAt- the value for theoccurredAtrecord componentsequence- the value for thesequencerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
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
-
definitionVersion
public int definitionVersion()Returns the value of thedefinitionVersionrecord component.- Returns:
- the value of the
definitionVersionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
fromStep
Returns the value of thefromSteprecord component.- Returns:
- the value of the
fromSteprecord component
-
toStep
Returns the value of thetoSteprecord component.- Returns:
- the value of the
toSteprecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
actorId
Returns the value of theactorIdrecord component.- Returns:
- the value of the
actorIdrecord component
-
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
occurredAt
Returns the value of theoccurredAtrecord component.- Returns:
- the value of the
occurredAtrecord component
-
sequence
public int sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-