JmgPayStatAdjustBalance.run Method [AX 2012]

Contains the code that does the actual job of the class.

public void run()

Run On

Called

Based on the selected type of adjustment, one of the following methods is called:

  1. The JmgPayStatAdjustBalance.adjustBalance or JmgPayStatBalanceAdjustmentType::Balance method.

  2. The JmgPayStatAdjustBalance.adjustOpeningBalance or JmgPayStatBalanceAdjustmentType::OpeningBalance method.

  3. The JmgPayStatAdjustBalance.setAdjustment or JmgPayStatBalanceAdjustmentType::Adjustment method.

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: