[JBoss Seam] - Order of process definitions for component org.jboss.seam.co
by appendix
Hi,
I'm using a process definition (parent.jpdl.xml) which contains a task node with a sub-process (child.jpdl.xml) with seam. The Jbpm component is configured in components.xml:
| <component class="org.jboss.seam.core.Jbpm">
| <property name="processDefinitions">
| child.jpdl.xml
| parent.jpdl.xml
| </property>
| </component>
|
I realized that it's crucial that all child process definitions are listed before the process definition of any parent process, since Seam is deploying the process definitions in the order they are listed in components.xml.
I just wonder, if this is the desired behavior or if more sophisticated deployment strategies are planned or already implemented?
Additionally the nodes of the parent process are not deployed completely correct, since both process definitions are persisted within one database transaction and therefore the parent process cannot refer to the child process for its nodes, but this looks like an jbpm/hibernate issue.
Any comments on that?
Thanks, Kurt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987525#3987525
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987525
19Â years, 5Â months
[JBoss jBPM] - No subprocessId in Node with subprocess
by appendix
Hi,
I'm facing a problem with a process definition which contains a task-node with a sub-process.
When deploying both processes into a clean database the definitions and nodes are persisted currectly, but when the node with the sub-process is instantiated during the workflow, an exception is thrown stating that a process with a NULL definition cannot be instantiated.
I had a look at the database and realized that the table jbpm_node has no entry in the column subprocessdefinition_ in the row with the sub-process task despite both processes are correctly deployed to jbpm_processdefinition.
I looked at the sources and saw that the process definitions are persisted in org.jbpm.db.GraphSession.deployProcessDefinition(). Here both process definitions are saved to the session and the the session. When the session is closed later on, the underlying hibernate cannot refer to the sub-process-id when populating the table jbpm_node.
If I execute a manual session.flush() after the sub-process definition is saved to the session, then the table jbpm_node is populated correctly with a valid subprocessid_ after all.
I'm using jbpm-3.1.1 with a postgres 8.1.4 and wonder if this is a known issue. I had a look at the 3.1.2 sources and saw that code for process definition deployment didn't change, so I assume a version upgrade wouldn't solve my problem.
Any suggestions on using task-nodes with sub-processes? How can i make sure that all sub-processes are refered in their corresponding task nodes correctly? I don't get any warnings or errors at deployment time and the exception is thrown at runtime.
I haven't included the process definitions in this post, because I'm positive that they are valid and they would only blow up this post.
Thanks for any help in advance,
Kurt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987520#3987520
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987520
19Â years, 5Â months