Hi,
I have batch processes running on Servoy 4.1.5 but for some reason having an issue when trying to configure batch processes for Servoy 3.5.10.
I am just doing a simple test where I would like to create a record in a table every minute. I have the cron job set and when tested it manually and it works. But when I try to execute it as a batch process it does not work. No errors are captured by the log either.
Just to explain the Solution setting, we have a startup method running on “on open” and we have a on load method running for the login form
The code for the on_load on login form is as follows
function on_load()
{
var argumentsArray = application.getStartupArguments();
if(argumentsArray != null && argumentsArray[0] == "importRoutine")
{
globals.schedule_batch_test();
return;
}
}
code for globals.schedule_batch_test()
plugins.scheduler.addCronJob('weeklyBatch','0 0/1 * * * ?',globals.new_batch_record)
code for globals.new_batch_record
forms.z_batchprocessor_test.controller.newRecord();
forms.z_batchprocessor_test.test = "test";
databaseManager.saveData();
It failed to create record in the batchprocessor_test table. I even tested to see by trying to use the on_load code in the startup method when the solution opens but it did not work.
Any help would be appreciated
Regards
James