Share via


EventProcessorDueDate Class [AX 2012]

The EventProcessorDueDate class executes the one due-date rule.

Syntax

class EventProcessorDueDate

Run On

Called

Methods

  Method Description
Gg744505.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg744505.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg744505.privmethod(en-us,AX.60).gif executeActions
Gg744505.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg744505.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg744505.privmethod(en-us,AX.60).gif isAccessible
Gg744505.privmethod(en-us,AX.60).gif new Initializes a new instance of the EventProcessorDueDate class.
Gg744505.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.)
Gg744505.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.)
Gg744505.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg744505.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg744505.pubmethod(en-us,AX.60).gif parmRuleInstanceTypeCache Gets or sets the RuleInstanceTypeCache parameter.
Gg744505.privmethod(en-us,AX.60).gif processRecord
Gg744505.privmethod(en-us,AX.60).gif processRule
Gg744505.pubmethod(en-us,AX.60).gif run Creates the entry point for the EventProcessorDueDate class.
Gg744505.pubmethod(en-us,AX.60).gif setStartDate
Gg744505.pubmethod(en-us,AX.60).gif setStartUtcDateTime
Gg744505.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg744505.privmethod(en-us,AX.60).gif subTypes
Gg744505.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg744505.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.)
Gg744505.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg744505.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg744505.pubmethod(en-us,AX.60).gif Gg744505.static(en-us,AX.60).gif ::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

See Also

EventJobDueDate Class