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 CommandExecutorcommandExecutorprotected java.lang.StringdecisionDefinitionIdprotected java.lang.StringdecisionDefinitionKeyprotected java.lang.StringdecisionDefinitionTenantIdprotected booleanisTenantIdSetprotected java.util.Map<java.lang.String,java.lang.Object>variablesprotected java.lang.Integerversion
-
Constructor Summary
Constructors Constructor Description DecisionEvaluationBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DecisionsEvaluationBuilderdecisionDefinitionTenantId(java.lang.String tenantId)Specify the id of the tenant the decision definition belongs to.DecisionsEvaluationBuilderdecisionDefinitionWithoutTenantId()Specify that the decision definition belongs to no tenant.DmnDecisionResultevaluate()Evaluates the decision.static DecisionsEvaluationBuilderevaluateDecisionById(CommandExecutor commandExecutor, java.lang.String decisionDefinitionId)static DecisionsEvaluationBuilderevaluateDecisionByKey(CommandExecutor commandExecutor, java.lang.String decisionDefinitionKey)java.lang.StringgetDecisionDefinitionId()java.lang.StringgetDecisionDefinitionKey()java.lang.StringgetDecisionDefinitionTenantId()java.util.Map<java.lang.String,java.lang.Object>getVariables()java.lang.IntegergetVersion()booleanisTenantIdSet()DecisionsEvaluationBuildervariables(java.util.Map<java.lang.String,java.lang.Object> variables)Set the input values of the decision.DecisionsEvaluationBuilderversion(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:DecisionsEvaluationBuilderSet the input values of the decision.- Specified by:
variablesin interfaceDecisionsEvaluationBuilder
-
version
public DecisionsEvaluationBuilder version(java.lang.Integer version)
Description copied from interface:DecisionsEvaluationBuilderSet the version of the decision definition. Ifnullthen the latest version is taken.- Specified by:
versionin interfaceDecisionsEvaluationBuilder
-
decisionDefinitionTenantId
public DecisionsEvaluationBuilder decisionDefinitionTenantId(java.lang.String tenantId)
Description copied from interface:DecisionsEvaluationBuilderSpecify 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 interfaceDecisionsEvaluationBuilder
-
decisionDefinitionWithoutTenantId
public DecisionsEvaluationBuilder decisionDefinitionWithoutTenantId()
Description copied from interface:DecisionsEvaluationBuilderSpecify that the decision definition belongs to no tenant. Can only be used when the definition is referenced bykeyand not byid.- Specified by:
decisionDefinitionWithoutTenantIdin interfaceDecisionsEvaluationBuilder
-
evaluate
public DmnDecisionResult evaluate()
Description copied from interface:DecisionsEvaluationBuilderEvaluates the decision.- Specified by:
evaluatein 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()
-
-