Class ImmutableUserTaskRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableUserTaskRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,RecordValueWithVariables,ProcessInstanceRelated,TenantOwned,UserTaskRecordValue
Immutable implementation of
UserTaskRecordValue.
Use the builder to create immutable instances:
ImmutableUserTaskRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableUserTaskRecordValue. -
Field Summary
Fields inherited from interface io.camunda.zeebe.protocol.record.value.TenantOwned
DEFAULT_TENANT_IDENTIFIER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableUserTaskRecordValue.static ImmutableUserTaskRecordValuecopyOf(UserTaskRecordValue instance) Creates an immutable copy of aUserTaskRecordValuevalue.booleanThis instance is equal to all instances ofImmutableUserTaskRecordValuethat have equal attribute values.longlonglongintlongintlongReturns the identifier of the tenant that owns this entity.longinthashCode()Returns a lazily computed hash code from attributes:variables,processInstanceKey,tenantId,userTaskKey,assignee,candidateGroupsList,candidateUsersList,dueDate,followUpDate,formKey,changedAttributes,action,externalFormReference,customHeaders,creationTimestamp,elementId,elementInstanceKey,bpmnProcessId,processDefinitionVersion,processDefinitionKey,priority.toString()Prints the immutable valueUserTaskRecordValuewith attribute values.withAction(String value) Copy the current immutable object by setting a value for theactionattribute.withAssignee(String value) Copy the current immutable object by setting a value for theassigneeattribute.withBpmnProcessId(String value) Copy the current immutable object by setting a value for thebpmnProcessIdattribute.withCandidateGroupsList(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofcandidateGroupsList.withCandidateGroupsList(String... elements) Copy the current immutable object with elements that replace the content ofcandidateGroupsList.withCandidateUsersList(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofcandidateUsersList.withCandidateUsersList(String... elements) Copy the current immutable object with elements that replace the content ofcandidateUsersList.withChangedAttributes(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofchangedAttributes.withChangedAttributes(String... elements) Copy the current immutable object with elements that replace the content ofchangedAttributes.withCreationTimestamp(long value) Copy the current immutable object by setting a value for thecreationTimestampattribute.withCustomHeaders(Map<String, ? extends String> entries) Copy the current immutable object by replacing thecustomHeadersmap with the specified map.withDueDate(String value) Copy the current immutable object by setting a value for thedueDateattribute.withElementId(String value) Copy the current immutable object by setting a value for theelementIdattribute.withElementInstanceKey(long value) Copy the current immutable object by setting a value for theelementInstanceKeyattribute.withExternalFormReference(String value) Copy the current immutable object by setting a value for theexternalFormReferenceattribute.withFollowUpDate(String value) Copy the current immutable object by setting a value for thefollowUpDateattribute.withFormKey(long value) Copy the current immutable object by setting a value for theformKeyattribute.withPriority(int value) Copy the current immutable object by setting a value for thepriorityattribute.withProcessDefinitionKey(long value) Copy the current immutable object by setting a value for theprocessDefinitionKeyattribute.withProcessDefinitionVersion(int value) Copy the current immutable object by setting a value for theprocessDefinitionVersionattribute.withProcessInstanceKey(long value) Copy the current immutable object by setting a value for theprocessInstanceKeyattribute.withTenantId(String value) Copy the current immutable object by setting a value for thetenantIdattribute.withUserTaskKey(long value) Copy the current immutable object by setting a value for theuserTaskKeyattribute.withVariables(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thevariablesmap with the specified map.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.protocol.record.JsonSerializable
toJson
-
Method Details
-
getVariables
- Specified by:
getVariablesin interfaceRecordValueWithVariables- Returns:
- the variables of this record. Can be empty.
-
getProcessInstanceKey
public long getProcessInstanceKey()- Specified by:
getProcessInstanceKeyin interfaceProcessInstanceRelated- Returns:
- the key of the corresponding process instance
-
getTenantId
Returns the identifier of the tenant that owns this entity.- Specified by:
getTenantIdin interfaceTenantOwned
-
getUserTaskKey
public long getUserTaskKey()- Specified by:
getUserTaskKeyin interfaceUserTaskRecordValue- Returns:
- The value of the
userTaskKeyattribute
-
getAssignee
- Specified by:
getAssigneein interfaceUserTaskRecordValue- Returns:
- The value of the
assigneeattribute
-
getCandidateGroupsList
- Specified by:
getCandidateGroupsListin interfaceUserTaskRecordValue- Returns:
- The value of the
candidateGroupsListattribute
-
getCandidateUsersList
- Specified by:
getCandidateUsersListin interfaceUserTaskRecordValue- Returns:
- The value of the
candidateUsersListattribute
-
getDueDate
- Specified by:
getDueDatein interfaceUserTaskRecordValue- Returns:
- The value of the
dueDateattribute
-
getFollowUpDate
- Specified by:
getFollowUpDatein interfaceUserTaskRecordValue- Returns:
- The value of the
followUpDateattribute
-
getFormKey
public long getFormKey()- Specified by:
getFormKeyin interfaceUserTaskRecordValue- Returns:
- The value of the
formKeyattribute
-
getChangedAttributes
- Specified by:
getChangedAttributesin interfaceUserTaskRecordValue- Returns:
- The value of the
changedAttributesattribute
-
getAction
- Specified by:
getActionin interfaceUserTaskRecordValue- Returns:
- The value of the
actionattribute
-
getExternalFormReference
- Specified by:
getExternalFormReferencein interfaceUserTaskRecordValue- Returns:
- The value of the
externalFormReferenceattribute
-
getCustomHeaders
- Specified by:
getCustomHeadersin interfaceUserTaskRecordValue- Returns:
- The value of the
customHeadersattribute
-
getCreationTimestamp
public long getCreationTimestamp()- Specified by:
getCreationTimestampin interfaceUserTaskRecordValue- Returns:
- The value of the
creationTimestampattribute
-
getElementId
- Specified by:
getElementIdin interfaceUserTaskRecordValue- Returns:
- the element id of the corresponding user task
-
getElementInstanceKey
public long getElementInstanceKey()- Specified by:
getElementInstanceKeyin interfaceUserTaskRecordValue- Returns:
- the element instance key of the corresponding user task
-
getBpmnProcessId
- Specified by:
getBpmnProcessIdin interfaceUserTaskRecordValue- Returns:
- the bpmn process id of the corresponding process definition
-
getProcessDefinitionVersion
public int getProcessDefinitionVersion()- Specified by:
getProcessDefinitionVersionin interfaceUserTaskRecordValue- Returns:
- the version of the corresponding process definition
-
getProcessDefinitionKey
public long getProcessDefinitionKey()- Specified by:
getProcessDefinitionKeyin interfaceUserTaskRecordValue- Returns:
- the process key of the corresponding process definition
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceUserTaskRecordValue- Returns:
- The value of the
priorityattribute
-
withVariables
Copy the current immutable object by replacing thevariablesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the variables map- Returns:
- A modified copy of
thisobject
-
withProcessInstanceKey
Copy the current immutable object by setting a value for theprocessInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processInstanceKey- Returns:
- A modified copy of the
thisobject
-
withTenantId
Copy the current immutable object by setting a value for thetenantIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenantId (can benull)- Returns:
- A modified copy of the
thisobject
-
withUserTaskKey
Copy the current immutable object by setting a value for theuserTaskKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userTaskKey- Returns:
- A modified copy of the
thisobject
-
withAssignee
Copy the current immutable object by setting a value for theassigneeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for assignee (can benull)- Returns:
- A modified copy of the
thisobject
-
withCandidateGroupsList
Copy the current immutable object with elements that replace the content ofcandidateGroupsList.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCandidateGroupsList
Copy the current immutable object with elements that replace the content ofcandidateGroupsList. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of candidateGroupsList elements to set- Returns:
- A modified copy of
thisobject
-
withCandidateUsersList
Copy the current immutable object with elements that replace the content ofcandidateUsersList.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCandidateUsersList
Copy the current immutable object with elements that replace the content ofcandidateUsersList. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of candidateUsersList elements to set- Returns:
- A modified copy of
thisobject
-
withDueDate
Copy the current immutable object by setting a value for thedueDateattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dueDate (can benull)- Returns:
- A modified copy of the
thisobject
-
withFollowUpDate
Copy the current immutable object by setting a value for thefollowUpDateattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for followUpDate (can benull)- Returns:
- A modified copy of the
thisobject
-
withFormKey
Copy the current immutable object by setting a value for theformKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formKey- Returns:
- A modified copy of the
thisobject
-
withChangedAttributes
Copy the current immutable object with elements that replace the content ofchangedAttributes.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withChangedAttributes
Copy the current immutable object with elements that replace the content ofchangedAttributes. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of changedAttributes elements to set- Returns:
- A modified copy of
thisobject
-
withAction
Copy the current immutable object by setting a value for theactionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for action (can benull)- Returns:
- A modified copy of the
thisobject
-
withExternalFormReference
Copy the current immutable object by setting a value for theexternalFormReferenceattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for externalFormReference (can benull)- Returns:
- A modified copy of the
thisobject
-
withCustomHeaders
Copy the current immutable object by replacing thecustomHeadersmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the customHeaders map- Returns:
- A modified copy of
thisobject
-
withCreationTimestamp
Copy the current immutable object by setting a value for thecreationTimestampattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for creationTimestamp- Returns:
- A modified copy of the
thisobject
-
withElementId
Copy the current immutable object by setting a value for theelementIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for elementId (can benull)- Returns:
- A modified copy of the
thisobject
-
withElementInstanceKey
Copy the current immutable object by setting a value for theelementInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for elementInstanceKey- Returns:
- A modified copy of the
thisobject
-
withBpmnProcessId
Copy the current immutable object by setting a value for thebpmnProcessIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bpmnProcessId (can benull)- Returns:
- A modified copy of the
thisobject
-
withProcessDefinitionVersion
Copy the current immutable object by setting a value for theprocessDefinitionVersionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processDefinitionVersion- Returns:
- A modified copy of the
thisobject
-
withProcessDefinitionKey
Copy the current immutable object by setting a value for theprocessDefinitionKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processDefinitionKey- Returns:
- A modified copy of the
thisobject
-
withPriority
Copy the current immutable object by setting a value for thepriorityattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for priority- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableUserTaskRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:variables,processInstanceKey,tenantId,userTaskKey,assignee,candidateGroupsList,candidateUsersList,dueDate,followUpDate,formKey,changedAttributes,action,externalFormReference,customHeaders,creationTimestamp,elementId,elementInstanceKey,bpmnProcessId,processDefinitionVersion,processDefinitionKey,priority. -
toString
Prints the immutable valueUserTaskRecordValuewith attribute values. -
copyOf
Creates an immutable copy of aUserTaskRecordValuevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable UserTaskRecordValue instance
-
builder
Creates a builder forImmutableUserTaskRecordValue.ImmutableUserTaskRecordValue.builder() .putVariable|putAllVariables(String => Object) //variablesmappings .withProcessInstanceKey(long) // optionalprocessInstanceKey.withTenantId(String | null) // nullabletenantId.withUserTaskKey(long) // optionaluserTaskKey.withAssignee(String | null) // nullableassignee.addCandidateGroupsList|addAllCandidateGroupsList(String) //candidateGroupsListelements .addCandidateUsersList|addAllCandidateUsersList(String) //candidateUsersListelements .withDueDate(String | null) // nullabledueDate.withFollowUpDate(String | null) // nullablefollowUpDate.withFormKey(long) // optionalformKey.addChangedAttribute|addAllChangedAttributes(String) //changedAttributeselements .withAction(String | null) // nullableaction.withExternalFormReference(String | null) // nullableexternalFormReference.putCustomHeader|putAllCustomHeaders(String => String) //customHeadersmappings .withCreationTimestamp(long) // optionalcreationTimestamp.withElementId(String | null) // nullableelementId.withElementInstanceKey(long) // optionalelementInstanceKey.withBpmnProcessId(String | null) // nullablebpmnProcessId.withProcessDefinitionVersion(int) // optionalprocessDefinitionVersion.withProcessDefinitionKey(long) // optionalprocessDefinitionKey.withPriority(int) // optionalpriority.build();- Returns:
- A new ImmutableUserTaskRecordValue builder
-