Stop/Start Batch procs using pre and post import hooks

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

Stop/Start Batch procs using pre and post import hooks

Postby jdbruijn » Wed Dec 05, 2018 5:02 pm

Is there anybody that used the pre/post import hook modules to stop all BatchProcs before importing a solution and restarting them after the import is completed?

I have taken a look at the UserManagerPlugin, but this only gives me the option to get a list of Batch processors, looks like this is the information from BatchProcessor tab on the Admin page.
I can get a list of Headless clients and I can stop a client for instance based on the solution name. However, I cannot find a way to restart the client after the import is done.

I have heard of using the HTTP plugin to 'manipulate' the batch processors tab on Admin page, but I was wondering if there are any other solutions out there.
Jos de Bruijn
Welcome CCS
Servoy Certified Developer
Image
jdbruijn
 
Posts: 468
Joined: Sun Apr 11, 2010 6:34 pm

Re: Stop/Start Batch procs using pre and post import hooks

Postby sean » Wed Dec 05, 2018 5:29 pm

Hi Jos

Which version of Servoy do you use ?
While there is no API strictly for batch processors, we have, since 8.2, the client manager plugin. You can list all connected clients and kill them.

We had a webinar for the 8.2 release dedicated to this plugin.

Headless clients can be (re)started from the headless client plugin. Let us know if you need more details. Good luck!
Software Engineer
Servoy USA
sean
 
Posts: 128
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: Stop/Start Batch procs using pre and post import hooks

Postby mboegem » Thu Dec 06, 2018 12:58 am

sean wrote:Headless clients can be (re)started from the headless client plugin.


Restarting them via the plugin will not list them in the admin page as batch processors in a running state?
I remember trying this in past and I did not see this happen.
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1455
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 2 guests