Package io.camunda.client.impl.command
Class ActivateAdHocSubProcessActivitiesCommandImpl
java.lang.Object
io.camunda.client.impl.command.CommandWithVariables<ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2>
io.camunda.client.impl.command.ActivateAdHocSubProcessActivitiesCommandImpl
- All Implemented Interfaces:
ActivateAdHocSubProcessActivitiesCommandStep1,ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2,CommandWithVariables<ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2>,FinalCommandStep<ActivateAdHocSubProcessActivitiesResponse>
public final class ActivateAdHocSubProcessActivitiesCommandImpl
extends CommandWithVariables<ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2>
implements ActivateAdHocSubProcessActivitiesCommandStep1, ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.ActivateAdHocSubProcessActivitiesCommandStep1
ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2 -
Field Summary
Fields inherited from class io.camunda.client.impl.command.CommandWithVariables
objectMapper -
Constructor Summary
ConstructorsConstructorDescriptionActivateAdHocSubProcessActivitiesCommandImpl(HttpClient httpClient, JsonMapper jsonMapper, String adHocSubProcessInstanceKey) -
Method Summary
Modifier and TypeMethodDescriptionactivateElement(String elementId) Create anAdHocSubProcessActivateActivitiesInstructionfor the given element id.activateElement(String elementId, Map<String, Object> variables) Create anAdHocSubProcessActivateActivitiesInstructionfor the given element id with variables.cancelRemainingInstances(boolean cancelRemainingInstances) Set whether to cancel remaining instances of the ad-hoc sub-process.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.protected ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2setVariablesInternal(String variables) Methods inherited from class io.camunda.client.impl.command.CommandWithVariables
variable, variables, variables, variables, variablesMethods 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.ActivateAdHocSubProcessActivitiesCommandStep1
activateElements, activateElementsMethods inherited from interface io.camunda.client.api.command.CommandWithVariables
variable, variables, variables, variables, variablesMethods inherited from interface io.camunda.client.api.command.FinalCommandStep
execute
-
Constructor Details
-
ActivateAdHocSubProcessActivitiesCommandImpl
public ActivateAdHocSubProcessActivitiesCommandImpl(HttpClient httpClient, JsonMapper jsonMapper, String adHocSubProcessInstanceKey)
-
-
Method Details
-
activateElement
public ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2 activateElement(String elementId) Description copied from interface:ActivateAdHocSubProcessActivitiesCommandStep1Create anAdHocSubProcessActivateActivitiesInstructionfor the given element id.- Specified by:
activateElementin interfaceActivateAdHocSubProcessActivitiesCommandStep1- Parameters:
elementId- the id of the element to activate- Returns:
- the builder for this command
-
activateElement
public ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2 activateElement(String elementId, Map<String, Object> variables) Description copied from interface:ActivateAdHocSubProcessActivitiesCommandStep1Create anAdHocSubProcessActivateActivitiesInstructionfor the given element id with variables.- Specified by:
activateElementin interfaceActivateAdHocSubProcessActivitiesCommandStep1- Parameters:
elementId- the id of the element to activatevariables- variables to be set when activating the element- Returns:
- the builder for this command
-
cancelRemainingInstances
public ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2 cancelRemainingInstances(boolean cancelRemainingInstances) Description copied from interface:ActivateAdHocSubProcessActivitiesCommandStep1Set whether to cancel remaining instances of the ad-hoc sub-process.- Specified by:
cancelRemainingInstancesin interfaceActivateAdHocSubProcessActivitiesCommandStep1- Parameters:
cancelRemainingInstances- true to cancel remaining instances, false otherwise- Returns:
- the builder for this command
-
requestTimeout
public FinalCommandStep<ActivateAdHocSubProcessActivitiesResponse> 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<ActivateAdHocSubProcessActivitiesResponse>- 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<ActivateAdHocSubProcessActivitiesResponse>- Returns:
- a future tracking state of success/failure of the command.
-
setVariablesInternal
protected ActivateAdHocSubProcessActivitiesCommandStep1.ActivateAdHocSubProcessActivitiesCommandStep2 setVariablesInternal(String variables)
-