Class ImmutableUserTaskRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableUserTaskRecordValue.Builder
- Enclosing class:
ImmutableUserTaskRecordValue
Builds instances of type
ImmutableUserTaskRecordValue.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllCandidateGroupsList(Iterable<String> elements) Adds elements tocandidateGroupsListlist.addAllCandidateUsersList(Iterable<String> elements) Adds elements tocandidateUsersListlist.addAllChangedAttributes(Iterable<String> elements) Adds elements tochangedAttributeslist.addCandidateGroupsList(String element) Adds one element tocandidateGroupsListlist.addCandidateGroupsList(String... elements) Adds elements tocandidateGroupsListlist.addCandidateUsersList(String element) Adds one element tocandidateUsersListlist.addCandidateUsersList(String... elements) Adds elements tocandidateUsersListlist.addChangedAttribute(String element) Adds one element tochangedAttributeslist.addChangedAttributes(String... elements) Adds elements tochangedAttributeslist.build()Builds a newImmutableUserTaskRecordValue.clear()Clear the builder to the initial state.from(RecordValueWithVariables instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.RecordValueWithVariablesinstance.from(ProcessInstanceRelated instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceRelatedinstance.from(TenantOwned instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TenantOwnedinstance.from(UserTaskRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.UserTaskRecordValueinstance.putAllCustomHeaders(Map<String, ? extends String> entries) Put all mappings from the specified map as entries tocustomHeadersmap.putAllVariables(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tovariablesmap.putCustomHeader(String key, String value) Put one entry to thecustomHeadersmap.putCustomHeader(Map.Entry<String, ? extends String> entry) Put one entry to thecustomHeadersmap.putVariable(String key, Object value) Put one entry to thevariablesmap.putVariable(Map.Entry<String, ? extends Object> entry) Put one entry to thevariablesmap.withAction(String action) Initializes the value for theactionattribute.withAssignee(String assignee) Initializes the value for theassigneeattribute.withBpmnProcessId(String bpmnProcessId) Initializes the value for thebpmnProcessIdattribute.withCandidateGroupsList(Iterable<String> elements) Sets or replaces all elements forcandidateGroupsListlist.withCandidateUsersList(Iterable<String> elements) Sets or replaces all elements forcandidateUsersListlist.withChangedAttributes(Iterable<String> elements) Sets or replaces all elements forchangedAttributeslist.withCreationTimestamp(long creationTimestamp) Initializes the value for thecreationTimestampattribute.withCustomHeaders(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for thecustomHeadersmap.withDueDate(String dueDate) Initializes the value for thedueDateattribute.withElementId(String elementId) Initializes the value for theelementIdattribute.withElementInstanceKey(long elementInstanceKey) Initializes the value for theelementInstanceKeyattribute.withExternalFormReference(String externalFormReference) Initializes the value for theexternalFormReferenceattribute.withFollowUpDate(String followUpDate) Initializes the value for thefollowUpDateattribute.withFormKey(long formKey) Initializes the value for theformKeyattribute.withPriority(int priority) Initializes the value for thepriorityattribute.withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.withProcessDefinitionVersion(int processDefinitionVersion) Initializes the value for theprocessDefinitionVersionattribute.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withTenantId(String tenantId) Initializes the value for thetenantIdattribute.withUserTaskKey(long userTaskKey) Initializes the value for theuserTaskKeyattribute.withVariables(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevariablesmap.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.UserTaskRecordValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceRelatedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TenantOwnedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.RecordValueWithVariablesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
putVariable
Put one entry to thevariablesmap.- Parameters:
key- The key in the variables mapvalue- The associated value in the variables map- Returns:
thisbuilder for use in a chained invocation
-
putVariable
public final ImmutableUserTaskRecordValue.Builder putVariable(Map.Entry<String, ? extends Object> entry) Put one entry to thevariablesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
withVariables
public final ImmutableUserTaskRecordValue.Builder withVariables(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevariablesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the variables map- Returns:
thisbuilder for use in a chained invocation
-
putAllVariables
public final ImmutableUserTaskRecordValue.Builder putAllVariables(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tovariablesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the variables map- Returns:
thisbuilder for use in a chained invocation
-
withProcessInstanceKey
Initializes the value for theprocessInstanceKeyattribute.- Parameters:
processInstanceKey- The value for processInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withTenantId
Initializes the value for thetenantIdattribute.- Parameters:
tenantId- The value for tenantId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withUserTaskKey
Initializes the value for theuserTaskKeyattribute.- Parameters:
userTaskKey- The value for userTaskKey- Returns:
thisbuilder for use in a chained invocation
-
withAssignee
Initializes the value for theassigneeattribute.- Parameters:
assignee- The value for assignee (can benull)- Returns:
thisbuilder for use in a chained invocation
-
addCandidateGroupsList
Adds one element tocandidateGroupsListlist.- Parameters:
element- A candidateGroupsList element- Returns:
thisbuilder for use in a chained invocation
-
addCandidateGroupsList
Adds elements tocandidateGroupsListlist.- Parameters:
elements- An array of candidateGroupsList elements- Returns:
thisbuilder for use in a chained invocation
-
withCandidateGroupsList
public final ImmutableUserTaskRecordValue.Builder withCandidateGroupsList(Iterable<String> elements) Sets or replaces all elements forcandidateGroupsListlist.- Parameters:
elements- An iterable of candidateGroupsList elements- Returns:
thisbuilder for use in a chained invocation
-
addAllCandidateGroupsList
public final ImmutableUserTaskRecordValue.Builder addAllCandidateGroupsList(Iterable<String> elements) Adds elements tocandidateGroupsListlist.- Parameters:
elements- An iterable of candidateGroupsList elements- Returns:
thisbuilder for use in a chained invocation
-
addCandidateUsersList
Adds one element tocandidateUsersListlist.- Parameters:
element- A candidateUsersList element- Returns:
thisbuilder for use in a chained invocation
-
addCandidateUsersList
Adds elements tocandidateUsersListlist.- Parameters:
elements- An array of candidateUsersList elements- Returns:
thisbuilder for use in a chained invocation
-
withCandidateUsersList
Sets or replaces all elements forcandidateUsersListlist.- Parameters:
elements- An iterable of candidateUsersList elements- Returns:
thisbuilder for use in a chained invocation
-
addAllCandidateUsersList
public final ImmutableUserTaskRecordValue.Builder addAllCandidateUsersList(Iterable<String> elements) Adds elements tocandidateUsersListlist.- Parameters:
elements- An iterable of candidateUsersList elements- Returns:
thisbuilder for use in a chained invocation
-
withDueDate
Initializes the value for thedueDateattribute.- Parameters:
dueDate- The value for dueDate (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withFollowUpDate
Initializes the value for thefollowUpDateattribute.- Parameters:
followUpDate- The value for followUpDate (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withFormKey
Initializes the value for theformKeyattribute.- Parameters:
formKey- The value for formKey- Returns:
thisbuilder for use in a chained invocation
-
addChangedAttribute
Adds one element tochangedAttributeslist.- Parameters:
element- A changedAttributes element- Returns:
thisbuilder for use in a chained invocation
-
addChangedAttributes
Adds elements tochangedAttributeslist.- Parameters:
elements- An array of changedAttributes elements- Returns:
thisbuilder for use in a chained invocation
-
withChangedAttributes
Sets or replaces all elements forchangedAttributeslist.- Parameters:
elements- An iterable of changedAttributes elements- Returns:
thisbuilder for use in a chained invocation
-
addAllChangedAttributes
public final ImmutableUserTaskRecordValue.Builder addAllChangedAttributes(Iterable<String> elements) Adds elements tochangedAttributeslist.- Parameters:
elements- An iterable of changedAttributes elements- Returns:
thisbuilder for use in a chained invocation
-
withAction
Initializes the value for theactionattribute.- Parameters:
action- The value for action (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withExternalFormReference
public final ImmutableUserTaskRecordValue.Builder withExternalFormReference(String externalFormReference) Initializes the value for theexternalFormReferenceattribute.- Parameters:
externalFormReference- The value for externalFormReference (can benull)- Returns:
thisbuilder for use in a chained invocation
-
putCustomHeader
Put one entry to thecustomHeadersmap.- Parameters:
key- The key in the customHeaders mapvalue- The associated value in the customHeaders map- Returns:
thisbuilder for use in a chained invocation
-
putCustomHeader
public final ImmutableUserTaskRecordValue.Builder putCustomHeader(Map.Entry<String, ? extends String> entry) Put one entry to thecustomHeadersmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
withCustomHeaders
public final ImmutableUserTaskRecordValue.Builder withCustomHeaders(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for thecustomHeadersmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the customHeaders map- Returns:
thisbuilder for use in a chained invocation
-
putAllCustomHeaders
public final ImmutableUserTaskRecordValue.Builder putAllCustomHeaders(Map<String, ? extends String> entries) Put all mappings from the specified map as entries tocustomHeadersmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the customHeaders map- Returns:
thisbuilder for use in a chained invocation
-
withCreationTimestamp
Initializes the value for thecreationTimestampattribute.- Parameters:
creationTimestamp- The value for creationTimestamp- Returns:
thisbuilder for use in a chained invocation
-
withElementId
Initializes the value for theelementIdattribute.- Parameters:
elementId- The value for elementId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withElementInstanceKey
Initializes the value for theelementInstanceKeyattribute.- Parameters:
elementInstanceKey- The value for elementInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withBpmnProcessId
Initializes the value for thebpmnProcessIdattribute.- Parameters:
bpmnProcessId- The value for bpmnProcessId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withProcessDefinitionVersion
public final ImmutableUserTaskRecordValue.Builder withProcessDefinitionVersion(int processDefinitionVersion) Initializes the value for theprocessDefinitionVersionattribute.- Parameters:
processDefinitionVersion- The value for processDefinitionVersion- Returns:
thisbuilder for use in a chained invocation
-
withProcessDefinitionKey
public final ImmutableUserTaskRecordValue.Builder withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.- Parameters:
processDefinitionKey- The value for processDefinitionKey- Returns:
thisbuilder for use in a chained invocation
-
withPriority
Initializes the value for thepriorityattribute.- Parameters:
priority- The value for priority- Returns:
thisbuilder for use in a chained invocation
-
clear
Clear the builder to the initial state.- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableUserTaskRecordValue.- Returns:
- An immutable instance of UserTaskRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-