[jboss-jira] [JBoss JIRA] (DROOLS-3041) [DMN Designer] Can not edit node after diagram cleared

Michael Anstis (JIRA) issues at jboss.org
Fri Sep 28 10:07:01 EDT 2018


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

Michael Anstis commented on DROOLS-3041:
----------------------------------------

{{DecisionNavigatorObserver.onCanvasClear(..)}} observes the {{CanvasClearEvent}}.

This causes {{DecisionNavigatorPresenter.removeAllElements()}} to be invoked that (unsurprisingly) removes all elements from the Decision Navigator. Consequentially when {{DecisionNavigatorObserver.onNestedElementAdded(..)}} executes in response to the Expression Type being changed there is no active parent node found in {{DecisionNavigatorTreePresenter.getActiveParent()}} leading to the NPE. 


> [DMN Designer] Can not edit node after diagram cleared
> ------------------------------------------------------
>
>                 Key: DROOLS-3041
>                 URL: https://issues.jboss.org/browse/DROOLS-3041
>             Project: Drools
>          Issue Type: Bug
>          Components: DMN Editor
>    Affects Versions: 7.12.0.Final
>            Reporter: Jozef Marko
>            Assignee: Michael Anstis
>              Labels: drools-tools
>         Attachments: DMCommunity Challenge - March 2017.dmn, Screenshot from 2018-09-26 13-18-33.png
>
>
> If user clears the diagram and then add new node, he is unable to edit this node.
> h2. Acceptance test
> h3. New diagram
> - Add nodes
> - Clear 
> - Add new decision node
> - Put some expression inside
> h3. Non empty existing diagram
> - Clear 
> - Add new decision node
> - Put some expression inside
> - Save reopen



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list