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

Bug 1310820

Summary: Can't signal sub process when using the EJB API
Product: [Retired] JBoss BPMS Platform 6 Reporter: William Antônio <wsiqueir>
Component: jBPM CoreAssignee: Alessandro Lazarotti <alazarot>
Status: CLOSED EOL QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: kverlaen
Target Milestone: ER1   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1311163 (view as bug list) Environment:
Last Closed: 2020-03-27 20:11:44 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:
Bug Depends On:    
Bug Blocks: 1311163    

Description William Antônio 2016-02-22 17:30:09 UTC
Description of problem:

If we have a process that has a human task followed by a sub process and when completing the task and trying to signal the started subprocess on the same transaction, we have an error saying that the subprocess does not exist. If we use no transaction, it works.

Version-Release number of selected component (if applicable):
n/a

How reproducible:
always

Steps to Reproduce:
1. Create a simple process that has a human task following by a subprocess with a signal
2. use the jBPM EJB API to handle the process and user tasks;
3. on the same transaction (you can use a stateless EJB method with TransactionAttribute(REQUIRES_NEW) or any other that will preserve the tx), start a new process instance, start and complete the task, retrieve the subprocess ID and try to signal it;

Actual results:

Error saying the process instance ID was not found.


Expected results:

Signal sent successfully.

Additional info:

A workaround is perform each action on a separated transaction or use no transaction at all in the client app.

Comment 3 Tomas Livora 2016-03-17 10:07:06 UTC
Verified on BPM Suite 6.3.0 ER1