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)
DecisionsEvaluationBuilder
variables
in interface DecisionsEvaluationBuilder
public DecisionsEvaluationBuilder version(Integer version)
DecisionsEvaluationBuilder
null
then
the latest version is taken.version
in interface DecisionsEvaluationBuilder
public DecisionsEvaluationBuilder decisionDefinitionTenantId(String tenantId)
DecisionsEvaluationBuilder
key
and not by id
.decisionDefinitionTenantId
in interface DecisionsEvaluationBuilder
public DecisionsEvaluationBuilder decisionDefinitionWithoutTenantId()
DecisionsEvaluationBuilder
key
and not by id
.decisionDefinitionWithoutTenantId
in interface DecisionsEvaluationBuilder
public DmnDecisionResult evaluate()
DecisionsEvaluationBuilder
evaluate
in interface DecisionsEvaluationBuilder
public 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 © 2019. All rights reserved.