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
 DecisionEvaluationBuilder decisionDefinitionTenantId(String tenantId)
          Specify the id of the tenant the decision definition belongs to.
 DecisionEvaluationBuilder decisionDefinitionWithoutTenantId()
          Specify that the decision definition belongs to no tenant.
 org.camunda.bpm.dmn.engine.DmnDecisionTableResult evaluate()
          Evaluates the decision.
 DecisionEvaluationBuilder variables(Map<String,Object> variables)
          Set the input values of the decision.
 DecisionEvaluationBuilder version(Integer version)
          Set the version of the decision definition.
 

Method Detail

decisionDefinitionTenantId

DecisionEvaluationBuilder decisionDefinitionTenantId(String tenantId)
Specify the id of the tenant the decision definition belongs to. Can only be used when the definition is referenced by key and not by id.


decisionDefinitionWithoutTenantId

DecisionEvaluationBuilder decisionDefinitionWithoutTenantId()
Specify that the decision definition belongs to no tenant. Can only be used when the definition is referenced by key and not by id.


version

DecisionEvaluationBuilder version(Integer version)
Set the version of the decision definition. If null then the latest version is taken.


variables

DecisionEvaluationBuilder variables(Map<String,Object> variables)
Set the input values of the decision.


evaluate

org.camunda.bpm.dmn.engine.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 no Permissions.CREATE_INSTANCE permission on Resources.DECISION_DEFINITION.


Copyright © 2017 camunda services GmbH. All rights reserved.