Products | Versions |
---|---|
TIBCO DataSynapse GridServer | - |
Not Applicable | - |
Resolution:
To run a Batch, you must first create a Batch Definition, which contains components that specify the schedule used by a Batch and what Services or commands are executed.
To edit a Batch Definition:
1. In the Administration Tool, go to the Batch tab, and select Batch Registry.
2. Enter a name for your Batch Defininition in the blank box at the bottom of the list and click Add.
3. The Batch Editor dialog box will open. You can enter values for the Batch and Schedule components, and add additional components.
For example, to create a simple Batch Definition named NightlyBatch that runs a registered Service at midnight, do the following:
1. In the Schedule object, select a type of cron.
2. In the Cron subheading, enter 0 for minute and hour. This specifies a starting time of 00:00 on a daily basis, in cron format. You could change the values here to select a different time pattern, or select a type of absolute to enter times in a string, like Sat, 12 Aug 1995 13:30:00 GMT.
3. In the Add Component list, select ServiceCommand.
4. In the ServiceCommand component, select a Service Type from the ServiceName list. This is a list of all Service Types currently registered on your Manager.
5. In the ServiceCommand object, enter a MethodName, __initData__, inputData, or any other values that will be needed by your Service.
6. Click Save.
7. In the Actions control next to your Batch Definition in the list, select Schedule Batch Definition.
8. Your Batch will now be on the Manager and viewable in the Batch Schedule page on the Batch tab. It will wait until midnight, and then run the specified Service. When the Batch is running, you can monitor it on the Batch Admin page.