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 CommandExecutorcommandExecutorprotected StringdecisionDefinitionIdprotected StringdecisionDefinitionKeyprotected StringdecisionDefinitionTenantIdprotected booleanisTenantIdSetprotected Map<String,Object>variablesprotected Integerversion
-
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:DecisionEvaluationBuilderSet the input values of the decision.- Specified by:
variablesin interfaceDecisionEvaluationBuilder
-
version
public DecisionEvaluationBuilder version(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(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, 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()
-
-