Bug 1022829 - Task delegation UI improvements
Summary: Task delegation UI improvements
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ER6
: 6.0.0
Assignee: Mauricio Salatino
QA Contact: Jan Hrcek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-24 06:45 UTC by Jan Hrcek
Modified: 2014-08-06 20:12 UTC (History)
1 user (show)

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


Attachments (Terms of Use)
Steps to reproduce - video (4.09 MB, video/webm)
2013-10-24 06:45 UTC, Jan Hrcek
no flags Details

Description Jan Hrcek 2013-10-24 06:45:15 UTC
Created attachment 815637 [details]
Steps to reproduce - video

Description of problem:
After delegation is performed in task list using task's Details>Assignments panel, user remains listed in the 'Potential Owners' field, but he has no longer access to that task's actions (he cannot claim it/start/complete it)

See video attached for steps to reproduce this problem.

Version-Release number of selected component (if applicable):
BPMS 6.0.0 ER4

How reproducible:
Always

Steps to Reproduce:
1. Go to tasks list, create new task
2. Using details button (magnifying glass) go to Details panel and there, switch to Assignments
3. Fill in some user or group (also please notice, that this field accepts empty input)
4. Click Delegate button

Actual results:
-Current user remains listed in Potential owners list
-Current user can no longer perform actions on task - he can only go to details.

Expected results:
Either 
1) current user should be removed from potential owners list (in such case also Delegate button should be disabled - as it is he can still click this button, resulting in error notifications being displaed)
2) or current user should still be able to claim back the task and perform other actions on it.

Additional info:
Also please make sure some elementary validation is implemented for User or Group field - as it is now, it accepts empty input.

Comment 1 Kris Verlaenen 2013-10-24 22:16:14 UTC
This is actually how delegation is supposed to work according to the WS-HumanTask specification (section 4.7.3).  Only when a task is forwarded (instead of delegated) the user should be removed from the potential owner list (this is however not yet possible in the UI).
Once a task is reserved (claimed by or assigned to a specific user), the other potential owners are no longer able to claim the task (as this is only possible if the task is in ready state).  Only when the actual owner would release the task again, all potential owners would again be able to claim the task.

As a result, I believe the current implementation behaves as the specification dictates.

Comment 2 Jan Hrcek 2013-10-25 03:05:48 UTC
Kris, if that is the case in WS-HT spec, then leaving the user in potential owner list is OK. However, there are still the other 2 issues mentioned that are present in ER4 and need to be looked at: 

1) after delegation is performed the Delegate button should be disabled (to prevent errors that appear when user repeatadely clicks on the Delebate button)

2) input validation - empty string should not be accepted when entering User or group input.

Comment 3 Kris Verlaenen 2013-10-25 03:13:51 UTC
Jan, agreed, I've updated the title to reflect this.

Comment 4 Mauricio Salatino 2013-11-20 17:53:17 UTC
This is already fixed in 6.0.x, I'm marking this BZ as modified
This commit fixes the issues described here in the last comments: https://github.com/droolsjbpm/jbpm-console-ng/commit/adf2866728faae1052044426be02ff8ca416433d

Comment 5 Jan Hrcek 2014-01-02 11:18:08 UTC
Ok, verified with BPMS 6.0.0 ER6


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