You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "AthiraHari77 (via GitHub)" <gi...@apache.org> on 2025/04/01 11:09:10 UTC

Re: [I] DMN New Editor backward incompatibility for data type expression constraints [incubator-kie-issues]

AthiraHari77 commented on issue #1341:
URL: https://github.com/apache/incubator-kie-issues/issues/1341#issuecomment-2769004050

   @jomarko May be I was not clear earlier. Like you mentioned, a user tried to use editor, that contained this constraint definition [1]: which is invalid.
   [1]
   `not(null) and (string length()>0)`
   During this time an error message [2] is displayed in both Classic and New dmn editor.
   [2]
   `ERROR_EVAL_NODE: Error while evaluating node 'Hello New User' for dependency 'user': the dependency value 'Amy' is not allowed by the declared type (DMNType{ https://kie.apache.org/dmn/_B08C396C-3893-4572-91AE-335F99187350 : user })`
   
   ![Image](https://github.com/user-attachments/assets/54906897-0934-4d55-9dd8-d7977a8de707)
   
   Once user fix the constraint definition to be [3]:
   [3]
   `string length(?)>0`
   Then there are no warning/error messages and user is be able to evaluate the dmn model in new dmn editor similar to the old one.
   
   ![Image](https://github.com/user-attachments/assets/b0844612-043e-4826-9bdd-d1292bc76232)


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org