Skip to Content
0
Former Member
Dec 20, 2007 at 04:58 AM

Trigger GP process by giving process URL in Interface View outbound plug

35 Views

Hi,

My Requirement is,

I have 1 GP process implemented in webdynpro.

From 1 of my view I am calling the process completeion(executionContext.processingComplete();) code, written in interface controller.

After this code I need to start the same process once again, without clicking any link.

For this I have created 1 outbound plug in the interface view of my window(out blug for WebDynproCOInterfaceView with parameter "Url").

Then after calling executionContext.processingComplete();, I gave

wdThis.wdGetWebDynproCOInterfaceViewController().wdFirePlugGotoUrl("Process Instantiation URL"); in my view.

but it is giving error,"WDRuntimeException: Cannot navigate from view WebDynproCOInterfaceView via non-existent outbound "

**********************************************************************************

Also I tried to start the gp process througn coding also

what I tried is,

IWDClientUser wdUser = WDClientUser.getCurrentUser();

IUser user1 = wdUser.getSAPUser();

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

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

EB0B28E08B6011DB0145EB416E0 is the process ID.

This code I have tried by giving before and after the completion of the previous process(process9executionContext.processingComplete();)

But this also didn't work..No error came. But process didn't start again after thecompleted once.

Please help me out.

Thanks

smitha