Enterprise Architect includes the package baseline feature that lets you create snapshots - backups of your model within the project (data is stored in the project's database). Once the baseline feature is used, it can be cumbersome to find the packages that have baselines. Such information can be required e.g. to delete baselines that are no longer relevant in order to free some space, or to find the most recent backup from a model's parent package.
This article provides a user defined search, FindPackageBaselines, that lets you search through all existing baselines within the project, and display the associated package in the Project Browser.
Find Package Baselines Enterprise Archirect user defined search
I created the following search module, named FindPackageBaselines (SQL Editor type), with the following content:
SELECT o.ea_guid AS CLASSGUID, o.Object_Type AS CLASSTYPE, d.DocName, d.Notes, d.Version
FROM t_document d left join t_object o on d.ElementID = o.ea_guid
WHERE d.docType = 'Baseline' AND and DocName LIKE '*<Search Term>*'
To create this search module within your Enterprise Architect client:
This user defined search looks for the existing project's baselines. If a search criteria is provided via the "Search Term" field, the search will restrict results on the packages which name includes the provided term.
Below is an example with the search criteria "component": only baselines of the "Component Model" package are displayed in the results.
When the search term is empty, all existing baselines are displayed.
Notes: project root's baselines are displayed with a different icon, as illustrated above with "Model".