Share via


WrkCtrScheduler Class [AX 2012]

The WrkCtrScheduler class implements the base functionality for job scheduling.

Syntax

class WrkCtrScheduler

Run On

Server

Methods

  Method Description
Gg834573.pubmethod(en-us,AX.60).gif addExclusiveJobToSchedule Adds a job to an exclusive list of jobs of a certain order that should be scheduled.
Gg834573.protmethod(en-us,AX.60).gif addGroupProperties Adds the required properties to a property map.
Gg834573.protmethod(en-us,AX.60).gif addInfologMessage Adds an Infolog entry for an order that failed scheduling.
Gg834573.protmethod(en-us,AX.60).gif addInfologMessages Adds Infolog messages for the orders that failed scheduling and that have not been added to the reschedule queue.
Gg834573.protmethod(en-us,AX.60).gif addJobToOverlapJobList Adds a job to the overlap job list to be included when emitting the overlap constraint.
Gg834573.protmethod(en-us,AX.60).gif addPropertyAggregations Adds property aggregations to the scheduling engine.
Gg834573.protmethod(en-us,AX.60).gif addResourceGroupMembership Adds resource to resource group membership records to the scheduling engine data model.
Gg834573.protmethod(en-us,AX.60).gif addToRescheduleQueue Adds a WrkCtrParmSchedule record that contains the parameters that are used to schedule an order into the reschedule queue of the engine.
Gg834573.protmethod(en-us,AX.60).gif addToUpdatedOrdersMap Adds a new order to the map of updated orders.
Gg834573.pubmethod(en-us,AX.60).gif addWrkCtrParmSchedule Adds a WrkCtrParmSchedule record that contains the parameters that are used to schedule an order into the scheduling list of the engine.
Gg834573.protmethod(en-us,AX.60).gif applicableResourceGroupsFromResources Gets applicable resource groups from list of applicable resources.
Gg834573.protmethod(en-us,AX.60).gif blankRoute Retrieves a blank route operation record as a Common table buffer.
Gg834573.protmethod(en-us,AX.60).gif calculateResourcePriority Calculates the resource priority based on the requirements and the priority date.
Gg834573.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg834573.protmethod(en-us,AX.60).gif canSchedule Checks if an order can be scheduled.
Gg834573.pubmethod(en-us,AX.60).gif capacityRefType Retrieves the capacity reservation type.
Gg834573.protmethod(en-us,AX.60).gif capacityTypeReservation Retrieves the type of scheduling being done, job or operation scheduling, for a specific order scheduling parameters record.
Gg834573.protmethod(en-us,AX.60).gif checkSchedulingDirectionChange Checks whether the scheduling direction was changed during scheduling.
Gg834573.protmethod(en-us,AX.60).gif checkSingleJobSchedApplicableResources Checks that a resource meets the requirements of an operation in a specified time period when a job is scheduled.
Gg834573.protmethod(en-us,AX.60).gif cleanUpOrder Cleans up the order data when the scheduling fails.
Gg834573.pubmethod(en-us,AX.60).gif clearListWrkCtrParmSchedule Clears the list that contains all orders to schedule.
Gg834573.protmethod(en-us,AX.60).gif computeJobGoal Computes the job goal depending on the current bill of materials (BOM) level.
Gg834573.protmethod(en-us,AX.60).gif computeJobTime Computes the runtime of a job.
Gg834573.protmethod(en-us,AX.60).gif computeJobTimes Computes the runtime of a job for each resource in a specified list.
Gg834573.protmethod(en-us,AX.60).gif countNumberOfCapabilities Counts the number of capability requirements.
Gg834573.protmethod(en-us,AX.60).gif createBOMCalcData Creates an instance of the BOMCalcData class for a given order.
Gg834573.protmethod(en-us,AX.60).gif createEngine Creates the C# job scheduling engine and the appropriate engine data provider.
Gg834573.protmethod(en-us,AX.60).gif createTmpRoute Creates a temporary route operation record as a Common table buffer.
Gg834573.protmethod(en-us,AX.60).gif createTmpRouteJob Creates a temporary job record and returns it as a Common table buffer.
Gg834573.protmethod(en-us,AX.60).gif deleteAllTemporaryJobs Deletes all of the temporary jobs.
Gg834573.protmethod(en-us,AX.60).gif deleteTemporaryJob Deletes a temporary job.
Gg834573.pubmethod(en-us,AX.60).gif dispose Disposes of the resources that are held by the scheduling engine.
Gg834573.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg834573.protmethod(en-us,AX.60).gif findJobWrkCtrParmSchedule Finds the WrkCtrParmSchedule object for the order that a specific job belongs to.
Gg834573.protmethod(en-us,AX.60).gif findRefId Finds an order in the master data and returns the order record.
Gg834573.protmethod(en-us,AX.60).gif findWrkCtrParameters Determines the correct WrkCtrParametersDim for an order.
Gg834573.protmethod(en-us,AX.60).gif fixedJobTimesForResources Fills a map that contains a fixed job time for each resource in a given resource list.
Gg834573.pubmethod(en-us,AX.60).gif flushCachedSaveData Flushes the saved capacity reservation and the capacity reservation properties records to the database.
Gg834573.pubmethod(en-us,AX.60).gif getExclusiveJobList Gets a set of jobs that should be scheduled for a certain order, if only some of the jobs should be scheduled.
Gg834573.protmethod(en-us,AX.60).gif getProductionUnitAndWarehouse Retrieves the production unit and warehouse that is assigned to the route.
Gg834573.protmethod(en-us,AX.60).gif getResourceRequirement Gets the resource ID when the requirements map contains a resource requirement. Otherwise, an empty string is returned.
Gg834573.protmethod(en-us,AX.60).gif getResourceRequirementProperties Gets a map of requirement properties for the specific resource used by a given job.
Gg834573.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg834573.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg834573.protmethod(en-us,AX.60).gif handleCapacityConflicts Handles the capacity reservation conflicts.
Gg834573.protmethod(en-us,AX.60).gif handleRouteLessOrder Inserts a placeholder job to enable the engine to schedule orders without routes.
Gg834573.protmethod(en-us,AX.60).gif infologPrefixOprNum Retrieves the prefix to be displayed in the Infolog based on a specific job ID.
Gg834573.pubmethod(en-us,AX.60).gif init Initializes the engine variables.
Gg834573.pubmethod(en-us,AX.60).gif initCache Clears the scheduling engine caches.
Gg834573.protmethod(en-us,AX.60).gif initCapacityReservationData Fills the capacity reservation record with the appropriate scheduler data.
Gg834573.protmethod(en-us,AX.60).gif initCapResHandler Initializes the capacity reservation flags that are used to determine how overbooking checks are performed.
Gg834573.protmethod(en-us,AX.60).gif initNumTypes Initializes the typically used values for job types.
Gg834573.protmethod(en-us,AX.60).gif initOrderData Initializes the master data structures.
Gg834573.protmethod(en-us,AX.60).gif initOverlapMaps
Gg834573.protmethod(en-us,AX.60).gif initParallelJobsMap Initializes the map that tracks the parallel jobs for each job type.
Gg834573.protmethod(en-us,AX.60).gif inputWarehouse Retrieves the input warehouse ID for a specific operation record.
Gg834573.protmethod(en-us,AX.60).gif insertCalendarResource Inserts an scheduling engine resource into the scheduling engine.
Gg834573.protmethod(en-us,AX.60).gif insertEmptyJob Inserts an empty job to enable the engine to schedule jobless operations.
Gg834573.protmethod(en-us,AX.60).gif insertJob Inserts a job to be scheduled into the engine data pool.
Gg834573.protmethod(en-us,AX.60).gif insertJobAndConstraints Inserts jobs and constraints to be scheduled into the engine data pool.
Gg834573.protmethod(en-us,AX.60).gif insertJobGoalConstraints Creates constraints that depend on the scheduling goal for a given job.
Gg834573.protmethod(en-us,AX.60).gif insertLeadTimeJob Inserts a lead time job to enable the engine to schedule routeless orders.
Gg834573.protmethod(en-us,AX.60).gif insertNotOnSameResConstraints Emits constraints for jobs that should not be scheduled on the same resource.
Gg834573.protmethod(en-us,AX.60).gif insertOverlapLinks Inserts the links that are generated by the overlap jobs.
Gg834573.protmethod(en-us,AX.60).gif insertParallelJob Inserts a parallel job in the internal map that is used to track parallel jobs for each job type.
Gg834573.protmethod(en-us,AX.60).gif insertParallelJobsConstraints Emits all the constraints for all the parallel jobs of a certain type.
Gg834573.protmethod(en-us,AX.60).gif insertResource Inserts a resource into the resource list of the scheduling engine.
Gg834573.protmethod(en-us,AX.60).gif insertWrkCtrCapResUsingInsertList Inserts the given capacity reservation using the internal record insert list.
Gg834573.protmethod(en-us,AX.60).gif keyOrder Retrieves a value that can be used in maps that have the order ID as their key.
Gg834573.protmethod(en-us,AX.60).gif keyRoute Computes a key for an operation.
Gg834573.protmethod(en-us,AX.60).gif leadTimeParameters Computes the lead time parameters for a given order.
Gg834573.pubmethod(en-us,AX.60).gif limitCapPO Specifies whether the capacity reservations that are derived from planned orders will be included in the calculation of available capacity when scheduling is executed.
Gg834573.pubmethod(en-us,AX.60).gif limitCapProd Indicates whether the capacity reservations that are derived from production orders will be included in the calculation of available capacity when it executes scheduling.
Gg834573.pubmethod(en-us,AX.60).gif limitCapProject Specifies whether the reservations that are derived from projects will be included in the calculation of available capacity when executing scheduling.
Gg834573.protmethod(en-us,AX.60).gif limitedCapacity Computes whether limited capacity should be used when scheduling a certain order and using a specific resource.
Gg834573.protmethod(en-us,AX.60).gif limitedCapacityToDate Computes the capacity time fence for an order and a specific resource.
Gg834573.protmethod(en-us,AX.60).gif limitMaterialDate Enforces the rule that an operation cannot start earlier than the materials are available when scheduling with finite materials.
Gg834573.protmethod(en-us,AX.60).gif loadData Loads the data needed for the engine to schedule a list of production orders.
Gg834573.protmethod(en-us,AX.60).gif loadJobsDetail Loads the job information for the jobs of one operation into the scheduling engine.
Gg834573.protmethod(en-us,AX.60).gif loadOrder Loads data for one order that is scheduled.
Gg834573.protmethod(en-us,AX.60).gif loadPreviouslyUsedResources Loads the previously used resources for each primary operation.
Gg834573.pubmethod(en-us,AX.60).gif loadRoute Loads into the scheduling engine all information needed for scheduling a route for an order.
Gg834573.protmethod(en-us,AX.60).gif mustKeepJobResourceAssignment Computes a boolean value that indicates whether the current job resource assignment must be kept.
Gg834573.protmethod(en-us,AX.60).gif new Initializes a new instance of the WrkCtrScheduler class.
Gg834573.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg834573.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg834573.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg834573.protmethod(en-us,AX.60).gif onSaveJobsDone Occurs when the save operation for the jobs in the database is finished.
Gg834573.protmethod(en-us,AX.60).gif onSaveJobsStart Executes before a save operation starts for the scheduled jobs in the database.
Gg834573.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg834573.pubmethod(en-us,AX.60).gif parmCapResHandler Gets or sets the CapResHandler parameter.
Gg834573.pubmethod(en-us,AX.60).gif parmCheckLockingTTSLevel Gets or sets the CheckLockingTTSLevel parameter.
Gg834573.protmethod(en-us,AX.60).gif parmRefIdField Gets or sets the RefIdField parameter.
Gg834573.pubmethod(en-us,AX.60).gif parmReqPlanVersionRefRecId Gets or sets the ReqPlanVersionRefRecId parameter.
Gg834573.pubmethod(en-us,AX.60).gif parmResetWorkingTimesCacheForEachRun Gets or sets the ResetWorkingTimesCacheForEachRun parameter.
Gg834573.protmethod(en-us,AX.60).gif parmRouteOprNumField Gets or sets the RouteOprNumField parameter.
Gg834573.protmethod(en-us,AX.60).gif parmRouteRefIdField Gets or sets the RouteRefIdField parameter.
Gg834573.pubmethod(en-us,AX.60).gif parmSchedulingEngine Gets or sets the SchedulingEngine parameter.
Gg834573.pubmethod(en-us,AX.60).gif parmWrkCtrCapResConflictCheckIntervals Gets or sets the WrkCtrCapResConflictCheckIntervals parameter.
Gg834573.pubmethod(en-us,AX.60).gif parmWrkCtrCapResHandler Gets or sets the WrkCtrCapResHandler parameter.
Gg834573.protmethod(en-us,AX.60).gif prepareCapacityCheckIntervals Inserts the conflict check intervals.
Gg834573.protmethod(en-us,AX.60).gif processLastJob Performs post processing actions on the last inserted job for an order.
Gg834573.protmethod(en-us,AX.60).gif productionUnit Retrieves the production unit ID assigned to the resource or resource group previously used to schedule a specific operation.
Gg834573.protmethod(en-us,AX.60).gif refLineType The reference line type that is on the ReqTrans records for the current order.
Gg834573.protmethod(en-us,AX.60).gif requirementsAllowFastSetup Indicates whether the requirements support a fast setup.
Gg834573.pubmethod(en-us,AX.60).gif reset Resets the scheduler, preparing it for a new scheduling run.
Gg834573.pubmethod(en-us,AX.60).gif run Performs a scheduling run.
Gg834573.protmethod(en-us,AX.60).gif saveData Saves the data for all the scheduled orders to the AX database.
Gg834573.protmethod(en-us,AX.60).gif saveJobs Saves job information to the database.
Gg834573.protmethod(en-us,AX.60).gif saveOperation Saves the scheduling results for an operation to the database.
Gg834573.protmethod(en-us,AX.60).gif saveOrder Saves the scheduling results for an order.
Gg834573.protmethod(en-us,AX.60).gif saveOrdersAndRelated Saves order and related data.
Gg834573.protmethod(en-us,AX.60).gif saveRoutes Saves the route information, or operation information, to the database.
Gg834573.pubmethod(en-us,AX.60).gif schedStatus Retrieves the scheduling status, either Job scheduled or Operation scheduled, based scheduling method requested for a certain order.
Gg834573.pubmethod(en-us,AX.60).gif schedulingErrorOccured Indicates whether any errors occurred during scheduling.
Gg834573.protmethod(en-us,AX.60).gif schedulingProperties Retrieves the scheduling properties for a given activity requirement set, site and scheduling method.
Gg834573.pubmethod(en-us,AX.60).gif setCapacityConflictHandler Sets the capacity conflict handler that will be used during resource scheduling.
Gg834573.protmethod(en-us,AX.60).gif setResourceRequirementInRequirementMap Sets the properties map entry for the current operation priority to a specific resource requirement.
Gg834573.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg834573.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg834573.protmethod(en-us,AX.60).gif transferBatchTimeToProcessTimeRatio Determines the ratio between the time that is required to process one transferrable batch and the total time of the specified operation.
Gg834573.protmethod(en-us,AX.60).gif updateRequirementSetAndPropertiesMaps Updates the maps of the requirements and properties.
Gg834573.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg834573.protmethod(en-us,AX.60).gif validateCapacityConflicts Validates capacity reservation conflicts.
Gg834573.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg834573.protmethod(en-us,AX.60).gif writeAllCapacityReservationProperties Writes all of the properties of an object to the WrkCtrCapResProperty table.
Gg834573.pubmethod(en-us,AX.60).gif writeCapacityReservation Writes a capacity reservation record to the database.
Gg834573.protmethod(en-us,AX.60).gif writeJobCapacityReservations Writes the capacity reservations for one job to the database.
Gg834573.pubmethod(en-us,AX.60).gif writeJobData Writes the job data to the database.
Gg834573.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg834573.pubmethod(en-us,AX.60).gif Gg834573.static(en-us,AX.60).gif ::construct Initializes a new instance of the WrkCtrScheduler class.
Gg834573.pubmethod(en-us,AX.60).gif Gg834573.static(en-us,AX.60).gif ::incrementWrkCtrCapResTimestamp Increments the timestamp value to be used for capacity reservations timestamps.Holds a lock on WrkCtrSchedulerLock until the transaction is completed.
Gg834573.pubmethod(en-us,AX.60).gif Gg834573.static(en-us,AX.60).gif ::newRefType Creates a new engine based on the type of order that has to be scheduled.
Gg834573.pubmethod(en-us,AX.60).gif Gg834573.static(en-us,AX.60).gif ::propertyHashtable Converts a Map object that contains job requirement properties to a System.Collections.Hashtable object.
Gg834573.protmethod(en-us,AX.60).gif Gg834573.static(en-us,AX.60).gif ::resourceAsList Creates a list that contains only one resource identifier.

Top

Remarks

This class can be specialized to implement specific job scheduling needs, such as production orders scheduling.

Inheritance Hierarchy

Object Class
  WrkCtrScheduler Class
    WrkCtrScheduler_Prod Class
    WrkCtrScheduler_Proj Class
    WrkCtrScheduler_Req Class