Talk:RunBaseBatch

From Axaptapedia

Jump to: navigation, search

[edit] pack() and unpack() without user parameters

In some instances it is necessary to make a batchable class without the need to save user parameters which are serialized for later use during execution. In this scenario there is nothing for the pack() and unpack() methods to do, but they still need to be overridden. The pack() and unpack() methods can be implemented as follows:

public container pack()
{
    return conNull();
}
 
public boolean unpack(container packedClass)
{
    return true;
}
Personal tools
Microsoft Community
Microsoft Dynamics Ax Community