Skip to Content
0
Former Member
Jul 19, 2009 at 06:49 AM

How to get Action Instance id of Process.

15 Views

Hi All,

I am trying to complete the process through code. As follows.

try {
	IUser loggedUser = WDClientUser.getCurrentUser().getSAPUser();
	IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
	String actionID=executionContext.getTaskId();
	IGPActionCompletionData completionData =rtm.createActionCompletionData ("6A258E80120B11DECB626EF25FC73202",actionID,loggedUser);
	completionData.setState(IGPActionCompletionData.RESULT_STATE_COMPLETED_DONE_ONLY);	completionData.setType(IGPActionCompletionData.ACTIVITY_TYPE_USER);
	rtm.completeAction(completionData);
	} catch (RuntimeException e2) {
                          // TODO Auto-generated catch block
	e2.printStackTrace();
                     }

I am getting GP exception.

Please tell me how to get action instance id??

Regards,

Rajesh N

}

Edited by: RAJESH NIMMAKAYALA on Jul 19, 2009 8:50 AM