Components [LemonTree 3.0]
Starting with LemonTree 3.0, the LemonTree EA Addin has the functionality to both extract and re-use components of existing models.
All necessary features are available via the "Specialize → LemonTree → Packages" sub-menu.
Terminology
Repository
The term "repository" in the context of the component features of the LemonTree Enterprise Architect Addin refers to a file directory on your local harddrive, which holds all component version files associated with a particular model.
Component
A logical construct which consists of one or more specific packages belonging to a model.
Component Version File
A physical file which contains a specific version of the model data of a component.
Features
Workflows
Publish New Component Version
Prerequisites
- An Enterprise Architect Model which contains one or multiple packages, which shall be contained in the component version
- A repository. It may already contain a different version of the component
Steps
- Open the Specification Editor
- Specify components for the packages (changes are saved to the model automatically)
- Start the Publish action (This will automatically trigger the Configuration action if necessary)
- Click "Save" in the configuration dialog - you will be automatically redirected back to the Publish dialog
- (Optional) Click "Show Changes" to show the contents of the created component files in LemonTree
- Click "Publish"
Import Component Version
Prerequisites
- An Enterprise Architect Model which shall contain the component version. It may already contain a different version of the component
- A repository containing the component version file to import
Steps
- Start the Import action (This will automatically trigger the Configuration action if necessary)
- (Optional) Click "Show Changes" to show the parts of the model which will be reverted
- Any components which have not been modified in the model will be automatically updated to the version from the repository
- For all components with local modifications, a LemonTree session will be started, which will allow you to manually merge over the parts of the new component version you want
Revert Changes to Component Version
Prerequisites
- A repository containting a component version file which has been either published from or imported into the accompanying model
- A model containing changes to an imported/published component version
Steps
- Start with an Enterprise Architect Model which you have previously used to either Publish or Import component versions, and in which you have changed the contents of these components since then
- Start the Revert action (This will automatically trigger the Configuration action if necessary)
- (Optional) Click "Show Changes" to show the parts of the model which will be reverted
- Click "Revert" - a LemonTree session will be started to conduct the revert
- (Optional) Use the LemonTree "Take" controls to fine-tune which parts of the changes to the model you want to revert
- Click "Start Merge" in the LemonTree instance to change the contents of the model