Share via


JournalRunBaseBatch.pack Method [AX 2012]

Serializes the current instance of the JournalRunBaseBatch class.

Syntax

public container pack()

Run On

Called

Return Value

Type: container
A container that contains the current instance of the JournalRunBaseBatch class.

Remarks

All variables that are required to re-instantiate the class after the constructed class must be packed. A macro declared in the class declaration is used to list the variables to pack. Another macro holds a version number. This number refers to the version of the variable list. When a new variable is introduced, you should follow these steps:

  1. Increment the version number in the version macro.

  2. Copy the current list to the unpack method.

  3. Add the new variable to the bottom of the list.

  4. Recompile the class.

When the isSwappingPrompt method returns a value of true, you may have to pack some prompt-related variables.

See Also

JournalRunBaseBatch Class

SysPackable.pack Method

RunBase.unpack Method

Tutorial_RunbaseBatch Class

Pack-Unpack Design Pattern