Search in sources :

Example 1 with DmnEvaluatedInputImpl

use of org.camunda.bpm.dmn.engine.impl.delegate.DmnEvaluatedInputImpl in project camunda-engine-dmn by camunda.

the class DecisionTableEvaluationHandler method evaluateInput.

protected DmnEvaluatedInput evaluateInput(DmnDecisionTableInputImpl input, VariableContext variableContext) {
    DmnEvaluatedInputImpl evaluatedInput = new DmnEvaluatedInputImpl(input);
    DmnExpressionImpl expression = input.getExpression();
    if (expression != null) {
        Object value = evaluateInputExpression(expression, variableContext);
        TypedValue typedValue = expression.getTypeDefinition().transform(value);
        evaluatedInput.setValue(typedValue);
    } else {
        evaluatedInput.setValue(Variables.untypedNullValue());
    }
    return evaluatedInput;
}
Also used : DmnExpressionImpl(org.camunda.bpm.dmn.engine.impl.DmnExpressionImpl) DmnEvaluatedInputImpl(org.camunda.bpm.dmn.engine.impl.delegate.DmnEvaluatedInputImpl) TypedValue(org.camunda.bpm.engine.variable.value.TypedValue)

Aggregations

DmnExpressionImpl (org.camunda.bpm.dmn.engine.impl.DmnExpressionImpl)1 DmnEvaluatedInputImpl (org.camunda.bpm.dmn.engine.impl.delegate.DmnEvaluatedInputImpl)1 TypedValue (org.camunda.bpm.engine.variable.value.TypedValue)1