WrkCtrScheduler.loadJobsDetail Method [AX 2012]
Loads the job information for the jobs of one operation into the scheduling engine.
Syntax
protected container loadJobsDetail(
WrkCtrParmSchedule _wrkCtrParmSchedule,
Common _order,
BOMCalcData _bomCalcData,
RouteMap _routeMap,
InventSiteId _siteId,
Common _orderNext,
BOMLevel _startCollectRefLevel,
BOMLevel _maxCollectRefLevel,
RecId _jobNumNextOprFirst,
RecId _jobNumNextOprLast)
Run On
Server
Parameters
- _wrkCtrParmSchedule
Type: WrkCtrParmSchedule Class
A WrkCtrParmSchedule table buffer that contains all the scheduling parameters that are required to schedule the order.
- _order
Type: Common Table
A record that contains the data for the order being scheduled (a ProdTable record, a ReqTrans record, etc.).
- _bomCalcData
Type: BOMCalcData Class
An instance of the BomCalcData class that is used to calculate the runtime of the job.
- _routeMap
Type: RouteMap Map
A RouteMap map that contains the operation data.
- _siteId
Type: InventSiteId Extended Data Type
The ID of the site stamped on the order.
- _orderNext
Type: Common Table
A record that contains the data for the next (reference) order.
- _startCollectRefLevel
Type: BOMLevel Extended Data Type
The start BOM level to use for determining the job goals.
- _maxCollectRefLevel
Type: BOMLevel Extended Data Type
The maximal BOM level to use for determining the job goals.
- _jobNumNextOprFirst
Type: RecId Extended Data Type
The Record ID of the first job of the next operation.
- _jobNumNextOprLast
Type: RecId Extended Data Type
The Record ID of the last job of the next operation.
Return Value
Type: container
A container that contains the Record ID values for the first and last job.
Exceptions
Exception | Condition |
---|---|
Error | The resource that is specified as target resource for an operation is already in the scheduling that operation. |