Hide Forgot
Date of First Response: 2009-07-31 10:10:18 Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/324121 project_key: SOA Using the upload process function of the jbpm-console web app, deploy two processes with a parent-child relationship through a process-state node: 1. childprocess.par <process-definition name="child"> [...] </process-definition> 2. parentprocess.par <process-definition name="parent"> [...] <process-state name="process-state1"> <sub-process name="child" /> <transition to="end"></transition> </process-state> [...] </process-definition> After the two processes are deployed, the relation from the parent-process to the child-process is not properly set in the database: mysql> select ID_, NAME_, SUBPROCNAME_, SUBPROCESSDEFINITION_ from JBPM_NODE where CLASS_ = 'C'; +-----+----------------+--------------+-----------------------+ | ID_ | NAME_ | SUBPROCNAME_ | SUBPROCESSDEFINITION_ | +-----+----------------+--------------+-----------------------+ | 78 | process-state1 | NULL | NULL | +-----+----------------+--------------+-----------------------+ 1 row in set (0.00 sec) This is due to the fact that the jbpm4jsf part initializes the JbpmContext *after* the processdefinition.xml file is parsed, therefore the call to DbSubProcessResolver.findSubProcess returns null.
Link: Added: This issue depends JBPM-2460
Alejandro has added this to the JBPM 3.2.7 code
added to the 4.3.CP02 release notes as resolved: JBPM-2460 - DeployProcessActionListener.handleAction() now retrieves the JbpmContext before parsing the process definition.
Additional fixes required to the JSF console. Resolved in revision 3555 (4.3 branch) of: build-tools/builders/soa/p-consoles/jbpm/resources/jbpm-2460 build-tools/builders/soa/p-consoles/jbpm/resources/jbpm-2460/DeployProcessActionListener.java build-tools/builders/soa/p-consoles/jbpm/resources/jbpm-2475 build-tools/builders/soa/p-consoles/jbpm/resources/jbpm-2475/ProcessUploadServlet.java build-tools/builders/soa/p-consoles/jbpm/build.xml Commit message: > SOA-1427 > SOA-1433 > Copy fixes from JSF console jsf-console-3.2-soa branch for JBPM-2460 and > JBPM-2475.