Package org.camunda.bpm.engine.impl
Class DecisionServiceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.ServiceImpl
-
- org.camunda.bpm.engine.impl.DecisionServiceImpl
-
- All Implemented Interfaces:
DecisionService
public class DecisionServiceImpl extends ServiceImpl implements DecisionService
- Author:
- Philipp Ossler
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl
commandExecutor
-
-
Constructor Summary
Constructors Constructor Description DecisionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecisionsEvaluationBuilder
evaluateDecisionById(java.lang.String decisionDefinitionId)
Returns a fluent builder to evaluate the decision with the given id.DecisionsEvaluationBuilder
evaluateDecisionByKey(java.lang.String decisionDefinitionKey)
Returns a fluent builder to evaluate the decision with the given key.DecisionEvaluationBuilder
evaluateDecisionTableById(java.lang.String decisionDefinitionId)
Returns a fluent builder to evaluate the decision table with the given id.DmnDecisionTableResult
evaluateDecisionTableById(java.lang.String decisionDefinitionId, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates the decision with the given id.DecisionEvaluationBuilder
evaluateDecisionTableByKey(java.lang.String decisionDefinitionKey)
Returns a fluent builder to evaluate the decision table with the given key.DmnDecisionTableResult
evaluateDecisionTableByKey(java.lang.String decisionDefinitionKey, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates the decision with the given key in the latest version.DmnDecisionTableResult
evaluateDecisionTableByKeyAndVersion(java.lang.String decisionDefinitionKey, java.lang.Integer version, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates the decision with the given key in the specified version.-
Methods inherited from class org.camunda.bpm.engine.impl.ServiceImpl
getCommandExecutor, setCommandExecutor
-
-
-
-
Method Detail
-
evaluateDecisionTableById
public DmnDecisionTableResult evaluateDecisionTableById(java.lang.String decisionDefinitionId, java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface:DecisionService
Evaluates the decision with the given id.- Specified by:
evaluateDecisionTableById
in interfaceDecisionService
- Parameters:
decisionDefinitionId
- the id of the decision definition, cannot be null.variables
- the input values of the decision.- Returns:
- the result of the evaluation.
-
evaluateDecisionTableByKey
public DmnDecisionTableResult evaluateDecisionTableByKey(java.lang.String decisionDefinitionKey, java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface:DecisionService
Evaluates the decision with the given key in the latest version.- Specified by:
evaluateDecisionTableByKey
in interfaceDecisionService
- Parameters:
decisionDefinitionKey
- the key of the decision definition, cannot be null.variables
- the input values of the decision.- Returns:
- the result of the evaluation.
-
evaluateDecisionTableByKeyAndVersion
public DmnDecisionTableResult evaluateDecisionTableByKeyAndVersion(java.lang.String decisionDefinitionKey, java.lang.Integer version, java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface:DecisionService
Evaluates the decision with the given key in the specified version. If no version is provided then the latest version of the decision definition is taken.- Specified by:
evaluateDecisionTableByKeyAndVersion
in interfaceDecisionService
- Parameters:
decisionDefinitionKey
- the key of the decision definition, cannot be null.version
- the version of the decision definition. Ifnull
then the latest version is taken.variables
- the input values of the decision.- Returns:
- the result of the evaluation.
-
evaluateDecisionTableByKey
public DecisionEvaluationBuilder evaluateDecisionTableByKey(java.lang.String decisionDefinitionKey)
Description copied from interface:DecisionService
Returns a fluent builder to evaluate the decision table with the given key. The builder can be used to set further properties and specify evaluation instructions.- Specified by:
evaluateDecisionTableByKey
in interfaceDecisionService
- Parameters:
decisionDefinitionKey
- the key of the decision definition, cannot benull
.- Returns:
- a builder to evaluate a decision table
- See Also:
DecisionService.evaluateDecisionByKey(String)
-
evaluateDecisionTableById
public DecisionEvaluationBuilder evaluateDecisionTableById(java.lang.String decisionDefinitionId)
Description copied from interface:DecisionService
Returns a fluent builder to evaluate the decision table with the given id. The builder can be used to set further properties and specify evaluation instructions.- Specified by:
evaluateDecisionTableById
in interfaceDecisionService
- Parameters:
decisionDefinitionId
- the id of the decision definition, cannot benull
.
- Returns:
- a builder to evaluate a decision table
- See Also:
DecisionService.evaluateDecisionById(String)
-
evaluateDecisionByKey
public DecisionsEvaluationBuilder evaluateDecisionByKey(java.lang.String decisionDefinitionKey)
Description copied from interface:DecisionService
Returns a fluent builder to evaluate the decision with the given key. The builder can be used to set further properties and specify evaluation instructions.- Specified by:
evaluateDecisionByKey
in interfaceDecisionService
- Parameters:
decisionDefinitionKey
- the key of the decision definition, cannot benull
.- Returns:
- a builder to evaluate a decision
-
evaluateDecisionById
public DecisionsEvaluationBuilder evaluateDecisionById(java.lang.String decisionDefinitionId)
Description copied from interface:DecisionService
Returns a fluent builder to evaluate the decision with the given id. The builder can be used to set further properties and specify evaluation instructions.- Specified by:
evaluateDecisionById
in interfaceDecisionService
- Parameters:
decisionDefinitionId
- the id of the decision definition, cannot benull
.
- Returns:
- a builder to evaluate a decision
-
-