Model Migration And Signatures Example

Introduction

This example demonstrates migrating older versions of files and registering signatures that will be stored in the corresponding newer versions.

References

Please refer to the overviews Migrating Older Version of Models and Adding Signatures to Models for reviewing the code samples within this example.

Installation

To install this example open the examples wizard: File > New > Example. Then select Signatures and Compatibility under the RMP (Rational Modeling Platform) > Domain Modeling Layer Plug-ins category.

Signatures and Compatability Example Wizard

Description

The example once installed provides a new file type called "elib" with a new editor for those files. An action is provided to convert "extLibrary" files to this new format.

Two editors are associated with this new file type: Enhanced Library Editor and Library Editor. The enhanced library editor provides more feedback to the user regarding missing signatures and model migration concerns while the regular library editor is not aware of any of these concerns.

An action is provided to add a fictitious signature to a file. When this signature is encountered by the editor it will prompt providing information about the missing feature.

Another action is provided to convert one of these files to an older version of the example. The next time the file is opened using the editor it will operate in backward compatibility mode allowing changes to be made and saved in either the old format or the new format.

Usage

Refer to this example if you need:

  1. To add signatures to files
  2. To migrate older versions of files

Legal notices