[jboss-jira] [JBoss JIRA] (DROOLS-3152) [DMN Designer] Context Expression can not be saved

Michael Anstis (Jira) issues at jboss.org
Tue Oct 16 15:29:00 EDT 2018


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

Michael Anstis commented on DROOLS-3152:
----------------------------------------

Sorry [~tari_manga] but your _fix_ for DROOLS-3116 has caused this regression.

The problem is that we need [this|https://github.com/kiegroup/kie-wb-common/commit/ba5aefec948af9f1167f5501f4013b1f08256126#diff-18f55709f4d8c809bfbe2381ab5af675L59] to ensure there is an expression on a {{ContextEntry}} (and other cases) when the file is saved. However we want to be able to differentiate [here|https://github.com/kiegroup/kie-wb-common/commit/ba5aefec948af9f1167f5501f4013b1f08256126#diff-18f55709f4d8c809bfbe2381ab5af675L31] between the mock {{LiteralExpression}} added in the foregoing (i.e. really there was a {{null}} expression) and a {{LiteralExpression}} that has an empty value.

Trisotech manage this in the follow way:

1) {{null}} Expression (i.e. empty {{ContextEntry}})
{{<dmn11:literalExpression/>}} (No *ID*)

2) Empty (no text, {{null text}}) {{LiteralExpression}}
{{<dmn11:literalExpression id="_6e353f23-efd5-4ee7-98e6-3593c7152555"/>}} (Has *ID*)

3) Empty String ({{""}}) {{LiteralExpression}}
{code}
<dmn11:literalExpression id="_8d494cba-437c-46d6-ab72-7d5a743335f0">
  <dmn11:text>""</dmn11:text>
</dmn11:literalExpression>
{code}

> [DMN Designer] Context Expression can not be saved
> --------------------------------------------------
>
>                 Key: DROOLS-3152
>                 URL: https://issues.jboss.org/browse/DROOLS-3152
>             Project: Drools
>          Issue Type: Bug
>          Components: DMN Editor
>    Affects Versions: 7.14.0.Final
>            Reporter: Jozef Marko
>            Assignee: Matteo Mortari
>            Priority: Blocker
>              Labels: drools-tools
>         Attachments: Screenshot from 2018-10-16 15-03-23.png, error.log
>
>
> User can not save DMN diagram if it contains a decision node with *Context* as top level expression.
> Spotted during DROOLS-3109 review, however not 100% sure it is the root cause.



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


More information about the jboss-jira mailing list