Bug 779014 (SOA-1427)

Summary: CLONE -sub-process name is not resolved upon deployment with the jbpm-console
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Martin Weiler <mweiler>
Component: JBPM - within SOAAssignee: trev <tkirby>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3 CP01   
Target Milestone: ---   
Target Release: 4.3 CP02   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1427
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-15 15:40:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Weiler 2009-07-30 14:48:35 UTC
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.

Comment 1 trev 2009-07-30 14:50:14 UTC
Link: Added: This issue depends JBPM-2460


Comment 2 trev 2009-07-31 14:10:18 UTC
Alejandro has added this to the JBPM 3.2.7 code 

Comment 3 Dana Mison 2009-08-05 07:08:12 UTC
added to the 4.3.CP02 release notes as resolved:

JBPM-2460 - DeployProcessActionListener.handleAction() now retrieves the JbpmContext before parsing the process definition.  

Comment 4 Julian Coleman 2009-08-12 10:36:31 UTC
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.