[jboss-jira] [JBoss JIRA] (DROOLS-1563) Values are always said to be invalid even when the respect the enumeration

Matteo Mortari (JIRA) issues at jboss.org
Tue May 16 10:05:00 EDT 2017


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

Matteo Mortari commented on DROOLS-1563:
----------------------------------------

In order to more generally address this issue I [proposed a PR|https://github.com/kiegroup/drools/pull/1269] to align InputData values check using BaseDMNTypeImpl.isAssignableValue().

To be noticed as reported in the PR that:
* the user could deliberately set an inputdata in the context as null, and this would be a valid check against the inputdata type. Although this is a deliberate set.
  Please notice this is NOT about missing to set an inputdata value in the context at all, in such case a REQ_NOT_FOUND error is still thrown.
* inputdata type check now obey the same rules as per the remainer of the evaluation type check and specifically the "special case" of single-value-list-as-singleton is a valid case. (During [DROOLS-1557] this case was deliberately omitted, at that time it was discussed to impose being a Collection [here|https://github.com/kiegroup/drools/commit/b4a6408a916e210e188b41571d2bd17146cda1a5#diff-5dabeaeee0f1e3b8755a13e40ba3eea9R399] )



> Values are always said to be invalid even when the respect the enumeration
> --------------------------------------------------------------------------
>
>                 Key: DROOLS-1563
>                 URL: https://issues.jboss.org/browse/DROOLS-1563
>             Project: Drools
>          Issue Type: Bug
>          Components: dmn engine
>            Reporter: Mélanie Gauthier
>            Assignee: Matteo Mortari
>         Attachments: RBLoR test.dmn
>
>
> When running the attached file which has one input that is a collection of a complex structure, the constraints on the field is always said to be invalid.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list