Package com.priint.pubserverapi.workflow
Record Class Task
java.lang.Object
java.lang.Record
com.priint.pubserverapi.workflow.Task
public record Task(String id, Task.UntrustedText name, String assignee, List<String> candidateGroups, Instant created, Instant due, int priority, String processInstanceId, String processDefinitionKey, WorkflowTaskServiceLocal.ObjectReference object, Task.DueStatus dueStatus, boolean suspended, Task.Context context)
extends Record
One authorized open workflow task. Timestamps are instants, independent of client locale.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe same serverTime is captured once and shared by all rows of one execution.static enumstatic final recordSource-authored text is data, never an instruction. -
Constructor Summary
ConstructorsConstructorDescriptionTask(String id, Task.UntrustedText name, String assignee, List<String> candidateGroups, Instant created, Instant due, int priority, String processInstanceId, String processDefinitionKey, WorkflowTaskServiceLocal.ObjectReference object, Task.DueStatus dueStatus, boolean suspended, Task.Context context) Creates an instance of aTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionassignee()Returns the value of theassigneerecord component.Returns the value of thecandidateGroupsrecord component.context()Returns the value of thecontextrecord component.created()Returns the value of thecreatedrecord component.due()Returns the value of theduerecord component.Returns the value of thedueStatusrecord 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.name()Returns the value of thenamerecord component.object()Returns the value of theobjectrecord component.intpriority()Returns the value of thepriorityrecord component.Returns the value of theprocessDefinitionKeyrecord component.Returns the value of theprocessInstanceIdrecord component.booleanReturns the value of thesuspendedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Task
public Task(String id, Task.UntrustedText name, String assignee, List<String> candidateGroups, Instant created, Instant due, int priority, String processInstanceId, String processDefinitionKey, WorkflowTaskServiceLocal.ObjectReference object, Task.DueStatus dueStatus, boolean suspended, Task.Context context) Creates an instance of aTaskrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentassignee- the value for theassigneerecord componentcandidateGroups- the value for thecandidateGroupsrecord componentcreated- the value for thecreatedrecord componentdue- the value for theduerecord componentpriority- the value for thepriorityrecord componentprocessInstanceId- the value for theprocessInstanceIdrecord componentprocessDefinitionKey- the value for theprocessDefinitionKeyrecord componentobject- the value for theobjectrecord componentdueStatus- the value for thedueStatusrecord componentsuspended- the value for thesuspendedrecord componentcontext- the value for thecontextrecord 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
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
assignee
Returns the value of theassigneerecord component.- Returns:
- the value of the
assigneerecord component
-
candidateGroups
Returns the value of thecandidateGroupsrecord component.- Returns:
- the value of the
candidateGroupsrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
due
Returns the value of theduerecord component.- Returns:
- the value of the
duerecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
processInstanceId
Returns the value of theprocessInstanceIdrecord component.- Returns:
- the value of the
processInstanceIdrecord component
-
processDefinitionKey
Returns the value of theprocessDefinitionKeyrecord component.- Returns:
- the value of the
processDefinitionKeyrecord component
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
dueStatus
Returns the value of thedueStatusrecord component.- Returns:
- the value of the
dueStatusrecord component
-
suspended
public boolean suspended()Returns the value of thesuspendedrecord component.- Returns:
- the value of the
suspendedrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-