Package su.onno.process
Record Class ProcessWorkItemEventSnapshot
java.lang.Object
java.lang.Record
su.onno.process.ProcessWorkItemEventSnapshot
public record ProcessWorkItemEventSnapshot(UUID id, UUID workItemId, UUID instanceId, WorkItemEventType type, ProcessActorId actorId, String actor, ProcessActorId fromAssigneeId, String fromAssignee, ProcessActorId toAssigneeId, String toAssignee, String reason, Instant occurredAt, int sequence)
extends Record
Immutable audit entry for one durable human task.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessWorkItemEventSnapshot(UUID id, UUID workItemId, UUID instanceId, WorkItemEventType type, ProcessActorId actorId, String actor, ProcessActorId fromAssigneeId, String fromAssignee, ProcessActorId toAssigneeId, String toAssignee, String reason, Instant occurredAt, int sequence) Creates an instance of aProcessWorkItemEventSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.actorId()Returns the value of theactorIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromAssigneerecord component.Returns the value of thefromAssigneeIdrecord 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.reason()Returns the value of thereasonrecord component.intsequence()Returns the value of thesequencerecord component.Returns the value of thetoAssigneerecord component.Returns the value of thetoAssigneeIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theworkItemIdrecord component.
-
Constructor Details
-
ProcessWorkItemEventSnapshot
public ProcessWorkItemEventSnapshot(UUID id, UUID workItemId, UUID instanceId, WorkItemEventType type, ProcessActorId actorId, String actor, ProcessActorId fromAssigneeId, String fromAssignee, ProcessActorId toAssigneeId, String toAssignee, String reason, Instant occurredAt, int sequence) Creates an instance of aProcessWorkItemEventSnapshotrecord class.- Parameters:
id- the value for theidrecord componentworkItemId- the value for theworkItemIdrecord componentinstanceId- the value for theinstanceIdrecord componenttype- the value for thetyperecord componentactorId- the value for theactorIdrecord componentactor- the value for theactorrecord componentfromAssigneeId- the value for thefromAssigneeIdrecord componentfromAssignee- the value for thefromAssigneerecord componenttoAssigneeId- the value for thetoAssigneeIdrecord componenttoAssignee- the value for thetoAssigneerecord componentreason- the value for thereasonrecord 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
-
workItemId
Returns the value of theworkItemIdrecord component.- Returns:
- the value of the
workItemIdrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord 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
-
fromAssigneeId
Returns the value of thefromAssigneeIdrecord component.- Returns:
- the value of the
fromAssigneeIdrecord component
-
fromAssignee
Returns the value of thefromAssigneerecord component.- Returns:
- the value of the
fromAssigneerecord component
-
toAssigneeId
Returns the value of thetoAssigneeIdrecord component.- Returns:
- the value of the
toAssigneeIdrecord component
-
toAssignee
Returns the value of thetoAssigneerecord component.- Returns:
- the value of the
toAssigneerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord 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
-