cancel
Showing results for 
Search instead for 
Did you mean: 

Change Task Owner in BPM

Former Member
0 Kudos

Hello SAP BPM experts!

I'd like some help in how to change the task owner after the it has been created.

Consider the following scenario:

The requester fills up a table form, choosing an approver for which one of the rows entered.

In the next step, we have a Looping Activity that goes for which one of the approvers chosen in the previous step.

What if the requestor may change the approver after the request has been sent?

I'm thinking in the following options:

  • Option 1: In the NetWeaver 7.3EhP1 BPM API, I could create an EJB to look for the TaskInstanceId and then call nominate() with the user chosen by the user.
  • Option 2: I could model in BPM some way to cancel the Multi-Activity, and then return the flow so that the requestor change the approvers he wants.

Am I in the right direction?

Any help would be great!

Thanks a lot,

Thales Pires

Accepted Solutions (1)

Accepted Solutions (1)

abdulbasit
Active Contributor
0 Kudos

Hi Thales,

I would prefer option 2. It is better to re-model your process by letting requester to cancel the looping process and change the approver.

If you use API, you will lose some monitoring capabilities of NetWeaver BPM.

Best,

Abdulbasit.

Former Member
0 Kudos

Thanks for your reply Abdulbasit Gulsen.

The Option 2 is the only one we have above NetWeaver 7.3EhP1, isn't it?

Regards,

Thales Pires

abdulbasit
Active Contributor
0 Kudos

You don't need any EHP1 specific feature here. You can re-model your design using standard modelling tools.

One example might be:

Create a parallel task to your main task which can be claimed by the requester and allows him to select new approver. After the requester selects  approver, you can create a new process with new approver and cancel the current task.

Depending on your requirements, you might also handle this situation in the same process using events and/or sub-processes.

Best,

Abdulbasit.

Former Member
0 Kudos

But the point is if it's possible to change an specific task owner that was created by a Multi Instance Activity.

I don't see how can I do that in BPM model.

Thanks for your help!

Regards,

Thales Pires.

abdulbasit
Active Contributor
0 Kudos

You can terminate the running task and start a new task by using the parallel task method that I've suggested. Alternatively,  insert a sub-process which contains your multi-instance activity and terminate the sub-process and start it again with the new approver using parallel task method.

If you don't like the parallel task method, you can put an parallel event to terminate the process/sub-process and use java to trigger this event outside of the process.

I hope it is more clear now..

Best,

Abdulbasit.

Former Member
0 Kudos

Oh, I can understand now...

Should be something like the example I've just done?

Thanks a lot!!!

Regards,

Thales Pires

abdulbasit
Active Contributor
0 Kudos

Yes, that's exactly what was on my mind.

BTW, I didn't understand the reason for the exclusive choice "Change Approver" after the event. This event will be triggered only when you want to change the approver. So, what is the reason for making this check ?

Anyway, I hope this design will solve your problem.

Regards,

Abdulbasit.

Former Member
0 Kudos

I made this check because the trigger endpoint will be same for differents subprocess instances, won't be? Thus, i need to check if it is for the right instance. Am I understanding wrong?

Anyway, it's much clear now.

I really appreciate your considerations.

Regards,

Thales Pires

abdulbasit
Active Contributor
0 Kudos

You don't need to perform this check. There is a correlation feature for the events. You can set correlation condition and your event is triggered only when this condition is met. This ensures that only right instance is triggered when an event is raised.

Best,

Abdulbasit.

Former Member
0 Kudos

Yeah, you're right Abdulbasit.

Thanks again.

Answers (0)