Package io.camunda.client.impl.command
Class EvaluateConditionalCommandImpl
java.lang.Object
io.camunda.client.impl.command.CommandWithVariables<EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2>
io.camunda.client.impl.command.EvaluateConditionalCommandImpl
- All Implemented Interfaces:
CommandWithCommunicationApiStep<EvaluateConditionalCommandStep1>,CommandWithTenantStep<EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2>,CommandWithVariables<EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2>,EvaluateConditionalCommandStep1,EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2,FinalCommandStep<EvaluateConditionalResponse>
public final class EvaluateConditionalCommandImpl
extends CommandWithVariables<EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2>
implements EvaluateConditionalCommandStep1, EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.EvaluateConditionalCommandStep1
EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2 -
Field Summary
Fields inherited from class io.camunda.client.impl.command.CommandWithVariables
objectMapperFields inherited from interface io.camunda.client.api.command.CommandWithTenantStep
DEFAULT_TENANT_IDENTIFIER -
Constructor Summary
ConstructorsConstructorDescriptionEvaluateConditionalCommandImpl(io.camunda.zeebe.gateway.protocol.GatewayGrpc.GatewayStub asyncStub, CamundaClientConfiguration config, JsonMapper jsonMapper, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptionprocessDefinitionKey(long processDefinitionKey) Set the key of the process definition to evaluate conditional start events for.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.setVariablesInternal(String variables) Specifies the tenant that will own any entities (e.g. process definition, process instances, etc.) resulting from this command, or that owns any entities (e.g. jobs) referred to from this command.useGrpc()Sets gRPC as the communication API for this command.useRest()Sets REST as the communication API for this command.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.CommandWithVariables
variable, variables, variables, variables, variablesMethods inherited from interface io.camunda.client.api.command.FinalCommandStep
execute
-
Constructor Details
-
EvaluateConditionalCommandImpl
public EvaluateConditionalCommandImpl(io.camunda.zeebe.gateway.protocol.GatewayGrpc.GatewayStub asyncStub, CamundaClientConfiguration config, JsonMapper jsonMapper, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient)
-
-
Method Details
-
setVariablesInternal
protected EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2 setVariablesInternal(String variables) - Specified by:
setVariablesInternalin classCommandWithVariables<EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2>
-
processDefinitionKey
public EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2 processDefinitionKey(long processDefinitionKey) Description copied from interface:EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2Set the key of the process definition to evaluate conditional start events for. If a key is not set, the root-level conditional start events across all process definitions will be evaluated.This value will be used to evaluate only the conditional start events of the specified process definition.
- Specified by:
processDefinitionKeyin interfaceEvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2- Parameters:
processDefinitionKey- the key of the process definition- Returns:
- the builder for this command
-
tenantId
Description copied from interface:CommandWithTenantStepSpecifies the tenant that will own any entities (e.g. process definition, process instances, etc.) resulting from this command, or that owns any entities (e.g. jobs) referred to from this command.Multi-tenancy
Multiple tenants can share a Camunda cluster. Entities can be assigned to a specific tenant using an identifier. Only that tenant can access these entities.
Any entities created before multi-tenancy has been enabled in the Camunda cluster, are assigned to the
CommandWithTenantStep.DEFAULT_TENANT_IDENTIFIER.If no tenant is explicitly specified, then the command is rejected.
- Specified by:
tenantIdin interfaceCommandWithTenantStep<EvaluateConditionalCommandStep1.EvaluateConditionalCommandStep2>- Parameters:
tenantId- the identifier of the tenant to specify for this command, e.g."ACME"- Returns:
- the builder for this command with the tenant specified
-
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<EvaluateConditionalResponse>- 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<EvaluateConditionalResponse>- 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<EvaluateConditionalCommandStep1>- 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<EvaluateConditionalCommandStep1>- Returns:
- the configured command
-