Package io.camunda.client.impl.command
Class AssignRoleToMappingRuleCommandImpl
java.lang.Object
io.camunda.client.impl.command.AssignRoleToMappingRuleCommandImpl
- All Implemented Interfaces:
AssignRoleToMappingRuleCommandStep1,AssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep2,AssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep3,FinalCommandStep<AssignRoleToMappingRuleResponse>
public class AssignRoleToMappingRuleCommandImpl
extends Object
implements AssignRoleToMappingRuleCommandStep1, AssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep2, AssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep3
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.AssignRoleToMappingRuleCommandStep1
AssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep2, AssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep3 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmappingRuleId(String mappingRuleId) Sets the mapping rule ID.requestTimeout(Duration timeout) Sets the request timeout for the command.Sets the role ID.send()Sends the command to the Camunda gateway.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
-
AssignRoleToMappingRuleCommandImpl
-
-
Method Details
-
roleId
public AssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep2 roleId(String roleId) Description copied from interface:AssignRoleToMappingRuleCommandStep1Sets the role ID.- Specified by:
roleIdin interfaceAssignRoleToMappingRuleCommandStep1- Parameters:
roleId- the id of the role- Returns:
- the builder for this command
-
mappingRuleId
public AssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep3 mappingRuleId(String mappingRuleId) Description copied from interface:AssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep2Sets the mapping rule ID.- Specified by:
mappingRuleIdin interfaceAssignRoleToMappingRuleCommandStep1.AssignRoleToMappingRuleCommandStep2- Parameters:
mappingRuleId- the id of the mapping rule- 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<AssignRoleToMappingRuleResponse>- 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<AssignRoleToMappingRuleResponse>- Returns:
- a future tracking state of success/failure of the command.
-