Sparx Systems Forum

Pro Cloud Server / Prolaborate / WebEA => PCS General Board => Topic started by: MarcinG on March 19, 2025, 09:26:31 pm

Title: Custom attributes in ProLaborate
Post by: MarcinG on March 19, 2025, 09:26:31 pm
Hello,

apologies if the subject had already been discussed - search did not return anything relevant.

We created some profiles in our Sparx EA, extending several UML elements.  As example, we created our own specialization of Node.  Let's it called it ExtendedNode.  It has some additional attributes, based on either date or enumerations.

When exposing them for editing in ProLaborate, they come out nicely, but only as text fields.  Is there a way to have them behave the same way as in Sparx, meaning understand and apply profile and use values coming from the profile, so that ProLaborate users would use the same consistent values/types as Sparx users ?

We are using (at the moment) ProLaborate 5.2.0.70.

Best regards
Marcin
Title: Re: Custom attributes in ProLaborate
Post by: Geert Bellekens on March 20, 2025, 01:57:24 am
Did you import your MDG into Prolaborate?
If you do, the enumeration tagged values should work correctly.

Geert
Title: Re: Custom attributes in ProLaborate
Post by: MarcinG on March 20, 2025, 02:22:02 am
Thank you Geert, I did not know that MDG has to be imported also into ProLaborate.  Now the funny thing happens - enum based attributes are editable and show drop downs.  Text attributes are not editable, despite having been configured as editable in the MDG's profile for specific stereotype.

Thank you for pointing me into right direction.  Appreciate any further suggestions.

Best regards
Marcin
Title: Re: Custom attributes in ProLaborate
Post by: MarcinG on March 21, 2025, 12:13:45 am
Just in case anyone struggles with that - the char data type for an attribute is not recognized.  It needs to be String to be editable. 

Thank you Geert for pointing me out to MDG ....
Title: Re: Custom attributes in ProLaborate
Post by: didier.pironet on April 10, 2025, 11:52:30 pm
Go to Modeling Languages -> Custom Properties (top right) -> Import
Then back to Modeling Languages -> on your ML go to More -> Manage Profiles -> again More -> Manage Stereotypes
Then finally select your Stereotype and under Action click on Form Designer -> Custom Properties
There you may want to add a new Group for segregation

Now you can add your custom tags one by one (no bulk update AFAIK)


This YT video explains it all: https://youtu.be/00wNsD-s-VA?feature=shared