1 Reply Latest reply on May 17, 2012 2:32 PM by swiderski.maciej

    Claim Task - why we have 2 methods?

    a_nat

      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