cancel
Showing results for 
Search instead for 
Did you mean: 

Starting Process by Using Web Service callable object

Former Member
0 Kudos

HI,

I have created Web service CO for starting a predefined process (let call it Process2).

I am using this Web Service CO in another process i.e. Process1 (Main Process).

When execution of Process1 reaches to action where Web service CO is Attached. It's Initiating the Process2.

My Problem Is Process2 is initiated by some "Guest" User instead of processor of that action.

Plz help ASAP.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185029
Active Contributor
0 Kudos

Hi,

Is there something like below written in your WS?


IUser loggedUser = WDClientUser.getCurrentUser().getSAPUser();

		IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(loggedUser);

		
		IGPProcess processTemplate 
		= GPProcessFactory.getDesigntimeManager().getActiveTemplate(
        		"........................", userContext);

-Ashutosh

Former Member
0 Kudos

When you start a process via gp api you pass an intiator user as an input parameter. Are you sure that you get it right from UME?