Progress
ADM 2 Guide
Super Procedures in the ADM
In the ADM, a super procedure is a persistent procedure that contains versions of internal procedures or functions designed to be run remotely on behalf of SmartObjects. The use of super procedures provides a measure of inheritance and the ability to customize each internal procedure or function. Figure 1–4, which illustrates the inheritance process, shows how different versions of the same internal entry (in this example, the initializeObject procedure) exist in different super procedures.
Figure 1–4: Inheritance and the Super Procedure Stack
![]()
The super procedures designed for SmartObjects are designed to be shared and stateless. This means that a given super procedure such as
viewer.p
is run only once in a session, no matter how many SmartDataViewers there are; each SmartDataViewer designates the same instance of the compiled code forviewer.p
as its super procedure.ADM super procedures utilize the Progress 4GL SOURCE–PROCEDURE and TARGET–PROCEDURE functions to provide information to their routines about who called them and for whom:
For more information on the SOURCE–PROCEDURE and TARGET–PROCEDURE functions, see the Progress Language Reference.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |