Red Hat Bugzilla – Bug 1264028
Task list displays task to original user even after automatic reassignment
Last modified: 2015-10-14 11:35:25 EDT
Created attachment 1074399 [details]
Process definition to reproduce the issue
Description of problem:
This is a regression.
It is possible to define reassignment for human task in process definition.
For given human task this specifies timeout and user, to which the task should be reassigned, if it is not started/completed before timeout (See process definition attached, that can be used to reproduce the issue)
How it worked (correctly) before: after reassignment occured, task list no longer showed the task to the original user, instead it was shown to the user we reassigned to.
How it works now (bug): after the reassignment occurs, taks list still displays task to the original user (who no longer has access to the task, because it was reassigned to another user - and as a results sees Exception modals when he tries to manipulate with the reassigned task) and is not displayed in the task list of the reassignment user.
Version-Release number of selected component (if applicable):
latest 6.3.x snapshot
Steps to Reproduce:
1. Create new process in designer and import BPMN2 definition from the attachment, Build & deploy the project
2. Start the instance of the given process, entering original and reassignment users in process start form. The proc. definition is flexible, so you can define initial user for assignment (initialAssignment variable) as well as the user to which the task will be reassigned after 10 seconds after process started (reassignTo variable).
3. Check task list with both original user and with reassign user.
THe task is present in the tasklist of the original user forever. But when he clicks release or anything, he gets an Exception modal "no current status match"
The task never appears in the task list of the user to which the task was reassigned
This worked correctly in 6.1.
Attaching screenshot of the error as well as a record from HUMAN_TASKS_WITH_USERS dataset, showing the task after reassignment occurs.
Created attachment 1074400 [details]
Error when original user works with reassigned task
Created attachment 1074401 [details]
Reassigned human task in data sets
fixed by introducing new event listener methods that are called on reassignment so audit task table is updated and by that will allow queries to return proper results.
Cool, now it works as before. Verified with BPM Suite 6.2.0 ER4.