The work context is determined by the instance from which
you enter a network of relationships between instances. This context
is defined by the design build path which this instance belongs to.
This project constitutes the starting point for the resolution
of the links between instances. If a link is not resolved in the project,
the projects hierarchy declared in the design build path is explored
in an upward direction in order to resolve it.
If you open or generate an instance from:
- Its definition project, its work context is its definition project.
- A calling instance, its work context is the context of the calling
instance.
The links (super references or sub references) resolve differently
according to the work context.
Note: A Data Element, called
in the -CE Lines of a Segment, is redefined in
a lower-level project. If the work context is the project of the Segment,
the Data Element resolved by the link is the Data Element which can
be accessed from the project of the Segment. However if the work context
is a project which is hierarchically lower than the project of the
Segment (for example if you access the Data Element through the Screen
which calls it in this project), the Data Element resolved by the
link is the Data Element which is redefined in the hierarchically
lower project.
You select the work context when you:
- Open an editor. You see the instance as it is defined in the current
work context. This context is displayed in the General
Information of the Overview tab of
each editor. The project which constitutes the work context and the
projects declared higher in the hierarchy can be viewed by clicking Hierarchy.
The
same instance can be opened in two different work contexts. So it
can simultaneously be displayed in two editors. However since it is
the same instance, any modifications made in one work context is immediately
available in the other work context.
Example: Project
PROJ.A has been declared
higher than project
PROJ.B in the design build
path of the location. A Data Element is defined in
PROJ.A and
is called by a Segment in
PROJ.B.
You can
open the Data Element directly from PROJ.A,
or you can access it from the Segment in PROJ.B.
In this case, two editors are simultaneously available for the Data
Element. These editors display the same information. Only the work
context differs. The search for the Data Element super references
differs if this Data Element is used by different instances in the
two projects.
- Start generating. The work context of the entry point into the
generation procedure (usually the context of the program to be generated)
is passed on to all the instances involved in the generation.