Share via


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.
  • _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

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.

See Also

Reference

WrkCtrScheduler Class