Class EvaluateDecisionCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.dmn.cmd.EvaluateDecisionCmd
-
- All Implemented Interfaces:
Command<DmnDecisionResult>
public class EvaluateDecisionCmd extends java.lang.Object implements Command<DmnDecisionResult>
Evaluates the decision with the given key or id. If the decision definition key given then specify the version and tenant-id. If no version is provided then the latest version is taken.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdecisionDefinitionIdprotected java.lang.StringdecisionDefinitionKeyprotected java.lang.StringdecisionDefinitionTenantIdprotected booleanisTenandIdSetprotected VariableMapvariablesprotected java.lang.Integerversion
-
Constructor Summary
Constructors Constructor Description EvaluateDecisionCmd(DecisionEvaluationBuilderImpl builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DmnDecisionResultdoEvaluateDecision(DecisionDefinition decisionDefinition, VariableMap variables)DmnDecisionResultexecute(CommandContext commandContext)protected DecisionDefinitionfindById(DeploymentCache deploymentCache)protected DecisionDefinitionfindByKey(DeploymentCache deploymentCache)protected DecisionDefinitiongetDecisionDefinition(CommandContext commandContext)protected voidwriteUserOperationLog(CommandContext commandContext, DecisionDefinition decisionDefinition)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
decisionDefinitionKey
protected java.lang.String decisionDefinitionKey
-
decisionDefinitionId
protected java.lang.String decisionDefinitionId
-
version
protected java.lang.Integer version
-
variables
protected VariableMap variables
-
decisionDefinitionTenantId
protected java.lang.String decisionDefinitionTenantId
-
isTenandIdSet
protected boolean isTenandIdSet
-
-
Constructor Detail
-
EvaluateDecisionCmd
public EvaluateDecisionCmd(DecisionEvaluationBuilderImpl builder)
-
-
Method Detail
-
execute
public DmnDecisionResult execute(CommandContext commandContext)
- Specified by:
executein interfaceCommand<DmnDecisionResult>
-
writeUserOperationLog
protected void writeUserOperationLog(CommandContext commandContext, DecisionDefinition decisionDefinition)
-
doEvaluateDecision
protected DmnDecisionResult doEvaluateDecision(DecisionDefinition decisionDefinition, VariableMap variables)
-
getDecisionDefinition
protected DecisionDefinition getDecisionDefinition(CommandContext commandContext)
-
findById
protected DecisionDefinition findById(DeploymentCache deploymentCache)
-
findByKey
protected DecisionDefinition findByKey(DeploymentCache deploymentCache)
-
-