[jboss-jira] [JBoss JIRA] (DROOLS-2744) [DMN Designer] Global diagram properties

Roger Martínez (JIRA) issues at jboss.org
Tue Jul 17 12:15:00 EDT 2018


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

Roger Martínez commented on DROOLS-2744:
----------------------------------------

Hey [~manstis] [~jomarko]
The properties displayed on the panel are always bind to a node, it can be the diagram itself or whatever node is being selected. 
This way we still don't have support for changing multiple nodes from a single property field, at least yet.
The way they work is:
* The forms are rendering the fields for the (selected) bean properties - but are not really bind to the "real" bean, are bind to a cloned nstance
* Once the value is changed on the form field, it gets validated and parsed by the forms engine
* The forms engine provides a callback, which Stunner consumes, and once a property has been  changed, it fires a Stunner command in order to update the value for the "real" bean property (see [here|https://github.com/kiegroup/kie-wb-common/blob/master/kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-forms/kie-wb-common-stunner-forms-client/src/main/java/org/kie/workbench/common/stunner/forms/client/widgets/FormPropertiesWidget.java#L150])
* Finally once the Stunner command, which updates the given property value, is being executed - it gets into the command history (stack) and it forces to redraw the shape for the given bean

Tbh IDK yet why this is not working for visual related properties such as background, color, etc, could be a bug. I would start by debugging, on client side, if the stunner callback is being called with the right (serialized) value, and also check the stunner command is firing.

Hope this helps a bit. Lemme know whatever you need guys. 
Thx!

> [DMN Designer] Global diagram properties
> ----------------------------------------
>
>                 Key: DROOLS-2744
>                 URL: https://issues.jboss.org/browse/DROOLS-2744
>             Project: Drools
>          Issue Type: Bug
>          Components: DMN Editor
>    Affects Versions: 7.9.0.Final
>            Reporter: Jozef Marko
>            Assignee: Michael Anstis
>            Priority: Minor
>              Labels: drools-tools
>
> The global diagram properties for DMN diagram contains sections settings for:
> - dimensions
> - backround
> - font
> However change of any of them (globally, for the whole diagram) doesn't seem to affect particular nodes somehow. We should hide these settings or implement the logic that would affect all nodes in diagram by change on this place.



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



More information about the jboss-jira mailing list