[jboss-jira] [JBoss JIRA] (DROOLS-3735) [DMN Designer] Expression constraint is not parsed to Range constraint
Jozef Marko (Jira)
issues at jboss.org
Thu Mar 7 05:24:03 EST 2019
[ https://issues.jboss.org/browse/DROOLS-3735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jozef Marko updated DROOLS-3735:
--------------------------------
Steps to Reproduce:
# Create new dmn model
# Select data types tab
# Add new data type entry, set its type as *date*
# Click on the constraints
# Select expression and put: [date( "2016-07-29" )..date( "2016-07-30" )]
# Save constraint, save model, close and reopen
# Navigate to same data type entry, invoke constraint modal popup
# Change constraint from expression to range, ranges is not parsed
> [DMN Designer] Expression constraint is not parsed to Range constraint
> ----------------------------------------------------------------------
>
> Key: DROOLS-3735
> URL: https://issues.jboss.org/browse/DROOLS-3735
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Affects Versions: 7.19.0.Final
> Reporter: Jozef Marko
> Assignee: Jozef Marko
> Priority: Minor
> Labels: drools-tools
> Attachments: Screenshot from 2019-03-07 11-11-18.png, Screenshot from 2019-03-07 11-11-30.png
>
>
> If the data type constraint is set as {{[date( "2016-07-29" )..date( "2016-07-30" )]}} [0], it is not recognized as an range in the [1].
> The problem is that our {{ParseService}} for parsing Range, doesn't check deeply, what is the type of {{StartNode}} [3]. And then the {{DateValueFormatter}} component fails to replace the leading {color:red}{{date(}}{color} [4].
> [0]
> !Screenshot from 2019-03-07 11-11-18.png|thumbnail!
> [1]
> !Screenshot from 2019-03-07 11-11-30.png|thumbnail!
> [3]
> https://github.com/kiegroup/kie-wb-common/blob/master/kie-wb-common-dmn/kie-wb-common-dmn-backend/src/main/java/org/kie/workbench/common/dmn/backend/editors/types/DMNParseServiceImpl.java#L54
> [4]
> https://github.com/kiegroup/kie-wb-common/pull/2508/files#diff-e199e1e595037dcb4b465ff36dd13a1f
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list