JmgTermJob.initSourceData Method [AX 2012]
Loads the source data, upon which the job is based, into memory.
Syntax
protected abstract void initSourceData(JmgJobTable _jmgJobTable, [Common _sourceData])
Run On
Called
Parameters
- _jmgJobTable
Type: JmgJobTable Table
The JmgJobTable record with the corresponding job ID.
- _sourceData
Type: Common Table
If the source data has already been fetched from the database, it can be supplied as a parameter; optional.
Remarks
This method is part of the initialization procedure of an instance.
For example, for a production job, this method fetches the corresponding ProdRouteJob record from the database and stores it in memory.
The method is declared abstract, and must be implemented for each type of job. The method is invoked from the JmgTermJob.init Method.
Examples
This example shows how the method is used from the JmgTermJob.init Method.
// From classes\JmgTermJob\init
protected void init(
JmgJobId _jmgJobId,
JmgJobTable _jmgJobTable,
Common _sourceData)
{
jobid = _jmgJobId;
jmgJobTable = _jmgJobTable;
this.initSourceData(_jmgJobTable, _sourceData);
}