public interface DecisionsEvaluationBuilder
Modifier and Type | Method and 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.
|
DecisionsEvaluationBuilder decisionDefinitionTenantId(String tenantId)
key
and not by id
.DecisionsEvaluationBuilder decisionDefinitionWithoutTenantId()
key
and not by id
.DecisionsEvaluationBuilder version(Integer version)
null
then
the latest version is taken.DecisionsEvaluationBuilder variables(Map<String,Object> variables)
DmnDecisionResult evaluate()
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 no Permissions.CREATE_INSTANCE
permission
on Resources.DECISION_DEFINITION
.Copyright © 2021. All rights reserved.