Try OpenEdge Now
skip to main content
BPM Events User's Guide
Persistent structures : Persistent maps : Accessing persistent maps and map instances
 

Accessing persistent maps and map instances

Rules (from the same application or from another application) may require accessing persistent maps / map instances defined in a different module. Assume the infopad UserCls is defined in module M1, and that a rule in module M2 requires accessing it. Both, M1 and M2 are defined for the application A1. In such a case, write the module M2 as follows:
*It must import the module M1. This is done in the header of M2: (M2 import M1)
*Qualify each reference to the persistent map in M2 by the imported module name M1::UserCls. In case M1 and M2 belong to different applications, then qualify each reference in addition to the foreign application name: A1::M1::UserCls.
Note: In the current Business Process Server version, it is not possible to have "circular" imports, that is, M1 imports M2 and M2 imports M1. This means that if M2 can access persistent map defined in M1, then the reverse is not possible.