Axaptapedia is now maintained by AgileCadence For more information please click here.
Talk:RunBaseBatch
From Axaptapedia
pack() and unpack() without user parameters[edit]
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:
<xpp> public container pack() {
return conNull();
}
public boolean unpack(container packedClass) {
return true;
} </xpp>