public class DecisionEvaluationBuilderImpl extends Object implements DecisionsEvaluationBuilder
| Modifier and Type | Field and Description |
|---|---|
protected CommandExecutor |
commandExecutor |
protected String |
decisionDefinitionId |
protected String |
decisionDefinitionKey |
protected String |
decisionDefinitionTenantId |
protected boolean |
isTenantIdSet |
protected Map<String,Object> |
variables |
protected Integer |
version |
| Constructor and Description |
|---|
DecisionEvaluationBuilderImpl(CommandExecutor commandExecutor) |
| 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.
|
static DecisionsEvaluationBuilder |
evaluateDecisionById(CommandExecutor commandExecutor,
String decisionDefinitionId) |
static DecisionsEvaluationBuilder |
evaluateDecisionByKey(CommandExecutor commandExecutor,
String decisionDefinitionKey) |
String |
getDecisionDefinitionId() |
String |
getDecisionDefinitionKey() |
String |
getDecisionDefinitionTenantId() |
Map<String,Object> |
getVariables() |
Integer |
getVersion() |
boolean |
isTenantIdSet() |
DecisionsEvaluationBuilder |
variables(Map<String,Object> variables)
Set the input values of the decision.
|
DecisionsEvaluationBuilder |
version(Integer version)
Set the version of the decision definition.
|
protected CommandExecutor commandExecutor
protected String decisionDefinitionKey
protected String decisionDefinitionId
protected Integer version
protected String decisionDefinitionTenantId
protected boolean isTenantIdSet
public DecisionEvaluationBuilderImpl(CommandExecutor commandExecutor)
public DecisionsEvaluationBuilder variables(Map<String,Object> variables)
DecisionsEvaluationBuildervariables in interface DecisionsEvaluationBuilderpublic DecisionsEvaluationBuilder version(Integer version)
DecisionsEvaluationBuildernull then
the latest version is taken.version in interface DecisionsEvaluationBuilderpublic DecisionsEvaluationBuilder decisionDefinitionTenantId(String tenantId)
DecisionsEvaluationBuilderkey and not by id.decisionDefinitionTenantId in interface DecisionsEvaluationBuilderpublic DecisionsEvaluationBuilder decisionDefinitionWithoutTenantId()
DecisionsEvaluationBuilderkey and not by id.decisionDefinitionWithoutTenantId in interface DecisionsEvaluationBuilderpublic DmnDecisionResult evaluate()
DecisionsEvaluationBuilderevaluate in interface DecisionsEvaluationBuilderpublic static DecisionsEvaluationBuilder evaluateDecisionByKey(CommandExecutor commandExecutor, String decisionDefinitionKey)
public static DecisionsEvaluationBuilder evaluateDecisionById(CommandExecutor commandExecutor, String decisionDefinitionId)
public String getDecisionDefinitionKey()
public String getDecisionDefinitionId()
public Integer getVersion()
public String getDecisionDefinitionTenantId()
public boolean isTenantIdSet()
Copyright © 2018. All rights reserved.