Package su.onno.process
Record Class ProcessWorkItem
java.lang.Object
java.lang.Record
su.onno.process.ProcessWorkItem
public record ProcessWorkItem(UUID id, UUID instanceId, UUID tokenId, String definitionKey, int definitionVersion, String stepKey, String title, WorkItemStatus status, ProcessActorId assigneeId, String assignee, ProcessDomainLink subject, Instant createdAt, Instant claimedAt, Instant completedAt, String outcome, List<String> outcomes)
extends Record
Durable human task exposed by
ProcessEngine.-
Constructor Summary
ConstructorsConstructorDescriptionProcessWorkItem(UUID id, UUID instanceId, String definitionKey, String stepKey, String title, WorkItemStatus status, ProcessActorId assigneeId, String assignee, ProcessDomainLink subject, Instant createdAt, Instant claimedAt, Instant completedAt, String outcome, List<String> outcomes) Source-compatible constructor for work items produced before execution tokens.ProcessWorkItem(UUID id, UUID instanceId, UUID tokenId, String definitionKey, int definitionVersion, String stepKey, String title, WorkItemStatus status, ProcessActorId assigneeId, String assignee, ProcessDomainLink subject, Instant createdAt, Instant claimedAt, Instant completedAt, String outcome, List<String> outcomes) Creates an instance of aProcessWorkItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionassignee()Returns the value of theassigneerecord component.Returns the value of theassigneeIdrecord component.Returns the value of theclaimedAtrecord component.Returns the value of thecompletedAtrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedefinitionKeyrecord component.intReturns the value of thedefinitionVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinstanceIdrecord component.outcome()Returns the value of theoutcomerecord component.outcomes()Returns the value of theoutcomesrecord component.status()Returns the value of thestatusrecord component.stepKey()Returns the value of thestepKeyrecord component.subject()Returns the value of thesubjectrecord component.title()Returns the value of thetitlerecord component.tokenId()Returns the value of thetokenIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessWorkItem
public ProcessWorkItem(UUID id, UUID instanceId, UUID tokenId, String definitionKey, int definitionVersion, String stepKey, String title, WorkItemStatus status, ProcessActorId assigneeId, String assignee, ProcessDomainLink subject, Instant createdAt, Instant claimedAt, Instant completedAt, String outcome, List<String> outcomes) Creates an instance of aProcessWorkItemrecord class.- Parameters:
id- the value for theidrecord componentinstanceId- the value for theinstanceIdrecord componenttokenId- the value for thetokenIdrecord componentdefinitionKey- the value for thedefinitionKeyrecord componentdefinitionVersion- the value for thedefinitionVersionrecord componentstepKey- the value for thestepKeyrecord componenttitle- the value for thetitlerecord componentstatus- the value for thestatusrecord componentassigneeId- the value for theassigneeIdrecord componentassignee- the value for theassigneerecord componentsubject- the value for thesubjectrecord componentcreatedAt- the value for thecreatedAtrecord componentclaimedAt- the value for theclaimedAtrecord componentcompletedAt- the value for thecompletedAtrecord componentoutcome- the value for theoutcomerecord componentoutcomes- the value for theoutcomesrecord component
-
ProcessWorkItem
public ProcessWorkItem(UUID id, UUID instanceId, String definitionKey, String stepKey, String title, WorkItemStatus status, ProcessActorId assigneeId, String assignee, ProcessDomainLink subject, Instant createdAt, Instant claimedAt, Instant completedAt, String outcome, List<String> outcomes) Source-compatible constructor for work items produced before execution tokens.
-
-
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
-
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
-
stepKey
Returns the value of thestepKeyrecord component.- Returns:
- the value of the
stepKeyrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
assigneeId
Returns the value of theassigneeIdrecord component.- Returns:
- the value of the
assigneeIdrecord component
-
assignee
Returns the value of theassigneerecord component.- Returns:
- the value of the
assigneerecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
claimedAt
Returns the value of theclaimedAtrecord component.- Returns:
- the value of the
claimedAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
outcomes
Returns the value of theoutcomesrecord component.- Returns:
- the value of the
outcomesrecord component
-