JournalCheckPost.pack Method [AX 2012]

Serializes the current instance of the JournalCheckPost class.

Syntax

public container pack()

Run On

Called

Return Value

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

Remarks

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

  1. Increment the version number that is in the version macro.

  2. Copy the current list to the unpack method. Add the new variable to the bottom of the list.

  3. Recompile the class.

If the isSwappingPrompt method returns true, you may have to pack some prompt-related variables.

See Also

JournalCheckPost Class

SysPackable.pack

unpack

Tutorial_RunbaseBatch

isSwappingPrompt

Pack-Unpack Design Pattern