use of org.camunda.bpm.dmn.engine.impl.DmnDecisionTableOutputImpl in project camunda-engine-dmn by camunda.
the class DefaultDmnTransform method transformDecisionTableOutput.
protected DmnDecisionTableOutputImpl transformDecisionTableOutput(Output output) {
DmnElementTransformHandler<Output, DmnDecisionTableOutputImpl> handler = handlerRegistry.getHandler(Output.class);
DmnDecisionTableOutputImpl dmnOutput = handler.handleElement(this, output);
// validate output id
if (dmnOutput.getId() == null) {
throw LOG.decisionTableOutputIdIsMissing(decision, dmnOutput);
}
return dmnOutput;
}
use of org.camunda.bpm.dmn.engine.impl.DmnDecisionTableOutputImpl in project camunda-engine-dmn by camunda.
the class DmnDecisionTableOutputTransformHandler method createFromOutput.
protected DmnDecisionTableOutputImpl createFromOutput(DmnElementTransformContext context, Output output) {
DmnDecisionTableOutputImpl decisionTableOutput = createDmnElement(context, output);
decisionTableOutput.setId(output.getId());
decisionTableOutput.setName(output.getLabel());
decisionTableOutput.setOutputName(output.getName());
decisionTableOutput.setTypeDefinition(getTypeDefinition(context, output));
return decisionTableOutput;
}
use of org.camunda.bpm.dmn.engine.impl.DmnDecisionTableOutputImpl in project camunda-engine-dmn by camunda.
the class DecisionTableEvaluationHandler method setEvaluationOutput.
protected void setEvaluationOutput(DmnDecisionTableImpl decisionTable, List<DmnDecisionTableRuleImpl> matchingRules, VariableContext variableContext, DmnDecisionTableEvaluationEventImpl evaluationResult) {
List<DmnDecisionTableOutputImpl> decisionTableOutputs = decisionTable.getOutputs();
List<DmnEvaluatedDecisionRule> evaluatedDecisionRules = new ArrayList<DmnEvaluatedDecisionRule>();
for (DmnDecisionTableRuleImpl matchingRule : matchingRules) {
DmnEvaluatedDecisionRule evaluatedRule = evaluateMatchingRule(decisionTableOutputs, matchingRule, variableContext);
evaluatedDecisionRules.add(evaluatedRule);
}
evaluationResult.setMatchingRules(evaluatedDecisionRules);
}
Aggregations