Bug 790392

Summary: Variables changed inside embedded subprocess do not produce ProcessVariableChangedEvent
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Tomas Schlosser <tschloss>
Component: jBPM 5Assignee: lcarlon <lcarlon>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Schlosser <tschloss>
Severity: high Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: atangrin, brms-jira, lpetrovi, mswiders
Target Milestone: ER7   
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 02:52:06 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:
Embargoed:

Description Tomas Schlosser 2012-02-14 12:18:40 UTC
Description of problem:
When executing a process with embedded subprocess, that changes its variable, the change is not reported to added listeners.

Version-Release number of selected component (if applicable):
BRMS-5.3.0-ER3

How reproducible:
Every time

Steps to Reproduce:
1. execute SimpleBPMNProcessTest in jbpm-bpmn2 module
2. search for testSubProcess
  
Actual results:
RUNNING: testSubProcess
x = null
x = Hello
Goodbye World

Expected results:
RUNNING: testSubProcess
x = null
"toString of ProcessVariableChangedEvent from beforeVariableChanged()"
"toString of ProcessVariableChangedEvent from afterVariableChanged()"
x = Hello
Goodbye World

Additional info:

Comment 1 Maciej Swiderski 2012-03-20 11:12:40 UTC
Events are generated properly but they are not printed out by default since they use logger and its debug level, which is disable. Can be enabled in src/test/resources/log4j.xml.
When enabled exected events are printed out.

Comment 2 Lukáš Petrovický 2012-03-20 17:41:56 UTC
Tomáš, is this still valid? If not, please close.

Comment 3 Tomas Schlosser 2012-03-21 07:28:22 UTC
It seems that the problem was somewhere else. We check changed variables by variable ID, but the ID of variable inside the subprocess is not '<variable_name>', but rather '<subprocess_node_id>:<variable_name>'.

Could you please document that? So the users know what to expect.

Comment 4 lcarlon 2012-04-02 03:21:58 UTC
I'll add a note and let you know when it has been updated.

Comment 7 Ryan Zhang 2012-05-14 08:16:03 UTC
The fixed for this issue should be included in ER7. Please do verification on it.

Comment 9 Tomas Schlosser 2012-05-21 08:14:29 UTC
This is already included in documentation.

Comment 10 lcarlon 2012-06-25 02:52:06 UTC
Closing as status already set to verified.