Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: bITs.EA on December 07, 2013, 03:20:13 am

Title: Synchronize stereotype for events
Post by: bITs.EA on December 07, 2013, 03:20:13 am
Hi

I can't find a way to synchronize stereotypes for events. For all other types of objects, it's easy via right click in toolbox, but events don't show the option "synchronize stereotype".

Is this a bug or is this option left out for a reason?? Is there a workaround to synchronize events??

Thanks!
Title: Re: Synchronize stereotype for events
Post by: qwerty on December 07, 2013, 11:55:18 pm
Which EA version do you use. AFAIK from V10 on you do not need synch at all.

q.
Title: Re: Synchronize stereotype for events
Post by: bITs.EA on December 09, 2013, 11:20:55 pm
I use EA 10.

But the stereotypes aren't synchronised automatically... I've added a tagged value to the events and the old events don't have the tagged value (TV).

When I add a TV for another element (e.g. an activity), I just do "synchronise stereotype" and all the existing activities are updated with the new TV.

But unfortunately, the events don't have this option.

Title: Re: Synchronize stereotype for events
Post by: qwerty on December 10, 2013, 01:09:32 am
Strange. Maybe that's a bug. You should report the missing Synch and see what Sparx is telling you.

q.
Title: Re: Synchronize stereotype for events
Post by: bITs.EA on December 10, 2013, 02:34:10 am
Ok, will do. If I get an answer, I'll post it in this topic.
Title: Re: Synchronize stereotype for events
Post by: Eve on December 10, 2013, 08:41:21 am
When you apply a stereotype to an element the tagged values are already added. You still need the synchronize if you add properties to a stereotype after it has already been applied. (This was a design decision to not automatically add properties to all instances of the stereotype because EA allows tagged values to be deleted)

I don't know why you're not seeing the synchronize option for events, perhaps send in a bug report.
Title: Re: Synchronize stereotype for events
Post by: qwerty on December 10, 2013, 12:54:38 pm
I did not see it either. Check the BPMN Start Event (against an Activity). You will see that it's missing.

q.
Title: Re: Synchronize stereotype for events
Post by: bITs.EA on December 10, 2013, 07:14:47 pm
Simon M, I have sent a bug report yesterday ;)
Title: Re: Synchronize stereotype for events
Post by: bITs.EA on December 10, 2013, 11:07:31 pm
I've thought a little bit more about the problem and I think I know the difference between the events and the activities in the toolbox.

In BPMN toolbox, the events are a toolboxpage which combines 2 event-stereotypes (stand alone (event) and edge mounted (objectnode)).

So, my problem has shifted towards the next question: Is there another way to synchronise stereotypes (so not via toolbox, because I cannot select my events in the toolbox).

An elaborate workaround could be that I add all the events stereotypes to the toolbox separately when I want to synchronise them and afterwards delete them from the toolbox again. But I'm hoping for a better solution :)
Title: Re: Synchronize stereotype for events
Post by: qwerty on December 11, 2013, 04:27:30 am
It should not make any difference for a stereotype synch whether they are edge mounted or stand alone (which only makes a difference in displaying them). So this is a real bug.

You may try the Repository.SynchProfile which should sync [highlight]all[/highlight] stereotypes of a profile.

q.
Title: Re: Synchronize stereotype for events
Post by: Eve on December 11, 2013, 08:23:51 am
Well, that explains why the option isn't available. When you right click on the events in the toolbox you aren't on a stereotype so the synch option isn't available.

There should still be a way to do it, but for now using the automation interface is probably the easiest.