Prev | Next |
Configure Packages
In order to configure a Package to save and load in Native/XMI format to a named file, you use the 'Package Control Options' dialog to flag the Package as being controlled and to set a number of options. These options include setting the filename to save to/load from, the type of Native/XMI to import and export, and whether to export and/or import the Native/XMI in a batch process. When the Package is configured, this is indicated by a small colored rectangle on the left of the 'Package' icon in the Browser window, as shown for the RQ01: Formal Requirements Package.
Access
Select a Package in the Browser window, then:
Ribbon |
Settings > Version Control > Package-VC or Publish > Model Exchange > Package Control > Package Control |
Keyboard Shortcuts |
|
Configure a Controlled Package
Option |
Description |
See also |
---|---|---|
Control Package |
Select the checkbox to indicate that this is a controlled Package. |
|
For all packages, create placeholders for external references |
Select to force all Native/XMI imports of this Package to exclude incoming relationships and instead create external references. This overrides the 'Create placeholders for missing External References during XMI 1.1/2.1 and Native File Import' checkbox in the XML Specifications options for a user, if that checkbox is not selected. |
XML Specifications |
Version Control |
Leave this field set to '(None)', to manage the Package under Native/XMI control. The 'Package Control Options' dialog is also used in adding a Package to Version Control and, in this context, is described under the Version Control section. |
Configure Controlled Package |
Filename |
Type or browse for the path and Native/XMI file name into which to export the Package data and from which to import it. You can also enter Local Path Substitution strings; for example, an XMI local path definition where: myLocalPath="C:\Documents and Settings\John\Desktop\EA Models" So that %myLocalPath%\CIM.xml is equivalent to: C:\Documents and Settings\John\Desktop\EA Models\CIM.xml |
|
Type |
Click on the drop-down arrow and select the type of Native/XMI to be generated; options include:
Any of the above options can be selected for complete import/export round tripping of Packages. |
|
Version ID |
Type the version number you want to apply to the Package. This field is the same as the 'Version' field on the Package 'Properties' dialog; any change to either field updates the other. |
|
Owner |
Defaults to the name of the Package owner; if necessary, type or select a different name. |
|
Use DTD |
(Optional) Select the checkbox to use a Data Type Definition (DTD) for the import and export. This option is available for Enterprise Architect XMI 1.1 type. |
The UML DTD |
Log Import/Export |
(Optional) Select the checkbox to log import and export activity to a log file. |
|
Batch Import |
(Optional) Select the checkbox to mark the Package as a Batch Import Package. |
|
Batch Export |
(Optional) Select the checkbox to mark the Package as a Batch Export Package. |
|
Include sub-packages |
Select the checkbox to include the entire sub-Package hierarchy of this branch in the exported Native/XMI (default). (For an Enterprise Architect XMI 1.1 export) Deselect the checkbox to include only the immediate contents of the Package in an XMI export (XMI stubs). |
|
OK |
Click on this button to set the Package Control options and close the dialog. |
Notes
- In the Corporate, Unified and Ultimate Editions of Enterprise Architect, if security is enabled you must have 'Configure Packages' permission to configure controlled Packages and Package properties
- For batch import, the file date of the XMI file is stored; you can bypass the batch import if there is no change - that is, the file date of the last import matches that of the current file