public class DecisionTableEvaluationBuilderImpl extends Object implements DecisionEvaluationBuilder
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 |
---|
DecisionTableEvaluationBuilderImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
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.
|
DmnDecisionTableResult |
evaluate()
Evaluates the decision.
|
static DecisionEvaluationBuilder |
evaluateDecisionTableById(CommandExecutor commandExecutor,
String decisionDefinitionId) |
static DecisionEvaluationBuilder |
evaluateDecisionTableByKey(CommandExecutor commandExecutor,
String decisionDefinitionKey) |
String |
getDecisionDefinitionId() |
String |
getDecisionDefinitionKey() |
String |
getDecisionDefinitionTenantId() |
Map<String,Object> |
getVariables() |
Integer |
getVersion() |
boolean |
isTenantIdSet() |
DecisionEvaluationBuilder |
variables(Map<String,Object> variables)
Set the input values of the decision.
|
DecisionEvaluationBuilder |
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 DecisionTableEvaluationBuilderImpl(CommandExecutor commandExecutor)
public DecisionEvaluationBuilder variables(Map<String,Object> variables)
DecisionEvaluationBuilder
variables
in interface DecisionEvaluationBuilder
public DecisionEvaluationBuilder version(Integer version)
DecisionEvaluationBuilder
null
then
the latest version is taken.version
in interface DecisionEvaluationBuilder
public DecisionEvaluationBuilder decisionDefinitionTenantId(String tenantId)
DecisionEvaluationBuilder
key
and not by id
.decisionDefinitionTenantId
in interface DecisionEvaluationBuilder
public DecisionEvaluationBuilder decisionDefinitionWithoutTenantId()
DecisionEvaluationBuilder
key
and not by id
.decisionDefinitionWithoutTenantId
in interface DecisionEvaluationBuilder
public DmnDecisionTableResult evaluate()
DecisionEvaluationBuilder
evaluate
in interface DecisionEvaluationBuilder
public static DecisionEvaluationBuilder evaluateDecisionTableByKey(CommandExecutor commandExecutor, String decisionDefinitionKey)
public static DecisionEvaluationBuilder evaluateDecisionTableById(CommandExecutor commandExecutor, String decisionDefinitionId)
public String getDecisionDefinitionKey()
public String getDecisionDefinitionId()
public Integer getVersion()
public String getDecisionDefinitionTenantId()
public boolean isTenantIdSet()
Copyright © 2017. All rights reserved.