Package org.camunda.bpm.engine.dmn
Interface DecisionEvaluationBuilder
- All Known Implementing Classes:
DecisionTableEvaluationBuilderImpl
public interface DecisionEvaluationBuilder
Fluent builder to evaluate a decision.
- Author:
- Kristin Polenz
-
Method Summary
Modifier and TypeMethodDescriptiondecisionDefinitionTenantId
(String tenantId) Specify the id of the tenant the decision definition belongs to.Specify that the decision definition belongs to no tenant.evaluate()
Evaluates the decision.Set the input values of the decision.Set the version of the decision definition.
-
Method Details
-
decisionDefinitionTenantId
Specify the id of the tenant the decision definition belongs to. Can only be used when the definition is referenced bykey
and not byid
. -
decisionDefinitionWithoutTenantId
DecisionEvaluationBuilder decisionDefinitionWithoutTenantId()Specify that the decision definition belongs to no tenant. Can only be used when the definition is referenced bykey
and not byid
. -
version
Set the version of the decision definition. Ifnull
then the latest version is taken. -
variables
Set the input values of the decision. -
evaluate
DmnDecisionTableResult evaluate()Evaluates the decision.- Returns:
- the result of the evaluation.
- Throws:
NotFoundException
- when no decision definition is deployed with the given id / key.NotValidException
- when the given decision definition id / key is null.AuthorizationException
- if the user has noPermissions.CREATE_INSTANCE
permission onResources.DECISION_DEFINITION
.
-