JmgCleanupTermReg.run Method [AX 2012]
This method must contain the code that does the actual job of the class. Initializes the query, and executes the cleanup of JmgTermReg or JmgTermRegArchive table.
Syntax
public void run()
Run On
Called
Examples
The following example demonstrates the use of this method.
myRunbase myRunbase;
myRunbase = myRunbase::construct();
if (myRunbase.prompt())
{
myRunbase.run();
//...
}
public void run()
{
if (! this.validate())
{
throw Error("Error message...");
}
try
{
ttsbegin;
ttscommit;
}
catch (exception::DeadLock)
{
retry;
}
}