Package org.camunda.bpm.engine.impl.dmn
Class DecisionTableEvaluationBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.dmn.DecisionTableEvaluationBuilderImpl
-
- All Implemented Interfaces:
DecisionEvaluationBuilder
public class DecisionTableEvaluationBuilderImpl extends java.lang.Object implements DecisionEvaluationBuilder
- Author:
- Kristin Polenz
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected java.lang.StringdecisionDefinitionIdprotected java.lang.StringdecisionDefinitionKeyprotected java.lang.StringdecisionDefinitionTenantIdprotected booleanisTenantIdSetprotected java.util.Map<java.lang.String,java.lang.Object>variablesprotected java.lang.Integerversion
-
Constructor Summary
Constructors Constructor Description DecisionTableEvaluationBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DecisionEvaluationBuilderdecisionDefinitionTenantId(java.lang.String tenantId)Specify the id of the tenant the decision definition belongs to.DecisionEvaluationBuilderdecisionDefinitionWithoutTenantId()Specify that the decision definition belongs to no tenant.DmnDecisionTableResultevaluate()Evaluates the decision.static DecisionEvaluationBuilderevaluateDecisionTableById(CommandExecutor commandExecutor, java.lang.String decisionDefinitionId)static DecisionEvaluationBuilderevaluateDecisionTableByKey(CommandExecutor commandExecutor, java.lang.String decisionDefinitionKey)java.lang.StringgetDecisionDefinitionId()java.lang.StringgetDecisionDefinitionKey()java.lang.StringgetDecisionDefinitionTenantId()java.util.Map<java.lang.String,java.lang.Object>getVariables()java.lang.IntegergetVersion()booleanisTenantIdSet()DecisionEvaluationBuildervariables(java.util.Map<java.lang.String,java.lang.Object> variables)Set the input values of the decision.DecisionEvaluationBuilderversion(java.lang.Integer version)Set the version of the decision definition.
-
-
-
Field Detail
-
commandExecutor
protected CommandExecutor commandExecutor
-
decisionDefinitionKey
protected java.lang.String decisionDefinitionKey
-
decisionDefinitionId
protected java.lang.String decisionDefinitionId
-
version
protected java.lang.Integer version
-
variables
protected java.util.Map<java.lang.String,java.lang.Object> variables
-
decisionDefinitionTenantId
protected java.lang.String decisionDefinitionTenantId
-
isTenantIdSet
protected boolean isTenantIdSet
-
-
Constructor Detail
-
DecisionTableEvaluationBuilderImpl
public DecisionTableEvaluationBuilderImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
variables
public DecisionEvaluationBuilder variables(java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface:DecisionEvaluationBuilderSet the input values of the decision.- Specified by:
variablesin interfaceDecisionEvaluationBuilder
-
version
public DecisionEvaluationBuilder version(java.lang.Integer version)
Description copied from interface:DecisionEvaluationBuilderSet the version of the decision definition. Ifnullthen the latest version is taken.- Specified by:
versionin interfaceDecisionEvaluationBuilder
-
decisionDefinitionTenantId
public DecisionEvaluationBuilder decisionDefinitionTenantId(java.lang.String tenantId)
Description copied from interface:DecisionEvaluationBuilderSpecify the id of the tenant the decision definition belongs to. Can only be used when the definition is referenced bykeyand not byid.- Specified by:
decisionDefinitionTenantIdin interfaceDecisionEvaluationBuilder
-
decisionDefinitionWithoutTenantId
public DecisionEvaluationBuilder decisionDefinitionWithoutTenantId()
Description copied from interface:DecisionEvaluationBuilderSpecify that the decision definition belongs to no tenant. Can only be used when the definition is referenced bykeyand not byid.- Specified by:
decisionDefinitionWithoutTenantIdin interfaceDecisionEvaluationBuilder
-
evaluate
public DmnDecisionTableResult evaluate()
Description copied from interface:DecisionEvaluationBuilderEvaluates the decision.- Specified by:
evaluatein interfaceDecisionEvaluationBuilder- Returns:
- the result of the evaluation.
-
evaluateDecisionTableByKey
public static DecisionEvaluationBuilder evaluateDecisionTableByKey(CommandExecutor commandExecutor, java.lang.String decisionDefinitionKey)
-
evaluateDecisionTableById
public static DecisionEvaluationBuilder evaluateDecisionTableById(CommandExecutor commandExecutor, java.lang.String decisionDefinitionId)
-
getDecisionDefinitionKey
public java.lang.String getDecisionDefinitionKey()
-
getDecisionDefinitionId
public java.lang.String getDecisionDefinitionId()
-
getVersion
public java.lang.Integer getVersion()
-
getVariables
public java.util.Map<java.lang.String,java.lang.Object> getVariables()
-
getDecisionDefinitionTenantId
public java.lang.String getDecisionDefinitionTenantId()
-
isTenantIdSet
public boolean isTenantIdSet()
-
-