JmgTermJob Class [AX 2012]

The JmgTermJob class represents a job in the Shop Floor Control.

Syntax

class JmgTermJob

Run On

Called

Methods

  Method Description
Gg758044.pubmethod(en-us,AX.60).gif actOprId This method retrieves the operation or activity ID associated with the job.
Gg758044.pubmethod(en-us,AX.60).gif allow Determines whether employees can register on the job.
Gg758044.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg758044.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg758044.pubmethod(en-us,AX.60).gif estimatedHours Retrieves the estimated job time.
Gg758044.pubmethod(en-us,AX.60).gif function Retrieves the function that is associated with the job.
Gg758044.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg758044.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg758044.protmethod(en-us,AX.60).gif init Part of the initialization procedure of an instance. The method is called by the JmgTermJob::construct Method and JmgTermJob::constructJobTable Method.
Gg758044.protmethod(en-us,AX.60).gif initCommon This method initializes the common fields in a JmgTermReg record, which is created when a registration is made.
Gg758044.protmethod(en-us,AX.60).gif initSourceData Loads the source data, upon which the job is based, into memory.
Gg758044.pubmethod(en-us,AX.60).gif isValidJobId This method returns whether an instance of the JmgTermJob Class is based on a valid job ID.
Gg758044.pubmethod(en-us,AX.60).gif jmgJobTable Retrieves the JmgJobTable record, which is associated to the job.
Gg758044.pubmethod(en-us,AX.60).gif jobDescription This method returns a description of the job.
Gg758044.pubmethod(en-us,AX.60).gif jobId This method returns the job ID which identifies this job.
Gg758044.pubmethod(en-us,AX.60).gif jobRef Returns the job reference of the job.
Gg758044.pubmethod(en-us,AX.60).gif jobStatus Retrieves the status of a job.
Gg758044.pubmethod(en-us,AX.60).gif jourRegType Returns the journal registration type to which this kind of job corresponds.
Gg758044.pubmethod(en-us,AX.60).gif makeFeedback This method is used to provide feedback on a started job.
Gg758044.pubmethod(en-us,AX.60).gif makeRegistration This method creates a start or a stop job registration on this job.
Gg758044.pubmethod(en-us,AX.60).gif module This method returns the module from where the job originates.
Gg758044.pubmethod(en-us,AX.60).gif new Initializes a new instance of the JmgTermJob class.
Gg758044.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.)
Gg758044.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.)
Gg758044.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg758044.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg758044.pubmethod(en-us,AX.60).gif pmfCanHaveCoProducts Indicates whether the job can have co-product outputs.
Gg758044.pubmethod(en-us,AX.60).gif pmfIsBatchOrderJob Indicates whether the term job belongs to the batch order.
Gg758044.protmethod(en-us,AX.60).gif registrationError This method is invoked if an error occurs when a registration on the job is created. It throws an error that has the specified error message. If special handling of registration errors is necessary for a specific type of job, this method should be overridden.
Gg758044.pubmethod(en-us,AX.60).gif reportedFinish This method returns whether the job is reported as finished in Shop Floor Control.
Gg758044.pubmethod(en-us,AX.60).gif reportedStarted This method returns whether the job has been reported as started.
Gg758044.pubmethod(en-us,AX.60).gif requireFeedbackInfo This method returns whether any additional feedback is needed. A set of feedback parameters is supplied to the method and based on these parameters it is determined whether additional feedback is required to make a stop registration on the job.
Gg758044.pubmethod(en-us,AX.60).gif requireStartupInfo This method returns whether any additional startup information is needed. A set of startup parameters is supplied to the method and based on these parameters it is determined whether additional feedback is required to make a start registration on the job.
Gg758044.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg758044.pubmethod(en-us,AX.60).gif signType This method returns the type of registration associated with this job.
Gg758044.pubmethod(en-us,AX.60).gif sourceData This method provides access to the source data record from which the job originates.
Gg758044.pubmethod(en-us,AX.60).gif stampType Returns the stamp type associated with this job.
Gg758044.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg758044.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.)
Gg758044.pubmethod(en-us,AX.60).gif validateStampJournalTransWrite Validates a JmgStampJournalTrans record.
Gg758044.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg758044.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg758044.pubmethod(en-us,AX.60).gif Gg758044.static(en-us,AX.60).gif ::commonJob This static method is used to retrieve the source data record from which the supplied job ID originates.
Gg758044.pubmethod(en-us,AX.60).gif Gg758044.static(en-us,AX.60).gif ::construct This method creates a new instance of the JmgTermJob subclasses. Based on the specified job ID, an instance of the appropriate subclasses is returned.
Gg758044.pubmethod(en-us,AX.60).gif Gg758044.static(en-us,AX.60).gif ::constructJobTable This method constructs a new instance of the JmgTermJob class based on a JmgJobTable record. Based on the jobId field of the JmgJobTable table, an instance of the appropriate subclass is returned.

Top

Remarks

A Shop Floor Control handles different types of jobs: absence jobs, indirect production jobs, and project jobs. This class provides a uniform way to retrieve information about jobs and create employee registrations on jobs.The JmgTermJob class is an abstract class. Each of the subclasses that are mentioned in the See Also section represent a type of job. Any instance of the JmgTermJob subclasses should be created by using either the JmgTermJob::construct or JmgTermJob::constructJobTable static methods. If the supplied job ID or JmgJobTable record represents an invalid job, such as when the job ID is not valid, no error is thrown. Instead, an instance of the JmgTermJob_illegal class is returned.

Examples

The following examples show how to do the do the following tow tasks:

  • Print the job description associated to job ID ‘10000007’ in an Infolog.

  • Create a start job registration on job ID '10000007' for employee 'EBA'.

//Example 1 
JmgTermJob jmgTermJob; 
; 
jmgTermJob = JmgTermJob::construct('10000007'); 
info(jmgTermJob.jobDescription()); 
 
//Example 2 
JmgTermJob jmgTermJob; 
; 
jmgTermJob = JmgTermJob::construct('10000007'); 
jmgTermJob.makeRegistration(jmgWorkerRecId, today(), timeNow());

Inheritance Hierarchy

Object Class
  JmgTermJob Class
    JmgTermJob_HRMAbsence Class
    JmgTermJob_illegal Class
    JmgTermJob_IPC Class
    JmgTermJob_Prod Class
    JmgTermJob_Proj Class

See Also

JmgTermJob_HRMAbsence Class

JmgTermJob_illegal Class

JmgTermJob_IPC Class

JmgTermJob_Prod Class

JmgTermJob_Proj Class