[JBoss jBPM] - Writing the XML of a ProcessDefinition
by tbee
Is the code that writes a process definition xml and its gpd xml from the designer reusable?
I've build a rudementary JBPM designer using JGraphX. The reason is that JBPM's designer is not website embedable (AFAIK) and that some items are somewhat unnatural to edit in the graphical mode (events) of the JBPM designer.
By extending JGraphX's example designer I can create an applet where the user can edit the PD in. The example designer takes care of all the mouse drags, undo's and all the other things a graphical designer should do.
It's rudementary because it only supports start, forks, join, state and end; that is all I need at the moment. The designer has support for a.o. swiming lanes, but I have not included that yet. I did however include small buttons that allow in-design editing of the on-enter & on-leave event scripts and transaction condition scripts.
At the moment I'm working to "complete the circle": read, edit, write. Currently I parse the PD xml (using the process definition class) and read its associated GPD xml (using dom4j). Now I want to write the xml's. I can, naturally, scan the PD objects... But the designer already ca write XML's. However, when I download the designer, I do not get sources...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209529#4209529
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209529
17 years, 4 months
[JBoss jBPM] - process-start event in the subprocess doesn't get parent pro
by cvl
Hi.
Encountered this problem, looking at the 3.3.0.GA source:
Subprocess instance is created in ProcessState:
ProcessInstance subProcessInstance = superProcessToken.createSubProcessInstance(usedSubProcessDefinition);
At this point of time, the process-start event is fired in the subprocess instance.
And only later, variables are populated from parent process, and token signaled.
...
populate variables
...
subProcessInstance.signal();
Not sure, if you consider this as a flaw, but I personally think, that any event, action or other activity, that happens in process instance, should be worth-full.
In this case, only process-start event in the _subprocess_ instance is exceptional - can't see parent version variables.
cvl
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209526#4209526
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209526
17 years, 4 months
[JBoss Portal] - DnD defect in JBP2.7.1
by vivek_saini07
Drag and Drop property is not working in JBP2.7.1 as expected. For some portlets it does not work, but when some specific portlets gets added on that same page, DND starts working as expected. Like when we add Weather/CMS Portlet on page first time DnD does not work at all but when 'Identity user portlet' gets added on the page, DnD starts working.
We can simulate this by following these steps:
1) Download new bundled version of JBossPortal 2.7.1 and strat the server
2) Enable DnD property.
3) Go to admin portal.
4) select CMS page. Notice that 'Manage Content' woindow is not dragable.
5) select Members page. Notice that window added on the page is dragable.
6) Now to prove the point further, create a new page in admin portal itself. This new page has 2 column layout by default.
7) Add a weather portlet on this page. Notice that DnD is not working
8) Add CMS portlet on this page. Notice that DnD is not working
9) Add Identity user portlet on this page. Notice that DnD is working fine.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209511#4209511
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209511
17 years, 4 months