Use a programming technique based on functions and infopads, as illustrated in
Recovery of global variables and file handling, to recover the value of variables.
Note: When writing in a file (other than
bpmevents.log) after recovery, rewrite the file if it has been open as for an initial loading.
Recovery of global variables and file handling shows how the initial file opening statement may distinguish the context of its execution, whether upon recovery or upon normal module loading.