public class DecisionServiceImpl extends ServiceImpl implements DecisionService
commandExecutor
Constructor and Description |
---|
DecisionServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected DmnDecisionTableResult |
evaluateDecisionTable(Command<DmnDecisionTableResult> cmd) |
DmnDecisionTableResult |
evaluateDecisionTableById(String decisionDefinitionId,
Map<String,Object> variables)
Evaluates the decision with the given id.
|
DmnDecisionTableResult |
evaluateDecisionTableByKey(String decisionDefinitionKey,
Map<String,Object> variables)
Evaluates the decision with the given key in the latest version.
|
DmnDecisionTableResult |
evaluateDecisionTableByKeyAndVersion(String decisionDefinitionKey,
Integer version,
Map<String,Object> variables)
Evaluates the decision with the given key in the specified version.
|
getCommandExecutor, setCommandExecutor
public DmnDecisionTableResult evaluateDecisionTableById(String decisionDefinitionId, Map<String,Object> variables)
DecisionService
evaluateDecisionTableById
in interface DecisionService
decisionDefinitionId
- the id of the decision definition, cannot be null.variables
- the input values of the decision.public DmnDecisionTableResult evaluateDecisionTableByKey(String decisionDefinitionKey, Map<String,Object> variables)
DecisionService
evaluateDecisionTableByKey
in interface DecisionService
decisionDefinitionKey
- the key of the decision definition, cannot be null.variables
- the input values of the decision.public DmnDecisionTableResult evaluateDecisionTableByKeyAndVersion(String decisionDefinitionKey, Integer version, Map<String,Object> variables)
DecisionService
evaluateDecisionTableByKeyAndVersion
in interface DecisionService
decisionDefinitionKey
- the key of the decision definition, cannot be null.version
- the version of the decision definition. If null
then
the latest version is taken.variables
- the input values of the decision.protected DmnDecisionTableResult evaluateDecisionTable(Command<DmnDecisionTableResult> cmd)
Copyright © 2018. All rights reserved.