org.camunda.bpm.engine.impl.dmn
Class DecisionEvaluationBuilderImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.dmn.DecisionEvaluationBuilderImpl
All Implemented Interfaces:
DecisionsEvaluationBuilder

public class DecisionEvaluationBuilderImpl
extends Object
implements DecisionsEvaluationBuilder


Field Summary
protected  CommandExecutor commandExecutor
           
protected  String decisionDefinitionId
           
protected  String decisionDefinitionKey
           
protected  String decisionDefinitionTenantId
           
protected  boolean isTenantIdSet
           
protected  Map<String,Object> variables
           
protected  Integer version
           
 
Constructor Summary
DecisionEvaluationBuilderImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 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.
 org.camunda.bpm.dmn.engine.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandExecutor

protected CommandExecutor commandExecutor

decisionDefinitionKey

protected String decisionDefinitionKey

decisionDefinitionId

protected String decisionDefinitionId

version

protected Integer version

variables

protected Map<String,Object> variables

decisionDefinitionTenantId

protected String decisionDefinitionTenantId

isTenantIdSet

protected boolean isTenantIdSet
Constructor Detail

DecisionEvaluationBuilderImpl

public DecisionEvaluationBuilderImpl(CommandExecutor commandExecutor)
Method Detail

variables

public DecisionsEvaluationBuilder variables(Map<String,Object> variables)
Description copied from interface: DecisionsEvaluationBuilder
Set the input values of the decision.

Specified by:
variables in interface DecisionsEvaluationBuilder

version

public DecisionsEvaluationBuilder version(Integer version)
Description copied from interface: DecisionsEvaluationBuilder
Set the version of the decision definition. If null then the latest version is taken.

Specified by:
version in interface DecisionsEvaluationBuilder

decisionDefinitionTenantId

public DecisionsEvaluationBuilder decisionDefinitionTenantId(String tenantId)
Description copied from interface: DecisionsEvaluationBuilder
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.

Specified by:
decisionDefinitionTenantId in interface DecisionsEvaluationBuilder

decisionDefinitionWithoutTenantId

public DecisionsEvaluationBuilder decisionDefinitionWithoutTenantId()
Description copied from interface: DecisionsEvaluationBuilder
Specify that the decision definition belongs to no tenant. Can only be used when the definition is referenced by key and not by id.

Specified by:
decisionDefinitionWithoutTenantId in interface DecisionsEvaluationBuilder

evaluate

public org.camunda.bpm.dmn.engine.DmnDecisionResult evaluate()
Description copied from interface: DecisionsEvaluationBuilder
Evaluates the decision.

Specified by:
evaluate in interface DecisionsEvaluationBuilder
Returns:
the result of the evaluation.

evaluateDecisionByKey

public static DecisionsEvaluationBuilder evaluateDecisionByKey(CommandExecutor commandExecutor,
                                                               String decisionDefinitionKey)

evaluateDecisionById

public static DecisionsEvaluationBuilder evaluateDecisionById(CommandExecutor commandExecutor,
                                                              String decisionDefinitionId)

getDecisionDefinitionKey

public String getDecisionDefinitionKey()

getDecisionDefinitionId

public String getDecisionDefinitionId()

getVersion

public Integer getVersion()

getVariables

public Map<String,Object> getVariables()

getDecisionDefinitionTenantId

public String getDecisionDefinitionTenantId()

isTenantIdSet

public boolean isTenantIdSet()


Copyright © 2017 camunda services GmbH. All rights reserved.