Author Topic: duplicate tagged values extending non-uml profile  (Read 6714 times)

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
duplicate tagged values extending non-uml profile
« on: August 02, 2013, 01:59:41 am »
I don't know why but I am getting duplicate tagged values when creating a profile that extends a non-uml element.

The xml for the profile element is pretty plain and simple:

<Stereotype name="Report" notes="" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0" generalizes="BPMN2.0::DataObject" baseStereotypes="BPMN2.0::DataObject"/>


I have reduced my test case to as simple as possible. New EAP file, new MDG model from the wizard, a single stereotpye as defined above, a single toolbox with one item, create the MDG xml using the wizard, import the technology, create an instance, and I get doubled tags.

The tags being duplicated are the BPMN2.0 tags. They show up under the BPMN2.0 category, and then again under the plain "Tagged Values".

I have given up trying to fix this, and have written a script to remove the extra tags.

Is this a bug or am I doing something wrong? I have reduced it to such a simple case I can't see anything wrong.
« Last Edit: August 03, 2013, 07:46:57 am by norcross »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #1 on: August 02, 2013, 05:42:56 am »
How could you create the above except manually? I was not able to define it with EA's profile tools.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #2 on: August 02, 2013, 08:55:58 am »
Do you have a Project Template Package defined?

P.S.
Quote
(the smiley face is a ":" and a "D")
When you post your message, check the option to disable smilies ;)
« Last Edit: August 02, 2013, 08:56:17 am by KP »
The Sparx Team
[email protected]

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #3 on: August 03, 2013, 04:15:26 am »
No project template package, brand new empty EAP file.

Smilies disabled, thanks :)

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #4 on: August 03, 2013, 04:23:31 am »
Quote
How could you create the above except manually? I was not able to define it with EA's profile tools.

q.

I follow the steps here:

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

In step 4, pick BPMN2.0::DataObject on the stereotypes tab

In step 5, name the new stereotype "Report"

Continue with adding the Generalize relationship, save the profile, etc.
« Last Edit: August 03, 2013, 04:29:29 am by norcross »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #5 on: August 03, 2013, 05:19:51 am »
Thanks! I tried your example and it worked without issue. Maybe it's a cross-over with BMPN2.0 and 1.1 or 1.0?

q.
[edit] I used a different name than Report and that worked. With Report I see the same issue as you.

P.S. I deleted the default "report" stereotype in Settings/UML Types/Stereotypes and the issue was gone.
« Last Edit: August 03, 2013, 05:25:40 am by qwerty »

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #6 on: August 03, 2013, 06:46:19 am »
Quote
Thanks! I tried your example and it worked without issue. Maybe it's a cross-over with BMPN2.0 and 1.1 or 1.0?

q.
[edit] I used a different name than Report and that worked. With Report I see the same issue as you.

P.S. I deleted the default "report" stereotype in Settings/UML Types/Stereotypes and the issue was gone.

Thanks for the hints for a possible workaround This has been driving me a little crazy. I have BPMN 1.0 and 1.1 turned off.

I will try some combinations and see. In my profile I am extending BPMN Process, Activity, DataObject (twice), StartEvent, and EndEvent. I see the problem on all of them.

[edit] - in my test profile I have limited it to one single stereotype as described in the first post, in my true profile I will need to extend many BPMN stereotypes, and in that profile I see the problem in all cases
« Last Edit: August 03, 2013, 07:31:02 am by norcross »

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #7 on: August 03, 2013, 07:43:00 am »
Quote
q.
[edit] I used a different name than Report and that worked. With Report I see the same issue as you.

As I said this has been driving me crazy, because I swear sometimes I do not get the effect and sometimes I do. Just when I think I have the magic configuration in a test profile, and start rebuilding my real profile, the issues comes back. I have to be very careful and keep track of everything that varies.

I tried your suggestion and changed the stereotype name to MyReport.

Where do you look to see the tagged values?

Now I realize if I look in the popup Properties dialog that you get when you double click an element the duplicate tags are there.

If you look in the dockable Tagged Values window that you get from the View menu, the duplicates are not there.

If I run a script to dump all the tagged values I can see that they are duplicated.
« Last Edit: August 03, 2013, 07:44:21 am by norcross »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #8 on: August 03, 2013, 08:33:43 am »
There's an option: in the Tagged Values window click the icon with the checkmarks. That allows to turn on showing duplicates. It's also somewhere in the global options - well, it's EA.

q.

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #9 on: August 06, 2013, 12:09:56 am »
Duplicate tags option didn't make any difference to my models.

I now realize in my home installation I am at build 1006, and my work installation is at build 1004. My build 1006 behaves better, no duplicate tags, so I am going to upgrade work to 1008 and see what difference that makes. I see in the notes for 1006 they fixed something related to migrating stereotypes that creates duplicate tags, so hopefully this is the issue.

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: duplicate tagged values extending non-uml prof
« Reply #10 on: August 06, 2013, 03:17:21 am »
Upgrading to V10.0.1008 has fixed the duplicate tags problem for me, thanks folks, I should have checked this first.