Book a Demo

Author Topic: Setting the "Context"  (Read 4547 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Setting the "Context"
« on: October 29, 2014, 04:34:19 am »
Hi,

I looking for a way that my users can set a "context" that can be used when they are modeling to automatically set the default value of a specific tagged value - depending on the context that has been set by the user.

If the user were to set their context to "As-Is" the default of the tagged value status (which I define in an mdg) would change to As-Is. My MDG defined a bunch of connectors that have this status tagged value.

If the user sets there context to target the tagged value status default value is set to "target".

This way I can tell if relationships that are added to my model are part of my current or target state - that's the plan anyway.

The only solution I can think of is to create two different mdg files - one for current state modeling and another for target - which have the default for the status tag set to As-Is or Target respectively.

My users then use settings mdg technology so select the appropriate technology - ie set their "context" this way...

Seems a bit messy to me - can anyone think of a better solution ?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Setting the "Context"
« Reply #1 on: October 29, 2014, 08:20:10 am »
I'd rather implement an add-in which watches OnContextItem... and acts accordingly. Using two different MDG variants smells strange.

q.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Setting the "Context"
« Reply #2 on: October 31, 2014, 04:32:58 am »
Yes I agree - was just hoping i'd missed something and there would be a nice way to achieve the requirement without having to write an add-in ...