Package org.camunda.bpm.engine.impl.dmn
Class DecisionEvaluationBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.dmn.DecisionEvaluationBuilderImpl
-
- All Implemented Interfaces:
DecisionsEvaluationBuilder
public class DecisionEvaluationBuilderImpl extends Object implements DecisionsEvaluationBuilder
-
-
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 DecisionEvaluationBuilderImpl(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
-
DecisionEvaluationBuilderImpl
public DecisionEvaluationBuilderImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
variables
public DecisionsEvaluationBuilder variables(Map<String,Object> variables)
Description copied from interface:DecisionsEvaluationBuilder
Set the input values of the decision.- Specified by:
variables
in interfaceDecisionsEvaluationBuilder
-
version
public DecisionsEvaluationBuilder version(Integer version)
Description copied from interface:DecisionsEvaluationBuilder
Set the version of the decision definition. Ifnull
then the latest version is taken.- Specified by:
version
in interfaceDecisionsEvaluationBuilder
-
decisionDefinitionTenantId
public DecisionsEvaluationBuilder decisionDefinitionTenantId(String tenantId)
Description copied from interface:DecisionsEvaluationBuilder
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 interfaceDecisionsEvaluationBuilder
-
decisionDefinitionWithoutTenantId
public DecisionsEvaluationBuilder decisionDefinitionWithoutTenantId()
Description copied from interface:DecisionsEvaluationBuilder
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 interfaceDecisionsEvaluationBuilder
-
evaluate
public DmnDecisionResult evaluate()
Description copied from interface:DecisionsEvaluationBuilder
Evaluates the decision.- Specified by:
evaluate
in interfaceDecisionsEvaluationBuilder
- Returns:
- the result of the evaluation.
-
evaluateDecisionByKey
public static DecisionsEvaluationBuilder evaluateDecisionByKey(CommandExecutor commandExecutor, String decisionDefinitionKey)
-
evaluateDecisionById
public static DecisionsEvaluationBuilder evaluateDecisionById(CommandExecutor commandExecutor, String decisionDefinitionId)
-
getDecisionDefinitionKey
public String getDecisionDefinitionKey()
-
getDecisionDefinitionId
public String getDecisionDefinitionId()
-
getVersion
public Integer getVersion()
-
getDecisionDefinitionTenantId
public String getDecisionDefinitionTenantId()
-
isTenantIdSet
public boolean isTenantIdSet()
-
-