Class UpdateUserTaskCommandImpl
java.lang.Object
io.camunda.zeebe.client.impl.command.UpdateUserTaskCommandImpl
- All Implemented Interfaces:
FinalCommandStep<UpdateUserTaskResponse>,UpdateUserTaskCommandStep1
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateUserTaskCommandImpl(HttpClient httpClient, JsonMapper jsonMapper, long userTaskKey) -
Method Summary
Modifier and TypeMethodDescriptionSet the custom action to update the user task with.candidateGroups(String... candidateGroups) Set the candidate groups to set in the user task.candidateGroups(List<String> candidateGroups) Set the candidate groups to set in the user task.candidateUsers(String... candidateUsers) Set the candidate users to set in the user task.candidateUsers(List<String> candidateUsers) Set the candidate users to set in the user task.Remove the candidate groups from the user task.Remove the candidate users from the user task.Clear the due date in the user task.Clear the follow-up date in the user task.Set the due date to set in the user task.followUpDate(String followUpDate) Set the follow-up date to set in the user task.Set the priority of the User Task.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Zeebe broker.
-
Constructor Details
-
UpdateUserTaskCommandImpl
-
-
Method Details
-
requestTimeout
Description copied from interface:FinalCommandStepSets the request timeout for the command. The default request timeout can be configured usingZeebeClientBuilder.defaultRequestTimeout(Duration).- Specified by:
requestTimeoutin interfaceFinalCommandStep<UpdateUserTaskResponse>- Parameters:
requestTimeout- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStepSends the command to the Zeebe broker. This operation is asynchronous. In case of success, the future returns the event that was generated by the Zeebe broker in response to the command.Call
ZeebeFuture.join()to wait until the response is available.Future<JobEventinvalid input: '>' future = command.send(); JobEvent event = future.join();- Specified by:
sendin interfaceFinalCommandStep<UpdateUserTaskResponse>- Returns:
- a future tracking state of success/failure of the command.
-
action
Description copied from interface:UpdateUserTaskCommandStep1Set the custom action to update the user task with.- Specified by:
actionin interfaceUpdateUserTaskCommandStep1- Parameters:
action- the action value- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
dueDate
Description copied from interface:UpdateUserTaskCommandStep1Set the due date to set in the user task. UseUpdateUserTaskCommandStep1.clearDueDate()to remove the due date from the task.- Specified by:
dueDatein interfaceUpdateUserTaskCommandStep1- Parameters:
dueDate- the due date to set- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
clearDueDate
Description copied from interface:UpdateUserTaskCommandStep1Clear the due date in the user task.- Specified by:
clearDueDatein interfaceUpdateUserTaskCommandStep1- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
followUpDate
Description copied from interface:UpdateUserTaskCommandStep1Set the follow-up date to set in the user task. UseUpdateUserTaskCommandStep1.clearFollowUpDate()to remove the follow-up date from the task.- Specified by:
followUpDatein interfaceUpdateUserTaskCommandStep1- Parameters:
followUpDate- the follow-up date to set- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
clearFollowUpDate
Description copied from interface:UpdateUserTaskCommandStep1Clear the follow-up date in the user task.- Specified by:
clearFollowUpDatein interfaceUpdateUserTaskCommandStep1- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
candidateGroups
Description copied from interface:UpdateUserTaskCommandStep1Set the candidate groups to set in the user task. This replaces the candidate groups in the task. UseUpdateUserTaskCommandStep1.clearCandidateGroups()to remove the candidate groups from the task.- Specified by:
candidateGroupsin interfaceUpdateUserTaskCommandStep1- Parameters:
candidateGroups- the candidate groups to set- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
candidateGroups
Description copied from interface:UpdateUserTaskCommandStep1Set the candidate groups to set in the user task. This replaces the candidate groups in the task. UseUpdateUserTaskCommandStep1.clearCandidateGroups()to remove the candidate groups from the task.- Specified by:
candidateGroupsin interfaceUpdateUserTaskCommandStep1- Parameters:
candidateGroups- the candidate groups to set- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
clearCandidateGroups
Description copied from interface:UpdateUserTaskCommandStep1Remove the candidate groups from the user task.- Specified by:
clearCandidateGroupsin interfaceUpdateUserTaskCommandStep1- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
candidateUsers
Description copied from interface:UpdateUserTaskCommandStep1Set the candidate users to set in the user task. This replaces the candidate users in the task. UseUpdateUserTaskCommandStep1.clearCandidateUsers()to remove the candidate users from the task.- Specified by:
candidateUsersin interfaceUpdateUserTaskCommandStep1- Parameters:
candidateUsers- the candidate users to set- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
candidateUsers
Description copied from interface:UpdateUserTaskCommandStep1Set the candidate users to set in the user task. This replaces the candidate users in the task. UseUpdateUserTaskCommandStep1.clearCandidateUsers()to remove the candidate users from the task.- Specified by:
candidateUsersin interfaceUpdateUserTaskCommandStep1- Parameters:
candidateUsers- the candidate users to set- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
clearCandidateUsers
Description copied from interface:UpdateUserTaskCommandStep1Remove the candidate users from the user task.- Specified by:
clearCandidateUsersin interfaceUpdateUserTaskCommandStep1- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
priority
Description copied from interface:UpdateUserTaskCommandStep1Set the priority of the User Task. The priority must be an integer between 0 and 100, default 50.- Specified by:
priorityin interfaceUpdateUserTaskCommandStep1- Parameters:
priority- the priority to set- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-