Package io.camunda.client.impl.command
Class AssignProcessInstanceBusinessIdCommandImpl
java.lang.Object
io.camunda.client.impl.command.AssignProcessInstanceBusinessIdCommandImpl
- All Implemented Interfaces:
AssignProcessInstanceBusinessIdCommandStep1,AssignProcessInstanceBusinessIdCommandStep1.AssignProcessInstanceBusinessIdCommandStep2,CommandWithCommunicationApiStep<AssignProcessInstanceBusinessIdCommandStep1>,FinalCommandStep<AssignProcessInstanceBusinessIdResponse>
public final class AssignProcessInstanceBusinessIdCommandImpl
extends Object
implements AssignProcessInstanceBusinessIdCommandStep1, AssignProcessInstanceBusinessIdCommandStep1.AssignProcessInstanceBusinessIdCommandStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.AssignProcessInstanceBusinessIdCommandStep1
AssignProcessInstanceBusinessIdCommandStep1.AssignProcessInstanceBusinessIdCommandStep2 -
Constructor Summary
ConstructorsConstructorDescriptionAssignProcessInstanceBusinessIdCommandImpl(long processInstanceKey, io.camunda.zeebe.gateway.protocol.GatewayGrpc.GatewayStub asyncStub, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient, CamundaClientConfiguration config, JsonMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescriptionbusinessId(String businessId) Set the business id to assign to the process instance.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.useGrpc()Sets gRPC as the communication API for this command.useRest()Sets REST as the communication API for this command.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.client.api.command.FinalCommandStep
execute
-
Constructor Details
-
AssignProcessInstanceBusinessIdCommandImpl
public AssignProcessInstanceBusinessIdCommandImpl(long processInstanceKey, io.camunda.zeebe.gateway.protocol.GatewayGrpc.GatewayStub asyncStub, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient, CamundaClientConfiguration config, JsonMapper jsonMapper)
-
-
Method Details
-
businessId
public AssignProcessInstanceBusinessIdCommandStep1.AssignProcessInstanceBusinessIdCommandStep2 businessId(String businessId) Description copied from interface:AssignProcessInstanceBusinessIdCommandStep1Set the business id to assign to the process instance.- Specified by:
businessIdin interfaceAssignProcessInstanceBusinessIdCommandStep1- Parameters:
businessId- the business id to assign- Returns:
- the builder for this command
-
requestTimeout
public FinalCommandStep<AssignProcessInstanceBusinessIdResponse> requestTimeout(Duration 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<AssignProcessInstanceBusinessIdResponse>- 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<AssignProcessInstanceBusinessIdResponse>- Returns:
- a future tracking state of success/failure of the command.
-
useRest
Description copied from interface:CommandWithCommunicationApiStepSets REST as the communication API for this command. If this command doesn't support communication over REST, it simply returns the command builder instance unchanged. The default communication API can be configured usingCamundaClientBuilder.preferRestOverGrpc(boolean).- Specified by:
useRestin interfaceCommandWithCommunicationApiStep<AssignProcessInstanceBusinessIdCommandStep1>- Returns:
- the configured command
-
useGrpc
Description copied from interface:CommandWithCommunicationApiStepSets gRPC as the communication API for this command. If this command doesn't support communication over gRPC, it simply returns the command builder instance unchanged. The default communication API can be configured usingCamundaClientBuilder.preferRestOverGrpc(boolean).- Specified by:
useGrpcin interfaceCommandWithCommunicationApiStep<AssignProcessInstanceBusinessIdCommandStep1>- Returns:
- the configured command
-