WrkCtrScheduler.insertJobAndConstraints Method [AX 2012]
Inserts jobs and constraints to be scheduled into the engine data pool.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
protected container insertJobAndConstraints(
RouteJobMap _routeJobMap,
WrkCtrParmSchedule _wrkCtrParmSchedule,
ProdUnitId _prodUnitId,
InventLocationIdInput _inputWarehouse,
Map _requirementProperties,
Map _jobTimes,
WrkCtrActivityRequirementSet _wrkCtrActivityRequirementSet,
OprNum _oprNumNext,
ProdJobType _prodJobType,
RouteGroup _routeGroup,
WrkCtrSchedulerGoal _goal,
boolean _useFastSetup,
real _jobTimeForAllResources,
RecId _jobNumPrev,
Map _mapJobNumPrevNumPrimSec,
List _resourceList,
boolean _isFirstJob,
RouteJobType _jobTypePrev,
SchedJobLink _primaryLink,
SchedJobLinkType _primaryLinkType,
RecId _jobNumFirst,
[RecId _primaryParallelJobRecId])
Microsoft Dynamics AX 2012 R2 (SYS)
protected container insertJobAndConstraints(
RouteJobMap _routeJobMap,
WrkCtrParmSchedule _wrkCtrParmSchedule,
ProdUnitId _prodUnitId,
InventLocationIdInput _inputWarehouse,
Map _requirementProperties,
Map _jobTimes,
WrkCtrActivityRequirementSet _wrkCtrActivityRequirementSet,
OprNum _oprNumNext,
ProdJobType _prodJobType,
RouteGroup _routeGroup,
WrkCtrSchedulerGoal _goal,
boolean _useFastSetup,
real _jobTimeForAllResources,
RecId _jobNumPrev,
Map _mapJobNumPrevNumPrimSec,
List _resourceList,
boolean _isFirstJob,
RouteJobType _jobTypePrev,
SchedJobLink _primaryLink,
SchedJobLinkType _primaryLinkType,
RecId _jobNumFirst)
Microsoft Dynamics AX 2012 Feature Pack (SYS)
protected container insertJobAndConstraints(
RouteJobMap _routeJobMap,
WrkCtrParmSchedule _wrkCtrParmSchedule,
ProdUnitId _prodUnitId,
InventLocationIdInput _inputWarehouse,
Map _requirementProperties,
Map _jobTimes,
WrkCtrActivityRequirementSet _wrkCtrActivityRequirementSet,
OprNum _oprNumNext,
ProdJobType _prodJobType,
RouteGroup _routeGroup,
WrkCtrSchedulerGoal _goal,
boolean _useFastSetup,
real _jobTimeForAllResources,
RecId _jobNumPrev,
Map _mapJobNumPrevNumPrimSec,
List _resourceList,
boolean _isFirstJob,
RouteJobType _jobTypePrev,
SchedJobLink _primaryLink,
SchedJobLinkType _primaryLinkType,
RecId _jobNumFirst)
Microsoft Dynamics AX 2012 (FPK)
protected container insertJobAndConstraints(
RouteJobMap _routeJobMap,
WrkCtrParmSchedule _wrkCtrParmSchedule,
ProdUnitId _prodUnitId,
InventLocationIdInput _inputWarehouse,
Map _requirementProperties,
Map _jobTimes,
WrkCtrActivityRequirementSet _wrkCtrActivityRequirementSet,
OprNum _oprNumNext,
ProdJobType _prodJobType,
RouteGroup _routeGroup,
WrkCtrSchedulerGoal _goal,
boolean _useFastSetup,
real _jobTimeForAllResources,
RecId _jobNumPrev,
Map _mapJobNumPrevNumPrimSec,
List _resourceList,
boolean _isFirstJob,
RouteJobType _jobTypePrev,
SchedJobLink _primaryLink,
SchedJobLinkType _primaryLinkType,
RecId _jobNumFirst)
Microsoft Dynamics AX 2012 (SYS)
protected container insertJobAndConstraints(
RouteJobMap _routeJobMap,
WrkCtrParmSchedule _wrkCtrParmSchedule,
ProdUnitId _prodUnitId,
InventLocationIdInput _inputWarehouse,
Map _requirementProperties,
Map _jobTimes,
WrkCtrActivityRequirementSet _wrkCtrActivityRequirementSet,
OprNum _oprNumNext,
ProdJobType _prodJobType,
RouteGroup _routeGroup,
WrkCtrSchedulerGoal _goal,
boolean _useFastSetup,
real _jobTimeForAllResources,
RecId _jobNumPrev,
Map _mapJobNumPrevNumPrimSec,
List _resourceList,
boolean _isFirstJob,
RouteJobType _jobTypePrev,
SchedJobLink _primaryLink,
SchedJobLinkType _primaryLinkType,
RecId _jobNumFirst)
Run On
Server
Parameters
- _routeJobMap
Type: RouteJobMap Map
A RouteMap table map that contains the current route.
- _wrkCtrParmSchedule
Type: WrkCtrParmSchedule Class
A WrkCtrParmSchedule object that contains the order scheduling parameters for the order to which the job belongs.
- _prodUnitId
Type: ProdUnitId Extended Data Type
The production unit to use for filtering resources that are available for scheduling.
- _inputWarehouse
Type: InventLocationIdInput Extended Data Type
The input warehouse to use for filtering resources that are available for scheduling.
- _requirementProperties
Type: Map Class
A Map that contains all the properties that the resource or working time should have to run the job.
- _jobTimes
Type: Map Class
A Map that contains all the resources on which the job can be scheduled and the runtime of the job on each resource.
- _wrkCtrActivityRequirementSet
Type: WrkCtrActivityRequirementSet Table
A WrkCtrActivityRequirementSet record that is connected to the operation data.
- _oprNumNext
Type: OprNum Extended Data Type
An OprNum value that specifies the next operation number.
- _prodJobType
Type: ProdJobType Class
A RouteJobType value that specifies the type of job to schedule (Setup, Process, etc.).
- _routeGroup
Type: RouteGroup Table
A RouteGroup table buffer that defines the run time calculation parameters.
- _goal
Type: WrkCtrSchedulerGoal Enumeration
A WrkCtrSchedulerGoal value that specifies the goal to use for scheduling the job.
- _useFastSetup
Type: boolean
A Boolean value that indicates whether fast setup should be used.
- _jobTimeForAllResources
Type: real
A number that determines the runtime for all resources when fast setup is used.
- _jobNumPrev
Type: RecId Extended Data Type
The Record ID identifier of the previous job.
- _mapJobNumPrevNumPrimSec
Type: Map Class
A Map that contains the already created jobs.
- _resourceList
Type: List Class
A List of all applicable resources.
- _isFirstJob
Type: boolean
A Boolean value that indicates whether the job is the first job.
- _jobTypePrev
Type: RouteJobType Enumeration
A RouteJobType enumeration value that specifies the previous job type.
- _primaryLink
Type: SchedJobLink Enumeration
A SchedJobLink enumeration value that specifies the primary link.
- _primaryLinkType
Type: SchedJobLinkType Enumeration
A SchedJobLinkType enumeration that specifies the primary link type.
- _jobNumFirst
Type: RecId Extended Data Type
A Record ID identifier that specifies the first job.
- _primaryParallelJobRecId
Type: RecId Extended Data Type
Return Value
Type: container
A Container that contains the new job state.