Package org.camunda.bpm.engine
Interface DecisionService
-
- All Known Implementing Classes:
DecisionServiceImpl
public interface DecisionServiceService to evaluate decisions inside the DMN engine.- Author:
- Philipp Ossler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DecisionsEvaluationBuilderevaluateDecisionById(java.lang.String decisionDefinitionId)Returns a fluent builder to evaluate the decision with the given id.DecisionsEvaluationBuilderevaluateDecisionByKey(java.lang.String decisionDefinitionKey)Returns a fluent builder to evaluate the decision with the given key.DecisionEvaluationBuilderevaluateDecisionTableById(java.lang.String decisionDefinitionId)Returns a fluent builder to evaluate the decision table with the given id.DmnDecisionTableResultevaluateDecisionTableById(java.lang.String decisionDefinitionId, java.util.Map<java.lang.String,java.lang.Object> variables)Evaluates the decision with the given id.DecisionEvaluationBuilderevaluateDecisionTableByKey(java.lang.String decisionDefinitionKey)Returns a fluent builder to evaluate the decision table with the given key.DmnDecisionTableResultevaluateDecisionTableByKey(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.DmnDecisionTableResultevaluateDecisionTableByKeyAndVersion(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.
-
-
-
Method Detail
-
evaluateDecisionTableById
DmnDecisionTableResult evaluateDecisionTableById(java.lang.String decisionDefinitionId, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates the decision with the given id.- Parameters:
decisionDefinitionId- the id of the decision definition, cannot be null.variables- the input values of the decision.- Returns:
- the result of the evaluation.
- Throws:
NotFoundException- when no decision definition is deployed with the given id.NotValidException- when the given decision definition id is null.AuthorizationException- if the user has noPermissions.CREATE_INSTANCEpermission onResources.DECISION_DEFINITION.
-
evaluateDecisionTableByKey
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.- Parameters:
decisionDefinitionKey- the key of the decision definition, cannot be null.variables- the input values of the decision.- Returns:
- the result of the evaluation.
- Throws:
NotFoundException- when no decision definition is deployed with the given key.NotValidException- when the given decision definition key is null.AuthorizationException- if the user has noPermissions.CREATE_INSTANCEpermission onResources.DECISION_DEFINITION.
-
evaluateDecisionTableByKeyAndVersion
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. If no version is provided then the latest version of the decision definition is taken.- 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.
- Throws:
NotFoundException- when no decision definition is deployed with the given key and version.NotValidException- when the given decision definition key is null.AuthorizationException- if the user has noPermissions.CREATE_INSTANCEpermission onResources.DECISION_DEFINITION.
-
evaluateDecisionTableByKey
DecisionEvaluationBuilder evaluateDecisionTableByKey(java.lang.String decisionDefinitionKey)
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.- Parameters:
decisionDefinitionKey- the key of the decision definition, cannot benull.- Returns:
- a builder to evaluate a decision table
- See Also:
evaluateDecisionByKey(String)
-
evaluateDecisionTableById
DecisionEvaluationBuilder evaluateDecisionTableById(java.lang.String decisionDefinitionId)
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.- Parameters:
decisionDefinitionId- the id of the decision definition, cannot benull.- Returns:
- a builder to evaluate a decision table
- See Also:
evaluateDecisionById(String)
-
evaluateDecisionByKey
DecisionsEvaluationBuilder evaluateDecisionByKey(java.lang.String decisionDefinitionKey)
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.- Parameters:
decisionDefinitionKey- the key of the decision definition, cannot benull.- Returns:
- a builder to evaluate a decision
-
evaluateDecisionById
DecisionsEvaluationBuilder evaluateDecisionById(java.lang.String decisionDefinitionId)
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.- Parameters:
decisionDefinitionId- the id of the decision definition, cannot benull.- Returns:
- a builder to evaluate a decision
-
-