Description of problem: Backport https://issues.jboss.org/browse/JBPM-4114 to BRMS 5.3.x Steps to Reproduce: I think the test case in the commit (https://github.com/droolsjbpm/jbpm/commit/f551bda07e27ea337dd7c44a032c9fa6b4c0307f) is fine. But just in case, I added a reproducer with a sample process which is provided by the customer. 1. Unzip 01051722_gateway_in_subprocess.zip 2. Run ProcessMainJPA Actual results: ProcessMainJPA finishes with STDOUT "On Exit, John Task...". This means the process instance doesn't exit the subprocess. Expected results: ProcessMainJPA finishes with STDOUT "On Entry, Kris Task...". This means the process instance exits the subprocess.
Created attachment 873786 [details] 01051722_gateway_in_subprocess.zip
backported to 5.2.x branch jbpm 5.2.x: https://github.com/droolsjbpm/jbpm/commit/843b9938466f9ca0b4121e97806b62fab53e1911
Verified on BRMS 5.3.1 P06