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

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

public class DecisionEvaluationBuilderImpl
extends Object
implements DecisionEvaluationBuilder

Author:
Kristin Polenz

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
 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.
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.
 
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 DecisionEvaluationBuilder variables(Map<String,Object> variables)
Description copied from interface: DecisionEvaluationBuilder
Set the input values of the decision.

Specified by:
variables in interface DecisionEvaluationBuilder

version

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

Specified by:
version in interface DecisionEvaluationBuilder

decisionDefinitionTenantId

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

decisionDefinitionWithoutTenantId

public DecisionEvaluationBuilder decisionDefinitionWithoutTenantId()
Description copied from interface: DecisionEvaluationBuilder
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 DecisionEvaluationBuilder

evaluate

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

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

evaluateDecisionTableByKey

public static DecisionEvaluationBuilder evaluateDecisionTableByKey(CommandExecutor commandExecutor,
                                                                   String decisionDefinitionKey)

evaluateDecisionTableById

public static DecisionEvaluationBuilder evaluateDecisionTableById(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 © 2016 camunda services GmbH. All rights reserved.