org.camunda.bpm.engine.impl
Class DecisionServiceImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.ServiceImpl
      extended by org.camunda.bpm.engine.impl.DecisionServiceImpl
All Implemented Interfaces:
DecisionService

public class DecisionServiceImpl
extends ServiceImpl
implements DecisionService

Author:
Philipp Ossler

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl
commandExecutor
 
Constructor Summary
DecisionServiceImpl()
           
 
Method Summary
protected  org.camunda.bpm.dmn.engine.DmnDecisionTableResult evaluateDecisionTable(Command<org.camunda.bpm.dmn.engine.DmnDecisionTableResult> cmd)
           
 org.camunda.bpm.dmn.engine.DmnDecisionTableResult evaluateDecisionTableById(String decisionDefinitionId, Map<String,Object> variables)
          Evaluates the decision with the given id.
 org.camunda.bpm.dmn.engine.DmnDecisionTableResult evaluateDecisionTableByKey(String decisionDefinitionKey, Map<String,Object> variables)
          Evaluates the decision with the given key in the latest version.
 org.camunda.bpm.dmn.engine.DmnDecisionTableResult evaluateDecisionTableByKeyAndVersion(String decisionDefinitionKey, Integer version, Map<String,Object> variables)
          Evaluates the decision with the given key in the specified version.
 
Methods inherited from class org.camunda.bpm.engine.impl.ServiceImpl
getCommandExecutor, setCommandExecutor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecisionServiceImpl

public DecisionServiceImpl()
Method Detail

evaluateDecisionTableById

public org.camunda.bpm.dmn.engine.DmnDecisionTableResult evaluateDecisionTableById(String decisionDefinitionId,
                                                                                   Map<String,Object> variables)
Description copied from interface: DecisionService
Evaluates the decision with the given id.

Specified by:
evaluateDecisionTableById in interface DecisionService
Parameters:
decisionDefinitionId - the id of the decision definition, cannot be null.
variables - the input values of the decision.
Returns:
the result of the evaluation.

evaluateDecisionTableByKey

public org.camunda.bpm.dmn.engine.DmnDecisionTableResult evaluateDecisionTableByKey(String decisionDefinitionKey,
                                                                                    Map<String,Object> variables)
Description copied from interface: DecisionService
Evaluates the decision with the given key in the latest version.

Specified by:
evaluateDecisionTableByKey in interface DecisionService
Parameters:
decisionDefinitionKey - the key of the decision definition, cannot be null.
variables - the input values of the decision.
Returns:
the result of the evaluation.

evaluateDecisionTableByKeyAndVersion

public org.camunda.bpm.dmn.engine.DmnDecisionTableResult evaluateDecisionTableByKeyAndVersion(String decisionDefinitionKey,
                                                                                              Integer version,
                                                                                              Map<String,Object> variables)
Description copied from interface: DecisionService
Evaluates the decision with the given key in the specified version. If no version is provided then the latest version of the decision definition is taken.

Specified by:
evaluateDecisionTableByKeyAndVersion in interface DecisionService
Parameters:
decisionDefinitionKey - the key of the decision definition, cannot be null.
version - the version of the decision definition. If null then the latest version is taken.
variables - the input values of the decision.
Returns:
the result of the evaluation.

evaluateDecisionTable

protected org.camunda.bpm.dmn.engine.DmnDecisionTableResult evaluateDecisionTable(Command<org.camunda.bpm.dmn.engine.DmnDecisionTableResult> cmd)


Copyright © 2015 camunda services GmbH. All rights reserved.