Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Sam Courtney on March 08, 2014, 10:50:17 am
-
Looking for possible waysto handle this:
A sort of glossary feature that will allow user to map certain names/terms to a designated word. Going hand-in-hand with this feature would be the ability to automatically map domain type (VARCHAR, INT, etc.) to a pre-defined column name. (i.e. If we set a column name ‘ZIP_CODE’ to domain type of VARCHAR(5), every time we reuse ‘ZIP_CODE’ as a column name, EA would automatically assign the domain type of VARCHAR(5) to it.)
Any guidance would be great! :)
Thanks!
-
Hello,
1. Glossary
EA has a powerful glossary
2. Domain specific rules (Column type from Column type)
You may write an Addin which handles the EA_OnPostNewAttribute event to set the right type of your column.
Helmut
-
The "proper" way to handle these kind of things is to create datatypes for zip-codes and the likes.
On the datatype you can then define constraints, transformation rules etc...
Geert