Package io.camunda.client.impl.command
Class EvaluateDecisionCommandImpl
java.lang.Object
io.camunda.client.impl.command.CommandWithVariables<EvaluateDecisionCommandImpl>
io.camunda.client.impl.command.EvaluateDecisionCommandImpl
- All Implemented Interfaces:
CommandWithCommunicationApiStep<EvaluateDecisionCommandStep1>,CommandWithTenantStep<EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2>,CommandWithVariables<EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2>,EvaluateDecisionCommandStep1,EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2,FinalCommandStep<EvaluateDecisionResponse>
public class EvaluateDecisionCommandImpl
extends CommandWithVariables<EvaluateDecisionCommandImpl>
implements EvaluateDecisionCommandStep1, EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.EvaluateDecisionCommandStep1
EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2 -
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
ConstructorsConstructorDescriptionEvaluateDecisionCommandImpl(io.camunda.zeebe.gateway.protocol.GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, CamundaClientConfiguration config, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptiondecisionId(String decisionId) Set the id of the decision to evaluate.decisionKey(long decisionKey) Set the key of the decision to evaluate.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.protected EvaluateDecisionCommandImplsetVariablesInternal(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.EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2
variable, variables, variables, variables, variablesMethods inherited from interface io.camunda.client.api.command.FinalCommandStep
execute
-
Constructor Details
-
EvaluateDecisionCommandImpl
public EvaluateDecisionCommandImpl(io.camunda.zeebe.gateway.protocol.GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, CamundaClientConfiguration config, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient)
-
-
Method Details
-
setVariablesInternal
- Specified by:
setVariablesInternalin classCommandWithVariables<EvaluateDecisionCommandImpl>
-
decisionId
Description copied from interface:EvaluateDecisionCommandStep1Set the id of the decision to evaluate. This is the static id of the decision in the DMN XML (i.e. "<decision id='my-decision'>").- Specified by:
decisionIdin interfaceEvaluateDecisionCommandStep1- Parameters:
decisionId- the DMN id of the decision- Returns:
- the builder for this command
-
decisionKey
Description copied from interface:EvaluateDecisionCommandStep1Set the key of the decision to evaluate. The key is assigned by the broker while deploying the decision. It can be picked from the deployment.- Specified by:
decisionKeyin interfaceEvaluateDecisionCommandStep1- Parameters:
decisionKey- the key of the decision- Returns:
- the builder for this command
-
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<EvaluateDecisionResponse>- 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<EvaluateDecisionResponse>- Returns:
- a future tracking state of success/failure of the 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<EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2>- 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
-
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<EvaluateDecisionCommandStep1>- 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<EvaluateDecisionCommandStep1>- Returns:
- the configured command
-