Bug 806077 - Process instance doesn't survive server restart
Summary: Process instance doesn't survive server restart
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: jBPM Console
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER6
: BRMS 5.3.0.GA
Assignee: Kris Verlaenen
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-22 20:36 UTC by Jiri Locker
Modified: 2023-05-01 08:27 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
SimpleProcess.bpmn2 (4.17 KB, application/xml)
2012-03-22 20:36 UTC, Jiri Locker
no flags Details
process does not finish (17.88 KB, image/png)
2012-03-22 20:37 UTC, Jiri Locker
no flags Details

Description Jiri Locker 2012-03-22 20:36:09 UTC
Created attachment 572079 [details]
SimpleProcess.bpmn2

Description of problem:
Running process instances are not picked up by the engine after server restart. I have a simple process with a single human task node between start and end nodes. After starting the process it is immediately persisted and waits for completion of the task node. At this point the server is restarted. When I complete the task now I expect the process will continue and end.

After restarting the server, jBPM console correctly reports the running process instance and a pending task node but completing the task has no effect on the process instance. It will hang there forever.

The ability of the jBPM engine to pick up process instances that were initiated by a different engine inside the same persistent knowledge session is necessary if we aim to support jBPM fail-over inside app server cluster.


Version-Release number of selected component (if applicable):
ER5


How reproducible:
always

Steps to Reproduce:
1. start the attached process
2. restart the server
3. complete the human task, process instance doesn't finish (see attached screenshot)
  
Actual results:
It isn't possible to continue the process instance after restarting the server.

Expected results:
After restarting the server, jBPM should restore all persisted process instances and continue executing them.

In step 3 the process should finish after the task is completed.

Additional info:

Comment 1 Jiri Locker 2012-03-22 20:37:46 UTC
Created attachment 572080 [details]
process does not finish

Comment 2 Maciej Swiderski 2012-03-27 11:46:31 UTC
Problem is due to session is initialized on first access of Process Overview and that's why when completing task directly after server restart process is not triggered as there is no session available.

So when user first access process overview instead to activate the session process instance will be resumed after completing the task. Nevertheless this is not desired to have to go to process tab to complete a task.

Will make task management to be session initializer as well so regardless of accessing task or process management in console session will be already available.

Comment 3 Maciej Swiderski 2012-03-27 12:58:22 UTC
Pull request prepared, can be found at: https://github.com/droolsjbpm/jbpm/pull/65

Comment 5 Marco Rietveld 2012-04-03 16:52:18 UTC
This pull request has been merged into the 5.2.x and master branches.

Comment 6 Ryan Zhang 2012-04-23 07:37:10 UTC
Update status to ON_QA. Please verify them against ER6.

Comment 7 Jiri Locker 2012-05-09 13:17:20 UTC
Verified in ER6.


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