Package io.camunda.client.impl.command
Class CompleteUserTaskCommandImpl
java.lang.Object
io.camunda.client.impl.command.CommandWithVariables<CompleteUserTaskCommandStep1>
io.camunda.client.impl.command.CompleteUserTaskCommandImpl
- All Implemented Interfaces:
CommandWithVariables<CompleteUserTaskCommandStep1>,CompleteUserTaskCommandStep1,FinalCommandStep<CompleteUserTaskResponse>
public final class CompleteUserTaskCommandImpl
extends CommandWithVariables<CompleteUserTaskCommandStep1>
implements CompleteUserTaskCommandStep1
This command implementation currently does not extend
CommandWithVariables since we would
have to handle a String-ified JSON variables object. The request object itself expects a Map though. In the future, we might extend this to also allow all options from CommandWithVariables here.-
Field Summary
Fields inherited from class io.camunda.client.impl.command.CommandWithVariables
objectMapper -
Constructor Summary
ConstructorsConstructorDescriptionCompleteUserTaskCommandImpl(HttpClient httpClient, JsonMapper jsonMapper, long userTaskKey) -
Method Summary
Modifier and TypeMethodDescriptionSet the custom action to complete the user task with.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.protected CompleteUserTaskCommandStep1setVariablesInternal(String variables) Methods inherited from class io.camunda.client.impl.command.CommandWithVariables
variable, variables, variables, variables, variables
-
Constructor Details
-
CompleteUserTaskCommandImpl
-
-
Method Details
-
requestTimeout
Description copied from interface:FinalCommandStepSets the request timeout for the command. The default request timeout can be configured usingCamundaClientBuilder.defaultRequestTimeout(Duration).- Specified by:
requestTimeoutin interfaceFinalCommandStep<CompleteUserTaskResponse>- Parameters:
requestTimeout- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStepSends the command to the Camunda gateway. This operation is asynchronous. In case of success, the future returns the event that was generated by the Camunda gateway in response to the command.Call
CamundaFuture.join()to wait until the response is available.Future<JobEventinvalid input: '>' future = command.send(); JobEvent event = future.join();- Specified by:
sendin interfaceFinalCommandStep<CompleteUserTaskResponse>- Returns:
- a future tracking state of success/failure of the command.
-
action
Description copied from interface:CompleteUserTaskCommandStep1Set the custom action to complete the user task with.- Specified by:
actionin interfaceCompleteUserTaskCommandStep1- Parameters:
action- the action value- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
setVariablesInternal
- Specified by:
setVariablesInternalin classCommandWithVariables<CompleteUserTaskCommandStep1>
-