Sparx Systems Forum

Pro Cloud Server / Prolaborate / WebEA => PCS General Board => Topic started by: Guillaume on March 17, 2026, 12:30:03 am

Title: OSLC PCS SynchProfile method ?
Post 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
Title: Re: OSLC PCS SynchProfile method ?
Post by: Geert Bellekens on March 17, 2026, 06:23:00 pm
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
Title: Re: OSLC PCS SynchProfile method ?
Post by: Guillaume on March 18, 2026, 12:16:01 am
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
Title: Re: OSLC PCS SynchProfile method ?
Post by: Eve on March 18, 2026, 08:39:03 am
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.