Class EvaluateDecisionCommandImpl
java.lang.Object
io.camunda.zeebe.client.impl.command.CommandWithVariables<EvaluateDecisionCommandImpl>
io.camunda.zeebe.client.impl.command.EvaluateDecisionCommandImpl
- All Implemented Interfaces:
CommandWithTenantStep<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.zeebe.client.api.command.EvaluateDecisionCommandStep1
EvaluateDecisionCommandStep1.EvaluateDecisionCommandStep2 -
Field Summary
Fields inherited from class io.camunda.zeebe.client.impl.command.CommandWithVariables
objectMapperFields inherited from interface io.camunda.zeebe.client.api.command.CommandWithTenantStep
DEFAULT_TENANT_IDENTIFIER -
Constructor Summary
ConstructorsConstructorDescriptionEvaluateDecisionCommandImpl(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, ZeebeClientConfiguration config, Predicate<Throwable> retryPredicate) EvaluateDecisionCommandImpl(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, Duration requestTimeout, Predicate<Throwable> retryPredicate) 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 Zeebe broker.protected EvaluateDecisionCommandImplsetVariablesInternal(String variables) Specifies the tenant that will own any entities (e.g.Methods inherited from class io.camunda.zeebe.client.impl.command.CommandWithVariables
variable, variables, variables, variables, variables
-
Constructor Details
-
EvaluateDecisionCommandImpl
public EvaluateDecisionCommandImpl(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, ZeebeClientConfiguration config, Predicate<Throwable> retryPredicate) -
EvaluateDecisionCommandImpl
public EvaluateDecisionCommandImpl(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, Duration requestTimeout, Predicate<Throwable> retryPredicate) 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 usingZeebeClientBuilder.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 Zeebe broker. This operation is asynchronous. In case of success, the future returns the event that was generated by the Zeebe broker in response to the command.Call
ZeebeFuture.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 Zeebe 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 Zeebe 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
-
EvaluateDecisionCommandImpl(GatewayStub asyncStub, JsonMapper jsonMapper, ZeebeClientConfiguration config, Predicate retryPredicate)