Model Validation Broadcasts
Perform Model Validation from an Add-In
Using Enterprise Architect broadcasts, it is possible to define a set of rules that are evaluated when the user instructs Enterprise Architect to perform model validation. An Add-In that performs model validation would involve the following broadcast events:
- EA_OnInitializeUserRules is intercepted in order to define rule categories and rules.
- EA_OnStartValidation can be intercepted to perform any required processing prior to validation.
- The following functions intercept each request to validate an individual element, package, diagram, connector, attribute and method:
- EA_OnEndValidation can be intercepted to perform any required clean-up after validation has completed.
Also consider the Model Validation Example.