[
http://jira.jboss.com/jira/browse/GPD-77?page=comments#action_12372158 ]
John Ruud commented on GPD-77:
------------------------------
Koen,
XmlAdapter.initialize(SemanticElement) is invoked when loading the PD diagram, but not
when adding objects from the palette (which is when I need to initialize my semantic
elements), so I don't believe this approach would work.
I'm not very familiar with the design behind GD, but my first thought was that it was
the semantic elements (the "model objects"?) themselves that should get
initialized, and that the xml adapters etc. would just get updated to reflect this
(obviously this is not the case when reading the xml, when the xml adapters are used to
re-create the semantic elements). Because of this it seems to me like the GD should
provide some way of creating initialized semantic elements, for example by invoking some
SemanticElement.initializeNew() - like method. This code would get invoked when adding
objects from the palette (I think that may be the only case), but not for example while
loading the diagram from xml (however, I'm leaving the design up to you - I just need
one way to do this).
Thanks, John
Need a way to initialize palette objects in GD 3.1
--------------------------------------------------
Key: GPD-77
URL:
http://jira.jboss.com/jira/browse/GPD-77
Project: JBoss jBPM GPD
Issue Type: Feature Request
Components: jpdl
Affects Versions: jBPM JPDL Designer 3.1.0.alpha4
Reporter: John Ruud
Assigned To: Koen Aers
Fix For: jBPM JPDL Designer 3.1.0.beta2
Attachments: GPD-77.patch
For example, whenever an 'EndState' node is added to the diagram, I need for it
to be initialized with a particular event, action, and some action properties. I have made
some minor changes to the GD code in order to support this, as described in the following
post:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=108175
It would be very helpful if these changes, or similar functionality, can be included in
3.1, as I wouldn't need to keep maintaining my own custom version of the GD feature.
I'd be happy to post a patch, if that helps (while my changes are very simple, as
described in the post)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira