Bug 1002509 - In Process Instances, finished instance shown also as active
Summary: In Process Instances, finished instance shown also as active
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER4
: 6.0.0
Assignee: Mauricio Salatino
QA Contact: Zuzana Krejčová
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-29 11:03 UTC by Zuzana Krejčová
Modified: 2016-08-01 01:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:08:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
process-reproducer (8.62 KB, application/xml)
2013-08-29 11:03 UTC, Zuzana Krejčová
no flags Details

Description Zuzana Krejčová 2013-08-29 11:03:25 UTC
Created attachment 791702 [details]
process-reproducer

Description of problem:
Shorter version - the business-central process instances perspective can show an instance both as active and as completed at the same time. Trying to abort such an instance fails with "Could not find process instance for id <id>"

Longer version:
You can create a process with a timer node that has an invalid duration defined. It is possible to run an instance of this process from the business-central. The timer node is immediately passed as if nothing is wrong. In the database, in processinstancelog table, there is both a record of this instance as active and as completed.
This results in this instance shown in the business-central as both active and completed, since that is where the information about process instances is taken from for the gui. Unfortunately, if you try to abort this instance, you get an ugly stacktrace about "Could not find process instance for id <id>" - since that instance is not active any longer and is not therefore in the processinstanceinfo table.

The process to reproduce this is attached. Tested on PostgreSQL 9.1.


Version-Release number of selected component (if applicable):
BPMS 6.0 ER2

Comment 1 Mauricio Salatino 2013-09-18 13:29:01 UTC
This is already fixed in master and 6.0.x since I couldn't reproduce the issue with the attached process. I've tested with H2 and it was working as expected. the Process is executed and the system.out appears in the console


Note You need to log in before you can comment on or make changes to this bug.