[jboss-jira] [JBoss JIRA] (DROOLS-3730) Add support to DMN constraints on inputs (report input validation errors)

Daniele Zonca (Jira) issues at jboss.org
Mon Mar 25 13:02:01 EDT 2019


    [ https://issues.jboss.org/browse/DROOLS-3730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13712958#comment-13712958 ] 

Daniele Zonca commented on DROOLS-3730:
---------------------------------------

[~tirelli]
I discussed with [~tari_manga] and he explained me that by default type check is disabled ( https://docs.jboss.org/drools/release/7.19.0.Final/drools-docs/html_single/index.html#dmn-properties-ref_dmn-models ). This means that it is impossible to have a validation error like the one reported.
I think it is better to have it enabled by default in the scenario. Maybe in the future we can optionally disable it but this will break the entire scenario because the columns are created based on the type descriptor.
Wdyt? 

> Add support to DMN constraints on inputs (report input validation errors)
> -------------------------------------------------------------------------
>
>                 Key: DROOLS-3730
>                 URL: https://issues.jboss.org/browse/DROOLS-3730
>             Project: Drools
>          Issue Type: Enhancement
>          Components: Scenario Simulation and Testing
>            Reporter: Daniele Zonca
>            Assignee: Daniele Zonca
>            Priority: Major
>
> See this example https://github.com/kiegroup/drools/compare/master...tarilabs:tarilabs-20190305-testDaniele#diff-d717b69ecaafa152c779cb97c6e3caa5R2433
> and try with a value out of the domain ranga [0..100].
> when a Decision or any evaluation which depends on such InputData is triggered, an error message like the following is reported
> ```Error while evaluating node 'my decision' for dependency 'my input': the dependency value '999' is not allowed by the declared type (DMNType{ http://www.trisotech.com/definitions/_7ab67159-21c7-4985-91fc-f0d0174898db : tNumber0100 })```



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list