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.
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;
}
}
Community Additions
ADD
Show: