cancel
Showing results for 
Search instead for 
Did you mean: 

Stopping a process remotely

Former Member
0 Kudos

Dear,

Is there a way to stop a process, if we know the GUID, using a webservice?

Regards,

Frederik-Jan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Frederik-Jan Roose,

Yes we can stop the process remotely using web service but for this you require the process id.

Regards

Satya

Former Member
0 Kudos

We have the processId since we're also starting the process with a webservice, the processId is one of the return values of that action.

How would I do that then?

Former Member
0 Kudos

Hi,

Write a method and expose it as webservice. The method should have the following code.


IGPRuntimeManager rtm=GPProcessFactory.getRuntimeManager();
IGPProcessInstance processInstance=rtm.getProcessInstance(processId, userContext)
rtm.stopProcess(processInstance, user);

Get the loggin user and hence the userContext and use the above given code for stopping the process.

Hope it helps.

Regards,

Srinivasan Subbiah

Former Member
0 Kudos

Where would I write that method?

Former Member
0 Kudos

Hi,

You can put it in a java class or ejb or caf whichever you can expose as webservice. Make sure that these have dependency towards GP Core.

If you want to start it thro a webdynpro application there also you can have these lines.

Regards,

Srinivasan Subbiah

Answers (0)