[jboss-user] [jBPM] - Claim Task - why we have 2 methods?
a_nat
do-not-reply at jboss.com
Mon May 14 10:25:59 EDT 2012
a_nat [https://community.jboss.org/people/a_nat] created the discussion
"Claim Task - why we have 2 methods?"
To view the discussion, visit: https://community.jboss.org/message/735384#735384
--------------------------------------------------------------
Hi,
We have 2 claim task methods.
claim(long taskId, String userId, TaskOperationResponseHandler responseHandler)
claim(long taskId, String userId, List<String> groupIds, TaskOperationResponseHandler responseHandler)
I don't see a need for 2 methods here and the follwing are my reasons:
* If a task is allocated to a group, it's the task Service's responsibility to find whether the user claiming the task is a part of the group to which the task is allocated.
* We don't pass in the group id param to release a task, so why send it for claiming a task allocated to the group?
Does anyone have any reasons as to why we must have the 2 methods?
Regards,
Aparna
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/735384#735384]
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/20120514/ffaf4293/attachment.html
More information about the jboss-user
mailing list