on 12-03-2007 1:27 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.