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 java.lang.Object implements DecisionsEvaluationBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected java.lang.String
decisionDefinitionId
protected java.lang.String
decisionDefinitionKey
protected java.lang.String
decisionDefinitionTenantId
protected boolean
isTenantIdSet
protected java.util.Map<java.lang.String,java.lang.Object>
variables
protected java.lang.Integer
version
-
Constructor Summary
Constructors Constructor Description DecisionEvaluationBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DecisionsEvaluationBuilder
decisionDefinitionTenantId(java.lang.String tenantId)
Specify the id of the tenant the decision definition belongs to.DecisionsEvaluationBuilder
decisionDefinitionWithoutTenantId()
Specify that the decision definition belongs to no tenant.DmnDecisionResult
evaluate()
Evaluates the decision.static DecisionsEvaluationBuilder
evaluateDecisionById(CommandExecutor commandExecutor, java.lang.String decisionDefinitionId)
static DecisionsEvaluationBuilder
evaluateDecisionByKey(CommandExecutor commandExecutor, java.lang.String decisionDefinitionKey)
java.lang.String
getDecisionDefinitionId()
java.lang.String
getDecisionDefinitionKey()
java.lang.String
getDecisionDefinitionTenantId()
java.util.Map<java.lang.String,java.lang.Object>
getVariables()
java.lang.Integer
getVersion()
boolean
isTenantIdSet()
DecisionsEvaluationBuilder
variables(java.util.Map<java.lang.String,java.lang.Object> variables)
Set the input values of the decision.DecisionsEvaluationBuilder
version(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
-
DecisionEvaluationBuilderImpl
public DecisionEvaluationBuilderImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
variables
public DecisionsEvaluationBuilder variables(java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface:DecisionsEvaluationBuilder
Set the input values of the decision.- Specified by:
variables
in interfaceDecisionsEvaluationBuilder
-
version
public DecisionsEvaluationBuilder version(java.lang.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(java.lang.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, java.lang.String decisionDefinitionKey)
-
evaluateDecisionById
public static DecisionsEvaluationBuilder evaluateDecisionById(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()
-
-