WrkCtrScheduler.computeJobTimes Method [AX 2012]
Computes the runtime of a job for each resource in a specified list.
Syntax
protected Map computeJobTimes(
WrkCtrParmSchedule _wrkCtrParmSchedule,
Common _jobRecord,
RouteMap _route,
RouteOprMap _routeOpr,
RouteJobType _jobType,
List _resources,
BOMCalcData _bomCalcData,
boolean _useJobTime,
[ProdJobType _prodJobType,
boolean _useCalcJobSchedJobTime,
ItemId _itemId,
InventDimId _inventDimId])
Run On
Server
Parameters
- _wrkCtrParmSchedule
Type: WrkCtrParmSchedule Class
A WrkCtrParmSchedule object that contains the order scheduling parameters for the job that belongs to the order.
- _jobRecord
Type: Common Table
A Common table buffer that contains the job record.
- _route
Type: RouteMap Map
- _routeOpr
Type: RouteOprMap Map
- _jobType
Type: RouteJobType Enumeration
A RouteJobType enumeration value that specifies the type of job to schedule.
- _resources
Type: List Class
A list that has all resources on which the job can be scheduled.
- _bomCalcData
Type: BOMCalcData Class
A BOMCalcData object that is used to calculate the runtimes of the job.
- _useJobTime
Type: boolean
true if the job time should be used; otherwise, false if the job time should be 0.
- _prodJobType
Type: ProdJobType Class
A ProdJobType object that can be used to compute the runtime of the job.
- _useCalcJobSchedJobTime
Type: boolean
- _itemId
Type: ItemId Extended Data Type
- _inventDimId
Type: InventDimId Extended Data Type
Return Value
Type: Map Class
A Map object that contains the resource and job time pairs.
Exceptions
Exception | Condition |
---|---|
Error | The resources parameter is invalid. |