Bug 799867

Summary: Non-terminal EndNode does not generate left event
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Tomas Schlosser <tschloss>
Component: jBPM 5Assignee: Kris Verlaenen <kverlaen>
Status: VERIFIED --- QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: lpetrovi
Target Milestone: ER6   
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: 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 Tomas Schlosser 2012-03-05 10:15:43 UTC
Description of problem:
Triggered events (before, after) are not generated when an end node is marked as non terminal.

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

How reproducible:
Every time

Steps to Reproduce:
1. add process event listener
2. start simple process with non-terminal end node
3. check for beforeNodeTriggered event
  
Actual results:
the one for non-terminal EndNode is missing

Expected results:
EndNode generates events as usual

Additional info:
The problem seems to be in org.jbpm.workflow.instance.node.EndNodeInstance in "else" branch on line 63.

Comment 1 Tomas Schlosser 2012-03-05 10:44:00 UTC
Looked again and found out that only NodeLeftEvent is not fired (although it is fired for terminating EndNode).

Comment 2 Maciej Swiderski 2012-03-23 10:43:04 UTC
pull request already merged into 5.2.x branch

Comment 3 Ryan Zhang 2012-04-23 07:39:42 UTC
Update status to ON_QA. Please verify them against ER6.