You can use model-external references between different models if the necessary requirements have been configured. Changes to the configuration may require maintenance of this configuration.
Model elements from different models and repositories, and also within a model, can be linked using a special reference mechanism. This stores references in the models concerned, which make it possible to navigate from one element to the element linked to it.
The model-external reference is fundamentally composed of two components.
The following setup options are available as appropriate.
If the idea is that elements are always copied from a certain model A and the model-external reference is always pasted to another model B, the following configuration results:
If the idea is that model references will be copied back and forth between the two, i.e. that on one occasion an element will be selected from model A and on another occasion from model B, both components are required in both models.
The configurations are made available as XML files in the same ways as the previous profile add-ons (\$INODIR\java\M2MSDK\configuration\Innovator.Model.Configuration\Mapping\Mapping.GeneralMapping\).
You can customize the GeneralMapping.FORWARD and GeneralMapping.REVERSE configuration descriptions to suit your needs. You must already have experience with meta model elements and model configuration in Innovator (stereotypes, templates and content configuration in particular) to be able to do this.
Import via the configuration loader evaluates configuration descriptions and creates the corresponding, model-compliant configuration and model elements required in the model.
Reload the configuration descriptions once you have changed the model configuration (new stereotypes) in order to maintain configuration prerequisites for model-external references.
Context
In later Innovator profiles, configuring the configuration loader as engineering action is already included.
If you use older profiles, you need to configure the configuration loader retrospectively.
You can use the ROOT PROFILE profile or a custom profile for the configuration.
Please note that in the model structure for Innovator X Generation you will need to update the modified configuration for selected root nodes by pressing [F5].
How to proceed
Select Bearbeiten>Sperren.
Delivered profiles display a warning notice.
Confirm the warning notice with OK.
You can edit the profile.
To create a Java action sequence, select Create>Action Sequence>Java Program Sequence or press [Shift]+[Ctrl]+[F5].
The action sequence is created and selected in the profile tree. An action is automatically created and displayed in the list of profile elements.
Select Edit>Properties.
The root tab for the action sequence is selected.
The root tab for the action is selected in the Edit/Properties dialog.
Enter the following paths:
./M2MSDK/bin/M2MSDK.jar
./M2MSDK/lib/commons-io-2.4.jar
./M2MSDK/lib/jdom-2.0.2.jar
./ModelCore/bin/ModelCore.jar
./MappingCore/bin/MappingCore.jar
./M2MSDK/lib/RunCC.jar
./M2MSDK/bin/M2MSDK.jar
./MappingDialogTemplates/bin/MappingDialogTemplates.jar
Drag-and-drop the action sequence from the Nicht zugeordnet area to the Zugeordnet area.
You have configured the configuration loader and made the engineering actions available in the menu.
Prerequisites
A requirement for setup is that the configuration loader is configured as an engineering action; this is included in later Innovator profiles but needs to be done retrospectively for older profiles.
Context
The configuration must be reloaded in all models in which model-external references are to be used.
How to proceed
From the Extras>Engineering Actions>Commands submenu, run the engineering action Configuration loader.
The available configurations are shown.
Once the engineering action is complete, update the model contents using View>Synchronize>Reload Contents (F5).
Additional model elements appear in the model structure for the relevant system model, if they were not already present: the systemModelManagement with packages for the reference information.
Prerequisites
The requirements for a model-external reference are met by creating model-compliant configuration and the necessary model elements.
How to proceed
Insert the copied element as a reference using the Start>Clipboard>Paste>Paste as Model-External Reference (Ctrl+R) command.
Proxy references are then present in both models and you can jump from either of the two elements concerned to the other linked element.
To jump between the linked elements, select one of the elements concerned from the context menu Go to>Linked Elements... (Ctrl+Shift+Enter).
The dialog of the same name appears.
Select the linked element in the dialog and confirm the selection with OK. If the model with the referenced element has not yet been opened, you must log in to this model.
The target element is then selected there.
© 1986-2014 MID GmbH Nuremberg Germany. DIN EN 9001 certified. All rights reserved.