cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the internal role in GP runtime

Former Member
0 Kudos

Hi all,

Can I use the GP API to change the GP's internal role,for example,the overser in GP's runtime?

If this is possible,so how should i do this?

Thank you !

Best regards

delma

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

what do you mean by changing the role?

It very much depends. You cannot delete this role for sure. What you are allowed to do is usually change user assignments to the role...

Regards,

Petja

Former Member
0 Kudos

Hi Petja,

Thank you for your reply.

Yes,we don't wan't to delete this role,of course. We just want to modify the user assignments.

Is any solutions about this?

Thank you.

Best regards,

delma

Former Member
0 Kudos

Hi,

yes, there is a solution. You can do this both in DT or in RT using the APIs.

This document describes both approaches (point 4 and 7 respectively):

<a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/frameset.htm">Starting and Terminating Processes Using the GP API</a>

The example shows how to access the Administrator role and change its user assignment.

HTH:)

Regards, Petja

Former Member
0 Kudos

Hi,

I've read this documents before.

This is about changing the assignment when starting the process.

But can I change it when the process is running?

Thank you.

Best regards,

delma

Former Member
0 Kudos

Hi,

yes, this is exactly what you do in point 7 of the document.

You have to instantiate the IGPRuntimeManager and then call some of its methods:

addRuntimeDefinedUserToRole() - possible if you have configured the role to be runtime defined (when you design the process in DT)

changeTaskProcessor() - when you want to change current task processor.

This is all happening at runtime.

HTH

Regards, Petja

Former Member
0 Kudos

Hi,

Thank you. I will try this.

best regards,

delma