KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Resuming a delayed process on the server from a client
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: February 26, 2002

Compatibility: 6.5.x and 6.7.x

There are times when you may want to resume a process before it is supposed to resume. From a client, you must first locate the process ID of the delayed process on the server and then call resume process.


To obtain the processID, we execute "execute on server," the method that locates the process ID. This could be the object method behind a button so that when the button is clicked the delayed process resumes.


$findProcessID:=Execute on server("findprocess";32*1024)




The contents of the method findprocess would be as follows:

---------------

C_INTEGER($foundID)


$foundID:= RetrieveProcessID

 `You must use a method to find the unique process number of the delayed process


If ($foundID#0)

 RESUME PROCESS($foundID)

Else

  `do something

End if