You can schedule the custom batch job using the Schedule Data Consistency check dialog box.
When you submit a job for any custom batch commands in .NET, you must first define a JobCreator class, which allows the API to display the Schedule Data Consistency check dialog box. The JobCreator class also allows you to submit the batch job to the Intergraph Batch Server.
The Schedule Data Consistency check dialog box provides information to the Intergraph Batch Server, such as the queue on which the batch job is submitted, scheduling properties, and mail notification options.
-
Create a JobCreator class to use the following APIs to submit a custom batch job:
-
Initialize - Initializes the job.
-
ShowSchedule - Opens the Schedule Data Consistency Check Dialog Box.
After the above APIs are defined, the Schedule Data Consistency Check dialog box displays:
-
-
After selecting all the inputs, click OK.
The Ok_Clicked event handler displays, allowing you to create the required inputs to execute the batch job in .xml format.
-
In the OK_Clicked handler, call the AddBatchRequest method, which takes command line arguments in .xml format.
-
Create an .xml file with all the required inputs for the job and save your changes.