Class EvaluateDecisionCommandImpl
- All Implemented Interfaces:
CommandWithCommunicationApiStep<EvaluateDecisionCommandStep1>,CommandWithTenantStep<EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2>,EvaluateDecisionCommandStep1,EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2,FinalCommandStep<EvaluateDecisionResponse>
-
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(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, CamundaClientConfiguration config, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient) EvaluateDecisionCommandImpl(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, Duration requestTimeout, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient) Deprecated. -
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()Experimental: This method is under development, and as such using it may have no effect on the command builder when called.useRest()Experimental: This method is under development, and as such using it may have no effect on the command builder when called.Methods inherited from class io.camunda.client.impl.command.CommandWithVariables
variable, variables, variables, variables, variables
-
Constructor Details
-
EvaluateDecisionCommandImpl
public EvaluateDecisionCommandImpl(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, CamundaClientConfiguration config, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient) -
EvaluateDecisionCommandImpl
public EvaluateDecisionCommandImpl(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, Duration requestTimeout, Predicate<CredentialsProvider.StatusCode> retryPredicate, HttpClient httpClient) Deprecated.A constructor that provides an instance with thetenantId set.From version 8.3.0, the java client supports multi-tenancy for this command, which requires the
tenantIdproperty to be defined. This constructor is only intended for backwards compatibility in tests.
-
-
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:CommandWithCommunicationApiStepExperimental: This method is under development, and as such using it may have no effect on the command builder when called. While unimplemented, it simply returns the command builder instance unchanged. This method already exists for software that is building support for a REST API in Camunda, and already wants to use this API during its development. As support for REST is added to Camunda, each of the commands that implement this method may start to take effect. Until this warning is removed, anything described below may not yet have taken effect, and the interface and its description are subject to change.Sets 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 using
CamundaClientBuilder.preferRestOverGrpc(boolean).- Specified by:
useRestin interfaceCommandWithCommunicationApiStep<EvaluateDecisionCommandStep1>- Returns:
- the configured command
-
useGrpc
Description copied from interface:CommandWithCommunicationApiStepExperimental: This method is under development, and as such using it may have no effect on the command builder when called. While unimplemented, it simply returns the command builder instance unchanged. This method already exists for software that is building support for a REST API in Camunda, and already wants to use this API during its development. As support for REST is added to Zeebe, each of the commands that implement this method may start to take effect. Until this warning is removed, anything described below may not yet have taken effect, and the interface and its description are subject to change.Sets 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 using
CamundaClientBuilder.preferRestOverGrpc(boolean).- Specified by:
useGrpcin interfaceCommandWithCommunicationApiStep<EvaluateDecisionCommandStep1>- Returns:
- the configured command
-
EvaluateDecisionCommandImpl(GatewayStub, JsonMapper, CamundaClientConfiguration, Predicate, HttpClient)