hi
Thanks for all the info. Somehow I am not getting any email notifications when replies are posted :-(
Anyway, what I have discovered hard way is exactly what KP says.
Here is the snipped from the db session which shows what happens when stereotype (with the right tagged values) is applied to existing element:
delete from t_objectproperties where Object_ID=12 and ea_guid like '{[highlight]D4F0310E-E861-2fe8[/highlight]-%' and Property='aNamespace'
Insert into t_objectproperties(`Object_ID`, `Property`, `Value`, `Notes`, `ea_guid`) Values(12,'aNamespace',NULL,NULL,'{[highlight]D4F0310E-E861-2fe8-B98D[/highlight]-E17A6212FB46}')
First all 'old' values from the compartment are nuked. Then the default one is inserted.
For a given tagged value and compartment the highlighted part of guid is always the same.
KP, is there a way to tell us how is the GUID generated?
Or perhaps some magic call into EA dll?
I have an idea for a workaround. For a given Model, I would have a dummy package with manually inserted elements. I can read the magic GUIDs out of the DB and (re)use when inserting new tagged values.
Anybody see a problem with this?
I also noticed something alarming. When I delete a tagged value out of compartment, I see no way to re-insert it using GUI? Until now I found only "apply <stereotype>", but this nukes all other values.
I also tried Compartment::Name. It gets into the right compartment but the name is inconsistent with the default name.
Cheers,
Pawel