Sparx Systems Forum
Pro Cloud Server / Prolaborate / WebEA => PCS General Board => Topic started by: Guillaume on March 17, 2026, 12:30:03 am
-
Hi,
EA Interop API provides a method to synchronize the MDG's stereotypes i.e. matching what one can do in EA via a right click on a stereotype in the toolbox > Synchronize Stereotype
Example: Repository.CustomCommand("Repository", "SynchProfile", "Profile=myProfile;Stereotype=test;");
As I create stereotyped elements matching a profile (custom MDG) via the PCS OSLC API, is there a way to run this Synchronize command so that all tagged values matching the profile definition are created ?
Thanks
-
Hi,
EA Interop API provides a method to synchronize the MDG's stereotypes i.e. matching what one can do in EA via a right click on a stereotype in the toolbox > Synchronize Stereotype
Example: Repository.CustomCommand("Repository", "SynchProfile", "Profile=myProfile;Stereotype=test;");
As I create stereotyped elements matching a profile (custom MDG) via the PCS OSLC API, is there a way to run this Synchronize command so that all tagged values matching the profile definition are created ?
Thanks
If you create an element with a stereotype using the client API, the tagged values are created automatically.
If that doesn't happen when creating elements using the server API, than that should be considered a bug.
Synchronize stereotype should only be used after updating the stereotype definition itself.
Geert
-
Hi,
Thank you for the advice. I figured out the stereotype was properly set. Having fixed it, I confirm the tagged values are created in the new element based on the MDG definition, available on the EA project.
Guillaue
-
EA Interop API provides a method to synchronize the MDG's stereotypes i.e. matching what one can do in EA via a right click on a stereotype in the toolbox > Synchronize Stereotype
Example: Repository.CustomCommand("Repository", "SynchProfile", "Profile=myProfile;Stereotype=test;");
Use the supported function instead on the EA side.
Repository.SynchProfile ("myProfile", "test");
is there a way to run this Synchronize command so that all tagged values matching the profile definition are created ?
No.