cancel
Showing results for 
Search instead for 
Did you mean: 

User assignment to the actions in GP process

Former Member
0 Kudos

Hello Everybody,

I have developed one GP process for which structure is similar to given below:

Process 1

|_ Block 1

|_ Action 1 (create request)

_ On complete - go to Action 2

|_ Action 2 (approve request)

_ On complete - terminal

_ On reject, go to Action 1

In above scenario, processor for action 1 will be the owner or initiator of the process.

Processor of action 2 will be determined based on some of the data entered by user in action1. Action 1 has one output parameter appr1_out which provides the ID of the processor for action 2. This parameter is consolidated to input parameter (appr1_in) of Action 2 and name of the group is appr. Parameter (appr_in) is assigned to the action 2 as the processor of the action under Block -> Roles -> filled from context parameter.

Above, process works fine back and forth. But now, issue arise in below situation:

When request was submitted first time, approver ID was abc. So, action 2 has been assigned to abc.

Abc1 has rejected the request and it is gone to requestor (action1). Now, requestor will change some of the data on the screen. In result of that, approver for action 2 gets changed to xyz.

So, now action 2 should be assigned to xyz. But issue is, action 2 is being assigned to both abc and xyz this time. It should have been assigned to only xyz.

requirment is: second time action 2 should be assigned to only xyz and not both.

Can you please help me to resolve this issue?

Thanks,

Bhavik

Accepted Solutions (0)

Answers (1)

Answers (1)

kiran_jakkaraju
Contributor
0 Kudos

Hi

this is the problem every one is facing when the same action is repeated and users assigned at runtime for the action.

Use GP API and try using this code if your callabel object of the action is Webdynpro try:


rtm.changeTaskProcessor(processInstanceID, activityInstanceID, currentProcessor, newProcessor);

this will work only when your action is running not when it is in pending.

I am using VC screen and can not write the code there to change the processor. you can try if yours is webdynpro.

Former Member
0 Kudos

Thanks Kiran for your response.

But i am not using WebDynpro as the callable object. I am using BSP as the callable object in my process.

Is there any other way to eliminate this issue?

Did anybody find out what SAP says on this?

Thanks,

Bhavik