Technical description
Job Queue Pattern requires us to wrap the process into a Codeunit that takes a Job Queue Entry as a parameter. This Codeunit then follows a number of steps.
Preprocessing
During this step, we can test if the Job Queue Entry table contains the information that we need.
Getting records
The Job Queue Entry contains a Record ID that allows us to read a record from a specific table. This record will be the one to be processed.
The Main function
In this step, we execute the automated process. Each process in Dynamics NAV should be designed to be wrapped in a Job Queue Entry, and should therefore avoid any runtime decisions; or if any, they should be omitted.
Note
Runtime decisions are the implementations of STRMENU, CONFIRM, or the running MODAL page objects.
Try to avoid the code cloning of the main function to allow running via the Job Queue Entry.
The following illustrates the structure of the Job Queue Entry Codeunits:
Post-processing
Specific...