BatchTaskBundleAssembler Class [AX 2012]
The BatchTaskBundleAssembler class assembles derivatives of the BatchTaskBundle class and then schedules them for execution.
| Method | Description | |
|---|---|---|
| addTask | Adds a task to a bundle. |
| 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 | Creates a new instance of the BatchTaskBundleAssembler class. |
| 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.) |
| scheduleBundledTasks | Schedules the bundled tasks to be executed by the batch framework. |
| 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.) |
| ::construct | Constructs a new instance of the BatchTaskBundleAssembler class. |
This class is the interface of the batch task bundling framework. The tasks bundled by instances of this class must have the following properties:
-
Self recoverable - The process orchestrated by the task must persist state to the database so that in can be executed any number of times without ill effects.
-
Independent - There can be no order of execution dependencies between tasks.
-
Must fully implement the SysPackable interface - The pack and unpack methods and the static create method must be implemented. Every class field accessed in the run method of the task must be fully serialized.