Book a Demo

Author Topic: Different stereotypes  (Read 3365 times)

Doug Blake

  • EA User
  • **
  • Posts: 102
  • Karma: +0/-0
    • View Profile
Different stereotypes
« on: August 14, 2013, 05:23:13 pm »
I have some requirements with the stereotype <<Technical>> but I have noticed in the project browser that some of the stereotypes display thus <<Technical...>>. It seems I may have added something way back when but I cant remember. Any ideas? I would like to rationalise them to the <<Technical>> stereotype.
DGB Using 12.0.1214 / eaDocX 3.6.2.1 / MSSQL / TFS / Windows 7 / IE11

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Different stereotypes
« Reply #1 on: August 14, 2013, 06:10:21 pm »
I think that there are times when you change the stereotype of an element, and EA give the 'StereotypesEX' attribute the value of the old stereotype.
The Project Browser seems to detect that there is a 'StereotypeEx' value, and adds the (...) after the stereotype name, to show the element has multiple stereotypes.
The only way I know to get ri of the (...) is to open the element, select the (...) next to the Stereotype, then look through the drop-down list ( of MDGs?) and un-tick the old stereotypes you don't want.
OR
We (the eaDocX elves) thought that making an element have multiple stereotypes was a bit like using multiple inheritance: nice in theory, but horrible in practice. So....
Read the elements into eaXL with eaDocX, then write the element back.eaDocX will blank-out all the stereotypeEx values, as this was annoying us as well.
Can anyone else think why blanking-out the StereotypeEx value like this might be a bad thing?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Different stereotypes
« Reply #2 on: August 14, 2013, 06:12:28 pm »
Hi Doug

Yes indeed you have multiple stereotypes for your Requirement. One way to fix this is

1) Open the[highlight] Properties View [/highlight](not the Properties Dialog)
2) In the list of Properties click on the [highlight]Down arrow in the Stereotype entry[/highlight]
3) Scroll down and select [highlight]browse other stereotypes...  [/highlight]This opens a dialog where you will what stereotypes you have indicated by checkboxes, also you may have to browse through different profiles. Uncheck the stereotypes you do not want

That should clear the problem, of course this method only works for a single requirement

If you would like to reset multiple requirements, a solution maybe to export the requirements to CSV (including the name, stereotype and GUID), open in Excel, change the stereotype  save and re-import (EaDocX can also do this round trip if you have the Excel integration version)

Hope this helps

Phil
Models are great!
Correct models are even greater!