Bug 779014 (SOA-1427) - CLONE -sub-process name is not resolved upon deployment with the jbpm-console
Summary: CLONE -sub-process name is not resolved upon deployment with the jbpm-console
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-1427
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: JBPM - within SOA
Version: 4.3 CP01
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3 CP02
Assignee: trev
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-30 14:48 UTC by Martin Weiler
Modified: 2009-09-15 15:40 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-15 15:40:59 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-1427 0 None None None Never

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.




Note You need to log in before you can comment on or make changes to this bug.