Book a Demo

Author Topic: Add'in: where to store a project's config data  (Read 6062 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Add'in: where to store a project's config data
« on: March 17, 2015, 06:58:40 pm »
Hi,

I'm writing an add'in which requires storing and using parameter values. These values are specific to each EA project, across all its users.

Hence I cannot store them within a config file on each client's PC.
I'm looking for a table to store these values ; usys_system stores key/value pairs which looks suitable to me. Is there any risk in using this? Would you recommend an alternative table or approach?

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Add'in: where to store a project's config data
« Reply #1 on: March 17, 2015, 07:12:03 pm »
eaDocX does what is probably a very naughty thing, as saves a bunch of repository-level settings in t_xref. Seems that EA uses it for all kinds of random stuff, so it seemed an appropriate place.
We save it as XML in the Description field, and index it with our product name in the XRefID field.
@Sparx - this would be a really useful facility to offer in native EA, so that this kind of data could then be exported/imported like other ref data ?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add'in: where to store a project's config data
« Reply #2 on: March 17, 2015, 07:13:17 pm »
We once had this discussion here. The most versatile way is to use dedicated elements with tagged values. Using tables or even creating your own tables is possible but export via XMI is likely unsupported.

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Add'in: where to store a project's config data
« Reply #3 on: March 17, 2015, 07:15:52 pm »
Thanks for your replies. I'll try Ian's approach as XML data will enable me to extend the parameters list.

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add'in: where to store a project's config data
« Reply #4 on: March 17, 2015, 07:53:45 pm »
Quote
eaDocX does what is probably a very naughty thing, as saves a bunch of repository-level settings in t_xref. Seems that EA uses it for all kinds of random stuff, so it seemed an appropriate place.
We save it as XML in the Description field, and index it with our product name in the XRefID field.
 
That's exactly what I suggested Phil when we discussed a similar issue at the Zurich event  :)

Another funny place to hide stuff is the notes of a root package. That field exists, but is never shown by EA.

Geert