[jboss-user] [jBPM] - Re: Proposed temporary and limited approach to supporting excluded owners
Gary Struthers
do-not-reply at jboss.com
Fri Jan 13 14:53:52 EST 2012
Gary Struthers [https://community.jboss.org/people/garyaiki] created the discussion
"Re: Proposed temporary and limited approach to supporting excluded owners"
To view the discussion, visit: https://community.jboss.org/message/646765#646765
--------------------------------------------------------------
Excluded owners are needed for for peer review. The roles stay the same, unlike an approval process.
The WS-HumanTask specification has generic roles with excluded owners but leaves much to be decided by implementers. Unlike other roles it should be dynamically updated when a user completes a task, and it's a negative query parameter. Also, an excludedOwners list must be specific to either roles, swimlanes or tasks within a process instance.
jBPM makes the first owner of a task the owner of all following tasks in that role for the process instance. This saves unneeded task reassignment but use cases for excluded users shouldn't work this way.
I think these use cases are necessary and sufficient.
Main Use Case
1. user claims a task.
2. user completes the task and the process definition specifies that user is excluded from further tasks in a role for that process instance.
3. for the next task in that role call getPotentialOwners IN (roles) AND NOT IN (excludedOwners)
4. repeat step 1
Secondary Use Case
1. user claims a task which has excludedOwners.
2. user completes a task and the process definition specifies that the excludedOwners list for that process definition is cleared.
3. formerly excluded owner can claim next task.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646765#646765]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120113/cb21c70c/attachment.html
More information about the jboss-user
mailing list