Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1150226

Summary: jBPM6 allows BPMN2 processes which has no normal outgoing connection from embedded sub-process
Product: [Retired] JBoss BPMS Platform 6 Reporter: Musharraf Hussain <mhussain>
Component: jBPM CoreAssignee: Alessandro Lazarotti <alazarot>
Status: CLOSED EOL QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.3CC: kverlaen, mbaluch
Target Milestone: ER3   
Target Release: 6.1.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:12:50 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:
Attachments:
Description Flags
org.jbpm.InvalidEmdeddedSubProcess.v1.0.bpmn2 none

Description Musharraf Hussain 2014-10-07 17:49:47 UTC
Description of problem:
- jBPM6 allows BPMN2 processes which has no normal outgoing connection from Embedded Sub-Process. I have attached a simple BPMN2 process "org.jbpm.InvalidEmdeddedSubProcess.v1.0.bpmn2" which has an Embedded Sub-Process but the only outgoing connection coming out of that sub-process is coming through a boundary event attached to the sub-process. Shouldn't jBPM6 engine check for a normal outgoing connection from the sub-process as well?

Version-Release number of selected component (if applicable):
- BPMS 6.0.3
- jBPM 6

How reproducible:
- Always

Steps to Reproduce:
1. Import the attached "org.jbpm.InvalidEmdeddedSubProcess.v1.0.bpmn2" process into jBPM Web Designer and save it.
2. Validate it, and it does not give any error.
3. Execute it and it also does not give any error.

Actual results:
- The process validates and executes fine.

Expected results:
- The process should not be validated.

Additional info:
- NA

Comment 2 Musharraf Hussain 2014-10-07 17:52:50 UTC
Created attachment 944703 [details]
org.jbpm.InvalidEmdeddedSubProcess.v1.0.bpmn2

Comment 3 Maciej Swiderski 2014-11-26 15:26:47 UTC
enhanced validation to throw exceptions in case embedded subprocess does not have incoming or outgoing sequence flows:

jbpm
master:
https://github.com/droolsjbpm/jbpm/commit/eb35e9c1bd398a46c5f189890ace2b69cadd060c

6.2.x:
https://github.com/droolsjbpm/jbpm/commit/7a71877b9f9baec761bad0b58eadd814e302bc42