JBoss Community

Claim Task - why we have 2 methods?

created by a_nat in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community