- Code: Select all
//Get the application type
var appType = application.getApplicationType();
//type 1 = SERVER
//type 2 = CLIENT
//type 3 = DEVELOPER
//type 4 = HEADLESS_CLIENT
//type 5 = WEB_CLIENT
//type 6 = RUNTIME
//Close the current open solution and optionally open a new one
if (appType == 4) {
application.closeSolution();
}
when running as a batch process?
When I try "start" in the servoy-admin page the headless client does not seem to close.
My objective is to start the solution as a batch process upon startup of the application server, run, then close itself.