I need information

My question is whether I can claim a headless since my solution to run in a batch?. I have to use the addCronJob?, If the jobname is the name of the solution to run?, Must be declared in the batch processors of Servoy-admin?
I would be very useful to have accurate information
thanks

Hi,

To use a batchprocessor you create a global method that is linked to the onOpen event of the solution/module.
In this method you set the cronjob to trigger the real method that should do it’s job.

So when you setup the batchprocessor in the Servoy-admin pages you tell it what solution it should open.
When it loads the batchprocessor (i.e. the headless client) it will trigger your onOpen method and the cronjob is set and will do it’s work.

Hope this helps.

Hi
means that the cronjob jobname is the name of the global method, or the solution?
I could not understand this part.
thanks for your help.

Hi,

The jobname is just a unique identifier that you assign to the job. It has no relation to any Servoy objectname.
It has to be unique in the session you are in.

Hope this helps.