use of org.camunda.bpm.dmn.engine.DmnDecision in project camunda-engine-dmn by camunda.
the class DefaultDmnEngine method evaluateDecisionTable.
public DmnDecisionTableResult evaluateDecisionTable(String decisionKey, InputStream inputStream, VariableContext variableContext) {
ensureNotNull("decisionKey", decisionKey);
List<DmnDecision> decisions = parseDecisions(inputStream);
for (DmnDecision decision : decisions) {
if (decisionKey.equals(decision.getKey())) {
return evaluateDecisionTable(decision, variableContext);
}
}
throw LOG.unableToFindDecisionWithKey(decisionKey);
}
use of org.camunda.bpm.dmn.engine.DmnDecision in project camunda-engine-dmn by camunda.
the class DefaultDmnEngine method evaluateDecision.
public DmnDecisionResult evaluateDecision(String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext) {
ensureNotNull("decisionKey", decisionKey);
List<DmnDecision> decisions = parseDecisions(dmnModelInstance);
for (DmnDecision decision : decisions) {
if (decisionKey.equals(decision.getKey())) {
return evaluateDecision(decision, variableContext);
}
}
throw LOG.unableToFindDecisionWithKey(decisionKey);
}
Aggregations