EventProcessorDueDate Class [AX 2012]
The EventProcessorDueDate class executes the one due-date rule.
Syntax
class EventProcessorDueDate
Run On
Called
Methods
Method | Description | |
---|---|---|
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.) | |
executeActions | ||
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
isAccessible | ||
new | Initializes a new instance of the EventProcessorDueDate 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.) | |
parmRuleInstanceTypeCache | Gets or sets the RuleInstanceTypeCache parameter. | |
processRecord | ||
processRule | ||
run | Creates the entry point for the EventProcessorDueDate class. | |
setStartDate | ||
setStartUtcDateTime | ||
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
subTypes | ||
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 | Creates an instance of the class. |
Top
Remarks
The entry point is the EventProcessorDueDate.run method. First, it performs security checks. If the security checks pass, it calls the EventType::construct Method to instantiate an EventTypeDue class.
Then, it loops over a query that is created using the filter stored for the rule, and calls EventType.isMatchingRule for each record. If the isMatchingRule method returns true, a new transaction begins, an EventAction class is instantiated and executed, and the transaction is committed.
The successful execution of the action is registered in the EventRuleIgnore table.
This class only processes rules building on event types that are an EventTypeDue class or inherit from that class.
Examples
static void example()
{
eventProcessorDueDate eventProcessor;
eventRule eventRule;
eventRule = EventRule::find(eventRuleId);
eventProcessor.run(eventRule);
}
Inheritance Hierarchy
Object Class
EventProcessorDueDate Class