[jboss-jira] [JBoss JIRA] (DROOLS-4037) [DMN Designer] Remove white-space from Names

Matteo Mortari (Jira) issues at jboss.org
Thu May 16 04:34:01 EDT 2019


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

Matteo Mortari commented on DROOLS-4037:
----------------------------------------

I believe this is actually a bit beyond really. I believe what Edson actually meant originally, is to _normalize_ white space in "_Name values when loading and saving a model_".

That is, if you have 1 space, you keep as-is. If you have 2 spaces, you subsitute with only 1 space.
Trailing and leading space in a string should be trimmed out.
By space I mean any white space character as defined by the FEEL grammar (new line is considered a space, in this case).

imho, you can rely on org.kie.dmn.feel.util.EvalHelper#normalizeVariableName(String)

My 2c but for Edson to confirm.

> [DMN Designer] Remove white-space from Names 
> ---------------------------------------------
>
>                 Key: DROOLS-4037
>                 URL: https://issues.jboss.org/browse/DROOLS-4037
>             Project: Drools
>          Issue Type: Enhancement
>          Components: DMN Editor
>    Affects Versions: 7.21.0.Final
>            Reporter: Michael Anstis
>            Assignee: Michael Anstis
>            Priority: Major
>              Labels: drools-tools
>
> Further to the discussion on https://issues.jboss.org/browse/JBPM-7117 the DMN marshaller should remove white-space from {{Name}} values when loading and saving a model. 



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


More information about the jboss-jira mailing list