Package io.camunda.client.impl.command
Class AssignRoleToMappingCommandImpl
java.lang.Object
io.camunda.client.impl.command.AssignRoleToMappingCommandImpl
- All Implemented Interfaces:
AssignRoleToMappingCommandStep1,AssignRoleToMappingCommandStep1.AssignRoleToMappingCommandStep2,FinalCommandStep<AssignRoleToMappingResponse>
public class AssignRoleToMappingCommandImpl
extends Object
implements AssignRoleToMappingCommandStep1, AssignRoleToMappingCommandStep1.AssignRoleToMappingCommandStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.AssignRoleToMappingCommandStep1
AssignRoleToMappingCommandStep1.AssignRoleToMappingCommandStep2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the mapping ID.requestTimeout(Duration timeout) Sets the request timeout for the command.Sets the role ID.send()Sends the command to the Camunda gateway.
-
Constructor Details
-
AssignRoleToMappingCommandImpl
-
-
Method Details
-
roleId
Description copied from interface:AssignRoleToMappingCommandStep1Sets the role ID.- Specified by:
roleIdin interfaceAssignRoleToMappingCommandStep1- Parameters:
roleId- the id of the role- Returns:
- the builder for this command
-
mappingId
Description copied from interface:AssignRoleToMappingCommandStep1.AssignRoleToMappingCommandStep2Sets the mapping ID.- Specified by:
mappingIdin interfaceAssignRoleToMappingCommandStep1.AssignRoleToMappingCommandStep2- Parameters:
mappingId- the id of the mapping- Returns:
- the builder for this command. Call
FinalCommandStep.send()to complete the command and send it to the broker.
-
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<AssignRoleToMappingResponse>- Parameters:
timeout- 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<AssignRoleToMappingResponse>- Returns:
- a future tracking state of success/failure of the command.
-