Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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!
-
Which EA version do you use. AFAIK from V10 on you do not need synch at all.
q.
-
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.
-
Strange. Maybe that's a bug. You should report the missing Synch and see what Sparx is telling you.
q.
-
Ok, will do. If I get an answer, I'll post it in this topic.
-
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.
-
I did not see it either. Check the BPMN Start Event (against an Activity). You will see that it's missing.
q.
-
Simon M, I have sent a bug report yesterday ;)
-
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 :)
-
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.
-
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.