Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: blea on August 12, 2024, 10:44:30 pm
-
Hi,
I am relatively new to EA scripting and am experiencing problems with tagged values that are assigned to nested ports.
The idea behind the use of nested ports was to be able to have the same inherited tagged values for the ports in the element blocks to which they have been assigned. So if a change in its tagged value was made, that change will apply to the remaining ports that have the same interface block as type.
As I try to extract/access the given tagged values, I only get those that I have assigned to the specific port and not the tagged values that are given/assigned through the interface blocks.
I'm not quite sure how to attach an image to the post, but the properties window for the tagged values looks something like this:
Port (Power)
min 12
from in
from interfacePower
min 64
In the above example, the interfacePower is the interfaceblock which the port has as its type. It is the tagged value assigned to this interfaceblock I want to be able to extract
Thanks in advance
-
The "inherited" tagged values are actually not stored at the instance at all.
It only looks like they are because they are presented here in the GUI.
You'll have to find them at the classifier.
Geert
-
Perfect, thank you.
I solved the problem and can get the tagged values extracted now :)