[jboss-jira] [JBoss JIRA] (DROOLS-5009) DMN Designer convert java class with invalid DMN identiefier
Michael Anstis (Jira)
issues at jboss.org
Wed Feb 5 11:01:25 EST 2020
[ https://issues.redhat.com/browse/DROOLS-5009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13964501#comment-13964501 ]
Michael Anstis commented on DROOLS-5009:
----------------------------------------
[~dadossan] We have a {{DMNClientServicesProxy.isValidVariableName(..)}} method we could use.
It might be best to add a similar method to the interface to support "batch" validation to avoid a excessive network chat (for each field name). You could invoke that with all proposed field names and the method could return which are valid. Invalid ones would need to be cleansed (IDK if adding an underscore is enough to make it valid but worth consideration).
> DMN Designer convert java class with invalid DMN identiefier
> ------------------------------------------------------------
>
> Key: DROOLS-5009
> URL: https://issues.redhat.com/browse/DROOLS-5009
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Affects Versions: 7.33.0.Final
> Reporter: Jozef Marko
> Assignee: Daniel José dos Santos
> Priority: Minor
> Labels: drools-tools
> Attachments: Screenshot from 2020-02-05 16-21-10.png
>
>
> There is an issue if user convert java class to DMN data type while the java class contains field name, that is invalid identifier for DMN.
> for example assume this java class and try to convert it into DMN data type, you will get an error as attached.
> {code:java}
> public class Address {
> private int number;
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list