Package org.camunda.bpm.engine.dmn
Interface DecisionsEvaluationBuilder
-
- All Known Implementing Classes:
DecisionEvaluationBuilderImpl
public interface DecisionsEvaluationBuilder
Fluent builder to evaluate a decision.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DecisionsEvaluationBuilder
decisionDefinitionTenantId(String tenantId)
Specify the id of the tenant the decision definition belongs to.DecisionsEvaluationBuilder
decisionDefinitionWithoutTenantId()
Specify that the decision definition belongs to no tenant.DmnDecisionResult
evaluate()
Evaluates the decision.DecisionsEvaluationBuilder
variables(Map<String,Object> variables)
Set the input values of the decision.DecisionsEvaluationBuilder
version(Integer version)
Set the version of the decision definition.
-
-
-
Method Detail
-
decisionDefinitionTenantId
DecisionsEvaluationBuilder decisionDefinitionTenantId(String tenantId)
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
DecisionsEvaluationBuilder decisionDefinitionWithoutTenantId()
Specify that the decision definition belongs to no tenant. Can only be used when the definition is referenced bykey
and not byid
.
-
version
DecisionsEvaluationBuilder version(Integer version)
Set the version of the decision definition. Ifnull
then the latest version is taken.
-
variables
DecisionsEvaluationBuilder variables(Map<String,Object> variables)
Set the input values of the decision.
-
evaluate
DmnDecisionResult 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
.
-
-