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 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 DecisionTableEvaluationBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DecisionEvaluationBuilder
decisionDefinitionTenantId(java.lang.String tenantId)
Specify the id of the tenant the decision definition belongs to.DecisionEvaluationBuilder
decisionDefinitionWithoutTenantId()
Specify that the decision definition belongs to no tenant.DmnDecisionTableResult
evaluate()
Evaluates the decision.static DecisionEvaluationBuilder
evaluateDecisionTableById(CommandExecutor commandExecutor, java.lang.String decisionDefinitionId)
static DecisionEvaluationBuilder
evaluateDecisionTableByKey(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()
DecisionEvaluationBuilder
variables(java.util.Map<java.lang.String,java.lang.Object> variables)
Set the input values of the decision.DecisionEvaluationBuilder
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
-
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:DecisionEvaluationBuilder
Set the input values of the decision.- Specified by:
variables
in interfaceDecisionEvaluationBuilder
-
version
public DecisionEvaluationBuilder version(java.lang.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(java.lang.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, 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()
-
-