JmgTransaction Class [AX 2012]
The JmgTransaction class provides an interface for time and attendance to read time registrations from other modules and post changes to time registrations in other modules.
Syntax
class JmgTransaction
Run On
Called
Methods
Method | Description | |
---|---|---|
addTransactionsToJmgStampJournalTrans | Adds transactions to the specified JmgStampJournalTrans temporary buffer based on a worker ID, and start and end date time. | |
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
new | Initializes a new instance of the Object class. (Inherited from Object.) | |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) | |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) | |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) | |
owner | Returns the instance that owns the object. (Inherited from Object.) | |
postChange | Posts changes that were made in time and attendance back to the originating modules. | |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
toString | Returns a string that represents the current object. (Inherited from Object.) | |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) | |
wait | Pauses a process. (Inherited from Object.) | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
::constructJourRegType | Retrieves an instance of a JmgTransaction subclass based on the specified type. | |
::getListOfTransactionTypes | Gets the list of transaction types currently known to the time and attendance calculation engine. | |
::getTransactions | Retrieves transactions from known transaction types. | |
::postChanges | Posts changes to time transactions made in time and attendance back to originating modules. |
Top
Remarks
Each subclass to this class allows the time and attendance calculation engine to handle time transactions from other modules. This means that reading registrations from other modules, and posting changes that were made in time and attendance back to the originating modules. To allow the time and attendance calculation engine to handle time registrations from other modules, the following must be done:
Create a new subclass of the JmgTransaction class.
Override the methods addTransactionsToJmgStampJournalTrans and postChanges.
Add an entry in the list returned by the getListOfTransactionTypes method in the JmgTransaction class.
Inheritance Hierarchy
Object Class
JmgTransaction Class
JmgTransaction_Absence Class
JmgTransaction_IPC Class
JmgTransaction_Prod Class
JmgTransaction_Proj Class
JmgTransaction_TAA Class