APISonar


org.kie.dmn.feel.lang.types.BuiltInType.DATE

> org > kie > dmn > feel > lang > types > BuiltInType > DATE
org APIs kie APIs dmn APIs feel APIs lang APIs types APIs BuiltInType APIs DATE APIs

Example 1
public void testQualifiedName3() {
        String inputExpression = "a date.year";
        Type dateType = BuiltInType.DATE;
        CompiledFEELExpression qualRef = parse(inputExpression, mapOf(entry("a date", dateType)));
        LOG.debug("{}", qualRef);
        
        EvaluationContext context = CodegenTestUtil.newEmptyEvaluationContext();
        context.setValue("a date", LocalDate.of(2016, 8, 2));
        Object result = qualRef.apply(context);
        LOG.debug("{}", result);
        
        assertThat(result, is(BigDecimal.valueOf(2016)));
    }