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 Object implements DecisionEvaluationBuilder
- Author:
- Kristin Polenz
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected String
decisionDefinitionId
protected String
decisionDefinitionKey
protected String
decisionDefinitionTenantId
protected boolean
isTenantIdSet
protected Map<String,Object>
variables
protected Integer
version
-
Constructor Summary
Constructors Constructor Description DecisionTableEvaluationBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
-
-
-
Field Detail
-
commandExecutor
protected CommandExecutor commandExecutor
-
decisionDefinitionKey
protected String decisionDefinitionKey
-
decisionDefinitionId
protected String decisionDefinitionId
-
version
protected Integer version
-
decisionDefinitionTenantId
protected String decisionDefinitionTenantId
-
isTenantIdSet
protected boolean isTenantIdSet
-
-
Constructor Detail
-
DecisionTableEvaluationBuilderImpl
public DecisionTableEvaluationBuilderImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
variables
public DecisionEvaluationBuilder variables(Map<String,Object> variables)
Description copied from interface:DecisionEvaluationBuilder
Set the input values of the decision.- Specified by:
variables
in interfaceDecisionEvaluationBuilder
-
version
public DecisionEvaluationBuilder version(Integer version)
Description copied from interface:DecisionEvaluationBuilder
Set the version of the decision definition. Ifnull
then the latest version is taken.- Specified by:
version
in interfaceDecisionEvaluationBuilder
-
decisionDefinitionTenantId
public DecisionEvaluationBuilder decisionDefinitionTenantId(String tenantId)
Description copied from interface:DecisionEvaluationBuilder
Specify the id of the tenant the decision definition belongs to. Can only be used when the definition is referenced bykey
and not byid
.- Specified by:
decisionDefinitionTenantId
in interfaceDecisionEvaluationBuilder
-
decisionDefinitionWithoutTenantId
public DecisionEvaluationBuilder decisionDefinitionWithoutTenantId()
Description copied from interface:DecisionEvaluationBuilder
Specify that the decision definition belongs to no tenant. Can only be used when the definition is referenced bykey
and not byid
.- Specified by:
decisionDefinitionWithoutTenantId
in interfaceDecisionEvaluationBuilder
-
evaluate
public DmnDecisionTableResult evaluate()
Description copied from interface:DecisionEvaluationBuilder
Evaluates the decision.- Specified by:
evaluate
in interfaceDecisionEvaluationBuilder
- Returns:
- the result of the evaluation.
-
evaluateDecisionTableByKey
public static DecisionEvaluationBuilder evaluateDecisionTableByKey(CommandExecutor commandExecutor, String decisionDefinitionKey)
-
evaluateDecisionTableById
public static DecisionEvaluationBuilder evaluateDecisionTableById(CommandExecutor commandExecutor, String decisionDefinitionId)
-
getDecisionDefinitionKey
public String getDecisionDefinitionKey()
-
getDecisionDefinitionId
public String getDecisionDefinitionId()
-
getVersion
public Integer getVersion()
-
getDecisionDefinitionTenantId
public String getDecisionDefinitionTenantId()
-
isTenantIdSet
public boolean isTenantIdSet()
-
-