Try OpenEdge Now
skip to main content
BPM Events User's Guide
The rule language : Predefined rule actions : println(): Printing values to a file : Recovery considerations
 
Recovery considerations
Use the Global values, like outputFile above, with caution. The initialization statement that is associated with their declaration is re-executed when the module is recovered. This is not always desirable, as variables do not recover their latest state, if they have been modified after initialization.
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.