Book a Demo

Author Topic: MDG apply type or add type triggers  (Read 7937 times)

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
MDG apply type or add type triggers
« on: September 02, 2013, 06:18:57 pm »
Hi

I'm using an MDG and adding elements to one of my existing element on my custom diagram i.e. so that they are owned by the existing element.  It all works fine however in performing this task I don't like that EA offers me the option to ADD or APPLY the type to the Element but I assume that somewhere in the definition I should have set something to enable / disable this behaviour.

I've clearly missed what is probably a very minor detail but in searching I can't find the information to manage this option. :-?

Can anybody direct me to where this information is likely to be.

Many thanks
EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG apply type or add type triggers
« Reply #1 on: September 02, 2013, 06:40:46 pm »
I'm also not sure about it, but AFAIK this is hard wired inside EA and can not be changed by any parameter. Would be nice to see a confirmation be Sparx.

q.

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: MDG apply type or add type triggers
« Reply #2 on: September 02, 2013, 06:46:15 pm »
qwerty

Thanks for the quick response - yet again something I'll have to live with.

On a similar type of topic I've also been hunting for how Sparx add their properties menus for MDG e.g. BPMN both when adding an element to a diagram and in the context menu; seem really useful but a distinct lack of information on that.  Have you seen anything?

EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG apply type or add type triggers
« Reply #3 on: September 02, 2013, 07:09:52 pm »
I'm not sure what you mean with properties menus. In general MDGs control things via tagged values and extended properties are only available for hard wired elements (like e.g. Actions which can take a variety of formats).

q.
« Last Edit: September 02, 2013, 07:10:07 pm by qwerty »

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: MDG apply type or add type triggers
« Reply #4 on: September 02, 2013, 07:44:12 pm »
When adding a BPMN element to a diagram a menu is presented.
As an example if you create a BPMN diagram and then drag a BPMN activity - up pops a menu which represents valid values for the TaskType tagged valued.  Really cool - I thought that if I provided MDG tagged values with enumerations this what I would get as can't see why the mechanism cannot be generalised.

Similarly, if you then right click on the added activity you will see a BPEL menu item - only applies to BPMN elements - and I suspect this really is hardcode.

Looks like I'll see what Sparx come up with.

Thanks for your response.

EXploringEA - information, utilities and addins

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: MDG apply type or add type triggers
« Reply #5 on: September 02, 2013, 10:59:51 pm »
When you drag from the toolbox and get a menu, look here for _subtypeProperty

http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/supportedattributes_2.html

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG apply type or add type triggers
« Reply #6 on: September 03, 2013, 12:51:41 am »
Quote
When adding a BPMN element to a diagram a menu is presented.
Use the method ken.norcross suggests.

Quote
Similarly, if you then right click on the added activity you will see a BPEL menu item - only applies to BPMN elements - and I suspect this really is hardcode.
I don't see this menu. Probably because it's license restricted (I have Corporate). So your assumption is probably right that this is hard wired.

q.

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: MDG apply type or add type triggers
« Reply #7 on: September 03, 2013, 01:00:54 am »
Ken

many thanks - clearly missed this.
Also the information you provided in the other post on subtyproperties

I'll go and have a play :)
EXploringEA - information, utilities and addins

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: MDG apply type or add type triggers
« Reply #8 on: September 03, 2013, 01:03:56 am »
@qwerty

Thanks for the feedback - interesting that the menu may be licence limited;  I need to remember and as you say probably hardwired.

I've pinged Sparx for confirmation.

Now a few hours of fun seeing if I can master the subtypeproperties
.
EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG apply type or add type triggers
« Reply #9 on: September 03, 2013, 02:10:28 am »
Good luck. And yes: would be nice to see any confirmation from Sparx.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: MDG apply type or add type triggers
« Reply #10 on: September 03, 2013, 09:39:13 am »
Quote
I'm using an MDG and adding elements to one of my existing element on my custom diagram i.e. so that they are owned by the existing element.  It all works fine however in performing this task I don't like that EA offers me the option to ADD or APPLY the type to the Element but I assume that somewhere in the definition I should have set something to enable / disable this behaviour.
It offers the choice because both options are valid. You can use Ctrl+Drag to apply the stereotype or Shift+Drag to add a new element.
The Sparx Team
[email protected]