Even I've have same requirement to reassign task to another user for which the current loggedIn user is not task owner. I'll try the JS API mentioned above. But at the same time, I would like to know how did you fetch the task list for the process owner group in which all the other user's task appear?? Please help on the same.

P.S We do use currently REST API to fetch loggedIn user's task and use seperate UI web app instead of coach.

Re: Re-assign Task to another user

Even I've have same requirement to reassign task to another user for which the current loggedIn user is not task owner. I'll try the JS API mentioned above. But at the same time, I would like to know how did you fetch the task list for the process owner group in which all the other user's task appear?? Please help on the same.

P.S We do use currently REST API to fetch loggedIn user's task and use seperate UI web app instead of coach.

Andrew - Your'e right. I think I have to explain little more on requirement. The requirement is related to getting the team member's task list using REST API when a manager user log's in ( its from custom java web app and not BPM portal).

Currently we are retriving the task list of a loggedIn user using the following REST API

1. How do I relate manager user and its team members in BPM? Currently the groups are defined only for business role say Sales, Marketing etc. And these groups are inturn linked as Participant group in the Swimlane of the process. All the users and groups are derived from custom User Registry.

2. How do I get the team member's task list when manager log's in using REST API? Upon retrieving the task list, as you mentioned we can invoke integration service which will reassign task by passing the task Id and user Id.
P.S I'm using BPM 751 standard.

Re-assign Task to another user

Andrew - Your'e right. I think I have to explain little more on requirement. The requirement is related to getting the team member's task list using REST API when a manager user log's in ( its from custom java web app and not BPM portal).

Currently we are retriving the task list of a loggedIn user using the following REST API

1. How do I relate manager user and its team members in BPM? Currently the groups are defined only for business role say Sales, Marketing etc. And these groups are inturn linked as Participant group in the Swimlane of the process. All the users and groups are derived from custom User Registry.

2. How do I get the team member's task list when manager log's in using REST API? Upon retrieving the task list, as you mentioned we can invoke integration service which will reassign task by passing the task Id and user Id.
P.S I'm using BPM 751 standard.

To Ananya's point, the REST API isn't capable of showing you other peoples tasks (even if you manage them) because some companies would view that as a security hole since anyone with a web browser can make a REST API call, and in some situations a manager is not permitted to see some (all?) of their team's tasks.

The JS API allows you to choose to ignore this. So if you want a manager to be able to see all the team's tasks, then you simply create a service that can return that data and make it available as a URL or a Web Service so that it can be called.

Now the bigger question here is the "How do I know who is on Person X's team". That isn't a problem that IBM BPM really solves for you out of the box. The security groups have the ability to say Group X contains the managers of Group Y, but those groups are at a global level, not a process level, and generally you wind up with the situation where there are 200 call center reps, all in the call center group and 10 call center managers, all in the call center manager group, but each manager only manages 20 reps and the groups don't capture that relationship.

The point here is that a system needs to exist or be created where that relationship can be looked up. It can be done in a DB, it can be done in LDAP, but someone has to create it and make it accessible. IBM BPM today does not solve that problem. (You can use user attributes to make it easier to solve, but there is no OOTB solution)

Thanks Ananya / Andrew for your response and its really a useful info.

Ananya, Just one last question - I understand your Script but want to know from where this script gets triggered? Is this executed as part of Human Task (Coach) and displaying the task Ids in UI or using it as one another service?

Andrew & Ananya,

The requirement is to display manager's team task list from a seperate java ui web application. In which user will select a task to reassign to one another user.

Currently my implementation plan is to pass all the team member's userId when a manager user logs in from java web app. This Java app consume WS defined as part of BPM Process by passing user Ids and BPM WS returns the task list as result (leveraging the JS API similar to Ananya's one within the WS). Upon display of task list in UI, user will be allowed to select a task and reassign to another user by calling the said "Reassign" Integration service using task Id and user Id as parameter.

Is this approach work or any other suggestions for my scenario? (Sorry for lot of questions as I'm still beginner on BPM end)
Regards,
Amarnath

Re: Re-assign Task to another user

Thanks Ananya / Andrew for your response and its really a useful info.

Ananya, Just one last question - I understand your Script but want to know from where this script gets triggered? Is this executed as part of Human Task (Coach) and displaying the task Ids in UI or using it as one another service?

Andrew & Ananya,

The requirement is to display manager's team task list from a seperate java ui web application. In which user will select a task to reassign to one another user.

Currently my implementation plan is to pass all the team member's userId when a manager user logs in from java web app. This Java app consume WS defined as part of BPM Process by passing user Ids and BPM WS returns the task list as result (leveraging the JS API similar to Ananya's one within the WS). Upon display of task list in UI, user will be allowed to select a task and reassign to another user by calling the said "Reassign" Integration service using task Id and user Id as parameter.

Is this approach work or any other suggestions for my scenario? (Sorry for lot of questions as I'm still beginner on BPM end)
Regards,
Amarnath