Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1058338

Summary: session-migration: Deadlines do not work.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Marek Baluch <mbaluch>
Component: jBPM CoreAssignee: Maciej Swiderski <mswiders>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Baluch <mbaluch>
Severity: high Docs Contact:
Priority: medium    
Version: 6.0.0   
Target Milestone: ER1   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:04:02 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:
Description Flags
stacktrace none

Description Marek Baluch 2014-01-27 15:22:09 UTC
Created attachment 856114 [details]

Description of problem:
If a task which defines a deadline (e.g. with reassignment) is stored in jBPM5 then it's execution will fail in jBPM6.

Based on the error message (whole log attached) it looks like the transaction will not be awaken right away but only if the task in question is accessed. This will fail with message:

XAER_RMFAIL: The command cannot be executed when global transaction is in the  ACTIVE state

Steps to Reproduce:
Using the tests located in:
1) Run the from53x UserTaskTest.humanTaskReassignTest()
2) Run the to6x UserTaskTest.humanTaskReassignTest()

Additional info:
Do not use PostgreSQL as there's another issue which hides this one. See BZ-1058301. I used MySQL55.

Comment 1 Maciej Swiderski 2014-01-29 15:02:04 UTC
fixed by using backward compatible discriminator value for EmailNotification entity.



same as noted in the other session migration bz, to activate deadlines handling Taskervice needs to be created at least once otherwise deadlines are not loaded from db

Comment 2 Marek Baluch 2014-02-20 08:21:03 UTC
VERIFIED on 6.0.1.ER1