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.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:FinalCommandStep
Sets the request timeout for the command. The default request timeout can be configured usingZeebeClientBuilder.defaultRequestTimeout(Duration)
.- Specified by:
requestTimeout
in interfaceFinalCommandStep<UpdateUserTaskResponse>
- Parameters:
requestTimeout
- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStep
Sends 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:
send
in interfaceFinalCommandStep<UpdateUserTaskResponse>
- Returns:
- a future tracking state of success/failure of the command.
-
action
Description copied from interface:UpdateUserTaskCommandStep1
Set the custom action to update the user task with.- Specified by:
action
in 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:UpdateUserTaskCommandStep1
Set the due date to set in the user task. UseUpdateUserTaskCommandStep1.clearDueDate()
to remove the due date from the task.- Specified by:
dueDate
in 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:UpdateUserTaskCommandStep1
Clear the due date in the user task.- Specified by:
clearDueDate
in 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:UpdateUserTaskCommandStep1
Set the follow-up date to set in the user task. UseUpdateUserTaskCommandStep1.clearFollowUpDate()
to remove the follow-up date from the task.- Specified by:
followUpDate
in 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:UpdateUserTaskCommandStep1
Clear the follow-up date in the user task.- Specified by:
clearFollowUpDate
in 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:UpdateUserTaskCommandStep1
Set 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:
candidateGroups
in 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:UpdateUserTaskCommandStep1
Set 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:
candidateGroups
in 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:UpdateUserTaskCommandStep1
Remove the candidate groups from the user task.- Specified by:
clearCandidateGroups
in 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:UpdateUserTaskCommandStep1
Set 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:
candidateUsers
in 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:UpdateUserTaskCommandStep1
Set 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:
candidateUsers
in 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:UpdateUserTaskCommandStep1
Remove the candidate users from the user task.- Specified by:
clearCandidateUsers
in interfaceUpdateUserTaskCommandStep1
- Returns:
- the builder for this command. Call
FinalCommandStep.send()
to complete the command and send it to the broker.
-