Getting taggedvalues in runtime without code

When you use WECPOF you can create a whole system with use of the Model alone.

As you do you might want to pick up information stored in the TaggedValues of the model.

You can do that like this:

G.allinstances->first.oclType.TaggedValue(‘Eco.PresentationUnit’)

But this approach will not let you get to TaggedValues on features like attributes or association ends.

For this purpose we added TaggedValueOnFeature. Use it like this:

G.allinstances->first.oclType.TaggedValueOnFeature(‘Eco.PresentationUnit’,’SomeAttribute’)

This entry was posted in OCL, WECPOF. Bookmark the permalink.

One Response to Getting taggedvalues in runtime without code

  1. guest00 says:

    Hi CO,

    Useful feature. Thank you!
    Do I need to upgrade my AppComplete version to the new one? I found only “TaggedValue” in 6.0.0.6379

    Regards,
    Alexandr

Leave a Reply

Your email address will not be published. Required fields are marked *

*