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
- Author:
- Philipp Ossler
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl
commandExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluateDecisionById(String decisionDefinitionId) Returns a fluent builder to evaluate the decision with the given id.evaluateDecisionByKey(String decisionDefinitionKey) Returns a fluent builder to evaluate the decision with the given key.evaluateDecisionTableById(String decisionDefinitionId) Returns a fluent builder to evaluate the decision table with the given id.evaluateDecisionTableById(String decisionDefinitionId, Map<String, Object> variables) Evaluates the decision with the given id.evaluateDecisionTableByKey(String decisionDefinitionKey) Returns a fluent builder to evaluate the decision table with the given key.evaluateDecisionTableByKey(String decisionDefinitionKey, Map<String, Object> variables) Evaluates the decision with the given key in the latest version.evaluateDecisionTableByKeyAndVersion(String decisionDefinitionKey, Integer version, Map<String, 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
-
Constructor Details
-
DecisionServiceImpl
public DecisionServiceImpl()
-
-
Method Details
-
evaluateDecisionTableById
public DmnDecisionTableResult evaluateDecisionTableById(String decisionDefinitionId, Map<String, Object> variables) Description copied from interface:DecisionServiceEvaluates the decision with the given id.- Specified by:
evaluateDecisionTableByIdin 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(String decisionDefinitionKey, Map<String, Object> variables) Description copied from interface:DecisionServiceEvaluates the decision with the given key in the latest version.- Specified by:
evaluateDecisionTableByKeyin 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(String decisionDefinitionKey, Integer version, Map<String, Object> variables) Description copied from interface:DecisionServiceEvaluates 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:
evaluateDecisionTableByKeyAndVersionin interfaceDecisionService- Parameters:
decisionDefinitionKey- the key of the decision definition, cannot be null.version- the version of the decision definition. Ifnullthen the latest version is taken.variables- the input values of the decision.- Returns:
- the result of the evaluation.
-
evaluateDecisionTableByKey
Description copied from interface:DecisionServiceReturns 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:
evaluateDecisionTableByKeyin interfaceDecisionService- Parameters:
decisionDefinitionKey- the key of the decision definition, cannot benull.- Returns:
- a builder to evaluate a decision table
- See Also:
-
evaluateDecisionTableById
Description copied from interface:DecisionServiceReturns 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:
evaluateDecisionTableByIdin interfaceDecisionService- Parameters:
decisionDefinitionId- the id of the decision definition, cannot benull.- Returns:
- a builder to evaluate a decision table
- See Also:
-
evaluateDecisionByKey
Description copied from interface:DecisionServiceReturns 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:
evaluateDecisionByKeyin interfaceDecisionService- Parameters:
decisionDefinitionKey- the key of the decision definition, cannot benull.- Returns:
- a builder to evaluate a decision
-
evaluateDecisionById
Description copied from interface:DecisionServiceReturns 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:
evaluateDecisionByIdin interfaceDecisionService- Parameters:
decisionDefinitionId- the id of the decision definition, cannot benull.- Returns:
- a builder to evaluate a decision
-