Modifying Forms to Submit Tasks to the Background Queue
Use these steps to include a task that runs in the background on a form.
The application runs reports as background tasks that are placed on a "queue" to be run in order. You can also set up other tasks to run in the background. The TaskMan service polls the list of Active Background Tasks and executes any new task that is posted to the queue with a status of READY.
For more information about TaskMan, see the Administration Guide or Creating and Customizing Reports.
-
To set up the form where you want the background task to run:
-
To create a background task:
- Call your new background task as an event handler from the form.
- You can see which tasks are currently running by opening the Active Background Tasks form.
After TaskMan has completed the task, even if it fails, you can view details about its execution on the Background Task History form. Details include:
- Task description
- Return status
- User who submitted the task
- Messages triggered by the task