Workflow Batch Processing
For an Application Engine program to trigger a business event, it must pass its data to a component interface, and the component interface must then trigger Workflow PeopleCode in a component. Therefore, to set up batch processing, you must set up all three stages of the process:
-
Create the Application Engine program that queries the database.
-
Define a component interface that maps the results to a page.
You decide whether to enter new data on a page. For example, you can create a separate table for tracking overdue invoices. Alternatively, you can use the Save method in the component interface to force PeopleCode to run without entering data on the page. In this case, you set up PeopleCode in your main invoice record and use the component interface Save method to run that PeopleCode when the invoice is overdue (without affecting the data).
-
Create the Workflow PeopleCode that triggers the appropriate business event.