Extensible Model Validator Framework for Enterprise Architect is designed to validate models besides seamless integration with the Enterprise Architect tool. The key strength of the framework lies in its extensibility, which empowers users to create custom validation rules and facilitating comprehensive model validation tailored to their specific needs e.g. custom UML profiles. This distinctive capability enables users to ensure rigorous validation and to amplify the value of model validation within the Enterprise Architect ecosystem. Additionally, the framework offers result exportation and auto-correction functionalities, enhancing efficiency and streamlining the validation process.
To use as an Enterprise Architect Add-In:
- Build the whole whole solution in the
Enterprise-Architect-Model-Validator
folder (tested in Visual Studio 2022) - Copy the DLLs of the core projects (
ModelValidatorLibrary
,ModelValidatorEAAddin
) into the folder of Enterprise Architect tool (e.g.c:\Program Files (x86)\Sparx Systems\EA
) - Create
modelValidatorExtensions
folder in the folder of Enterprise Architect - Create new extensions or use the provided ones (see
Enterprise-Architect-Model-Validator
folder,EnterpriseArchitectExtension
,GenericExtension
,GenericQueryExtension
,SpaceshipExtension
) and copy these into the previously createdmodelValidatorExtensions
folder - Create
queries
folder in the folder of Enterprise Architect - Create new queries (validation rules in SQL syntax) of use the provided ones (see the
sql_queries
folder,generic_requirements_queries
,integrity_check_queries
,spaceship_requirement_queries
) and copy these into the previously createdqueries
folder - Close all Enterprise Architect instances, if open
- Execute the install scripts with administrator rights (see the
install
folder,ModelValidatorEAAddin.bat
,ModelValidatorEAAddin.reg
) - Open Enterprise Architect and show the Add-Ins window, the
ModelValidator
Add-In shall appear
To use as a console application:
- Build the whole whole solution in the
Enterprise-Architect-Model-Validator
folder (tested in Visual Studio 2022) - Copy the DLLs of the core projects (
ModelValidatorLibrary
,ModelValidatorEAAddin
) and the executable of the console application (ModelValidatorConsoleApplication
) into the desired folder - Create
modelValidatorExtensions
folder in the desired folder - Create new extensions or use the provided ones (see
sql_queries
folder,ConsoleExtension
,GenericExtension
,GenericQueryExtension
,SpaceshipExtension
) and copy these into the previously createdmodelValidatorExtensions
folder - Create
queries
folder in the desired folder - Create new queries (validation rules in SQL syntax) of use the provided ones (see
install
folder,generic_requirements_queries
,integrity_check_queries
,spaceship_requirement_queries
) and copy these into the previously createdqueries
folder
To use as an Enterprise Architect Add-In:
- Choose a Query Collection from the drop-down menu
- Choose an Exporter from the drop-down menu
- Trigger the validation with the Validate button
- You can use the Find GUID button to search for a GUID from the clipboard
To use as a console application: You shall provide some arguments for the executable:
--connectionstring
: the connection string of the Enterprise Architect model (e.g.c:\\ea_models\\example.eapx
)--packageguid
: the GUID string of the Enterprise Architect package to execute the validation on--querycollection
: the folder of the validation rules collection (e.g.SpaceML Requirements
)--exporter
: the desired exporter to use (e.g.Debug
)
Note, that submodule Enterprise-Architect-Add-in-Framework
is forked from the repository of Geert Bellekens: Enterprise-Architect-Add-in-Framework.
Note, that the original codebase of used SQL generator can be found here.