Book a Demo

Author Topic: OSLC PCS SynchProfile method ?  (Read 13129 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1402
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
OSLC PCS SynchProfile method ?
« 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
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13510
  • Karma: +573/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: OSLC PCS SynchProfile method ?
« Reply #1 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

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1402
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: OSLC PCS SynchProfile method ?
« Reply #2 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
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8107
  • Karma: +119/-20
    • View Profile
Re: OSLC PCS SynchProfile method ?
« Reply #3 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.