[JBoss jBPM] - Join problem
by armita
I have the attached process definition and "FF Join" acts in a strange way. If I execute the "UploadMediaFile" first, everything is OK, but if "UploadMetadata" executes first, it does not wait for "UploadMediaFile" and executes the join right away.
any thoughts?
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="" name="mediaprocess">
|
|
| <swimlane name="actor">
| <assignment class="ca.cbc.mediagateway.MGWAssignmentHandler"></assignment>
| </swimlane>
|
|
| <start-state name="start">
| <transition to="fork1"></transition>
| </start-state>
|
|
| <fork name="fork1">
| <transition to="UploadMediaFile"></transition>
| <transition to="UploadMetadata" name="to upload meta data"></transition>
| <transition to="UploadThumbnails" name="to upload thumbnails"></transition>
| </fork>
|
| <join name="join1">
| <transition to="Maven"></transition>
| </join>
|
| <task-node name="UploadMediaFile">
| <task name="UploadMediaFile" swimlane="actor"></task>
| <transition to="FF Join"></transition>
| </task-node>
|
| <task-node name="UploadMetadata">
| <task name="UploadMetadata" swimlane="actor"></task>
| <transition to="fork2"></transition>
| </task-node>
|
| <task-node name="UploadThumbnails">
| <task name="UploadThumbnails" swimlane="actor"></task>
| <transition to="join3"></transition>
| </task-node>
|
| <node name="Maven" async="true">
| <action class="ca.cbc.mediagateway.handler.MavenHandler" async="true"></action>
| <transition to="MediaBin"></transition>
| </node>
|
| <node name="MediaBin" async="true">
| <action class="ca.cbc.mediagateway.handler.MediaBinHandler"></action>
| <transition to="EPT"></transition>
| </node>
|
| <node name="EPT" async="true">
| <action class="ca.cbc.mediagateway.handler.EPTHandler"></action>
| <transition to="Finito la commedia"></transition>
| </node>
|
| <task-node name="FlipCallback">
| <task name="FlipCallback" swimlane="actor" ></task>
| <transition to="join1"></transition>
| </task-node>
|
| <node name="UploadToFlipFactory">
| <action class="ca.cbc.mediagateway.handler.UploadToFlipFactoryHandler" async="true"></action>
| <transition to="FlipCallback"></transition>
| </node>
|
| <fork name="fork2">
| <transition to="join3"></transition>
| <transition to="FF Join" name="to UploadToFlipFactory"></transition>
| </fork>
|
| <node name="StoreThumbnail">
| <action class="ca.cbc.mediagateway.handler.StoreThumbnailHandler" async="true"></action>
| <transition to="join1"></transition>
| </node>
|
| <join name="FF Join">
| <transition to="UploadToFlipFactory"></transition>
| </join>
|
| <join name="join3">
| <transition to="StoreThumbnail"></transition>
| </join>
|
|
| <end-state name="Finito la commedia"></end-state>
|
|
| </process-definition>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219241#4219241
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219241
17 years, 1 month
[JBoss jBPM] - deployment problem with additional hibernate classes
by boercher
Hi,
with jbpm-3.2.6.SP1, JBoss AS 4.2.3.GA I got a simple process working in a unit test and on the application server where it can be examined in the jbpm-console.
Problems arise however as soon as I try to use my own hibernate classes with the jbpm hibernate session like this:
| Session session = context.getJbpmContext().getSession();
| UrlLock lock = new UrlLock(url.toString(), this, new Date());
| session.save(lock);
|
After adding an appropriate hibernate mapping to a local hibernate.extra.hbm.xml this works in my unit tests (run from within Eclipse) but it's not working on the server since when the process gets to this line an exception is thrown:
anonymous wrote :
| Error signalling token: An exception of type "org.jbpm.graph.def.DelegationException" was thrown. The message is: Unknown entity: testprocess.UrlLock
|
I tried the following fixes:
1) add hibernate.extra.hbm.xml to the deployed par archive: Did not work since it is obviously ignored by hibernate.
2) copy hibernate.extra.hbm.xml to jbpm/jbpm-service.sar/ in the JBoss deploy directory: Results in the following error:
anonymous wrote :
| DEBUG [javax.enterprise.resource.webcontainer.jsf.renderkit] Value to be rendered Error loading process list
| DEBUG [javax.enterprise.resource.webcontainer.jsf.renderkit] component.getValue() returned : An exception of type "org.hibernate.InvalidMappingException" was thrown. The message is: Could not parse mapping document from resource hibernate.extra.hbm.xml
|
Unfortunately there are no more detailed logs from the renderkit. I do not believe that it's a simple parse error since the same hibernate.extra.hbm.xml did work in the unit test.
Might this error occur due to the fact that hibernate has no access to the UrlLock.class file (although the table jbpm_bytearray contains an entry classes/testprocess/UrlLock.class)? What is the best approach for using additional hibernate classes from within a process?
Any advice is appreciated.
Regards
Volker
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219177#4219177
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219177
17 years, 1 month
[JBoss jBPM] - Problem with default controller variable
by zuipli
Hi,
I'm a newbie of JBPM. I'm creating my first process with jbpm-jpdl-designer-site-3.1.6 in Eclipse Ganymede, following a tutorial.
I choose a task of my process definition, on the Diagram panel, then in bottom part of Eclipse I choose the Properties folder. In this folder there are some sections, I choose Tasks. I see the list of the tasks associated to the selected Task of the process. For each task there are 5 folders: General, Details, Assignement, Controller, Reminder, I click on Controller.
Here I can define a list of variables that will be displayed, so I click on Add button and automatically I get a new variable called variable1.
This variable1 is highlighted in blue so that I can modify its name; I change the name in myVariable (sigh) and when I TAB or I click on any other position the name return to variable1.
If I go in the Source panel of the main window I see the description of my process in XML format. Here I can find the variable1 of my task. If I change here its name then in the Controller folder I see the myVariable name, but again it's impossible to change.
Is it a bug? Is it possible that there is a trivial bug like this? Or - more probably - I'm doing something wrong?
Thanks for yor help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219175#4219175
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219175
17 years, 1 month