Kbase P12242: Can shared variables be used with SmartObjects ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/15/2007 |
|
Status: Verified
GOAL:
Can shared variables be used with SmartObjects ?
GOAL:
Is it possible to rely on shared variables to pass data between SmartObjects ?
FACT(s) (Environment):
Progress 9.x
FIX:
SmartObjects are encapsulated in that each SmartObject contains all of the information relevant to itself and the actions it can perform. They are smart because they contain standard persistent procedures that provide each component's behavior and the messaging or "linking" mechanism through which the SmartObject requests services and shares data. The SmartObjects communicate solely by running internal procedures in each other.
This is how the ADM achieves encapsulation, there are no outside dependencies.
While it is technically possible to use shared variables with SmartObjects this should not be done.
A shared variable is an outside dependency, so using one breaks the encapsulation achieved by the above design.
The ADM does allow for custom links to be defined to pass the data between objects in order to achieve the desired end result.