tpolaske commented on issue #7182: URL: https://github.com/apache/incubator-kie/issues/7182#issuecomment-6082833387
> 2\. Hi [@tpolaske](https://github.com/tpolaske), > I'm having some difficulty understanding the nature of the issue. > Is your DMN file based on DMN 1.5 or DMN 1.6? > Could you please provide clear steps to reproduce the problem, including any relevant inputs, expected results, and actual results (and a reproducer, if possible)? > Thanks! Hi @yesamer, thanks for taking a look! It affects both **DMN 1.5 and DMN 1.6**. I've attached a minimal reproducer (`inputValuesTypeRef_dmn15.dmn`). The only notable part is this input clause: <dmn:inputValues id="_B10" typeRef="string"> <dmn:text></dmn:text> </dmn:inputValues> This exact shape is written by the KIE DMN editor (10.1): selecting an input column's **Type** in the side panel adds `typeRef` to `<inputValues>`. It's valid per the 1.5/1.6 XSD (`tUnaryTests extends tExpression`, which has an optional `typeRef`). **Steps to reproduce** 1. Build the attached model with kie-dmn-core 10.2.0: ```java DMNRuntime runtime = DMNRuntimeBuilder.fromDefaults() .buildConfiguration() .fromResources(List.of(ResourceFactory.newClassPathResource("inputValuesTypeRef_dmn15.dmn"))) .getOrElseThrow(RuntimeException::new); 2. Evaluate decision Approval with input RiskCategory = "High". Expected (behavior on 10.1.0): the model builds and Approval = "Review". Actual (10.2.0): unmarshalling fails with UnsupportedOperationException: Not on DMN v1.2 from AbstractTUnaryTests.setTypeRef. The marshaller swallows it, Definitions comes back null, and the build then fails with NullPointerException: Cannot invoke "Definitions.getNamespace()" because "definitions" is null. If you remove typeRef="string" from <inputValues>, the same model builds and evaluates correctly on 10.2.0. Likely cause: in 10.2.0, v1_5.TUnaryTests / v1_6.TUnaryTests extend impl.AbstractTUnaryTests (previously TExpression), whose setTypeRef throws. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
