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

Bug 1333587

Summary: Parent process is not notified about the subprocess completion if the subprocess was started in a previous version
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.2.0CC: kverlaen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1333589 1333598 (view as bug list) Environment:
Last Closed: 2020-03-27 20:11:39 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: 1333589, 1333598    
Attachments:
Description Flags
Database scripts and instructions to reproducer none

Description William Antônio 2016-05-05 22:22:51 UTC
Description of problem:


A parent process is started in BPM Suite 6.0 , at some point it enters a subprocess, the subprocess stops waiting for a signal or for a human task, then we migrate the base to BPM Suite 6.2, when we continue the subprocess in 6.2, the parent process will not be notified.

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

How reproducible:
Always

Steps to Reproduce:
1. In BPM Suite 6.0.x, create a process that has a subprocess that will stop its execution at some point waiting for an external action (a signal or a human task)
2. Stop the server, migrate the database using the upgrade scripts first using the script to upgrade from 60 -> 61, then use the script to update the DB from 61 -> 62
3. Start business central pointing to the migrated DB or create a standanlone app that will allow you to continue the sub processinstance;
4. Continue the subprocess execution;

Actual results:

The parent process will get stuck waiting for the subprocess completion, but in the database and in the view, you will see that the subprocess was actually completed.

Expected results:

The parent process should continue its execution normally after the subprocess has been completed.

Additional info:

Attached you can find databases scripts that will help you to reproduce this, but it is not easy to reproduce it.

This error is happening because a flag called signalCompletion was only added to BPM Suite 6.2 and the sub process does not notify the parent process if it is not set to true, but since it is not present in the migrated database, it is restored as false, so the parent process is never notified.

Comment 1 William Antônio 2016-05-05 22:23:46 UTC
Created attachment 1154396 [details]
Database scripts and instructions to reproducer