Book a Demo

Author Topic: Documentation - Selecting specific tagged values  (Read 5473 times)

cem

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Documentation - Selecting specific tagged values
« on: January 22, 2009, 07:30:01 am »
Hello,

I have defined an UML profile containing a stereotype extending class to represent my domain objects. I have also added some tagged values to new stereotype as enumerations by defining them in the profile.

Now, I would like to generate the documentation for the packages holding my domain objects. The template I have to use dictates some tagged values to be displayed in some format and others in another format. However, element taggedValue in the template definition list all tagged values of the element with all possible values for each tagged value.

How could I select a specific tagged value in the template to include its name and only current value? Anything like "element.taggedValue('taggedValueName')"? ...or does it seem nonsense...

Thank you!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Documentation - Selecting specific tagged valu
« Reply #1 on: January 22, 2009, 07:49:49 am »
If you are talking about filtering of reports based on tagged values of elements...

I have not looked into this with tagged values, but as of build 834 there is some ability to filter on (some) properties when creating RTF reports. Perhaps HTML too, but I have not checked.

If you are not yet using build 834 you might want to update. Otherwise keep an eye on the upcoming EA 7.5 beta releases (starting with build 840) to see if they satisfy your needs.

HTH, David
No, you can't have it!

cem

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Documentation - Selecting specific tagged valu
« Reply #2 on: January 22, 2009, 06:03:26 pm »
Thank you Midnight.

I found valueOf template and it seems useful. Now I can include only specific tagged value by saying Attr.valueOf(MySpecificTaggedValueName)

However, I still have headache: Constraints. All constraints of the attributes can be listed in the rtf template. But, again, I couldnt find some tag similar to valueOf that can be used to access the value of a specific constraint.

I have two constraints on the attributes: Range and Resolution.
I want to list attributes of the class in a table such that, each row contains information of each attribute. The first column is the name, the second is the type, the third is the tagged value "unit", the third is the constraint "range", the fourth one is the constraint "resolution". Name and type are easy ones. Now I can add unit with value of macro. But the range and resolution... I couldnt a macro to access to name, value and notes of a specific constraint.

Any idea?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Documentation - Selecting specific tagged valu
« Reply #3 on: January 23, 2009, 05:33:08 am »
I really don't know if you can get at constraint properties here - or at least not yet; this is an area that Sparx has been improving.

I suggest you watch this thread for a while in case someone knows the answer, whether or not it is possible. You can use the Notification button on the top or bottom thread menu (when you are reading the thread it is before the first post or after the last one, near the right side of the page) to get an email if there's any activity. The same menu will allow you to turn off notification.

If nothing positive results I suggest you send a feature request to Sparx. Use the Feature Request link below the Support link near the bottom of any forum page. If you paste in a link to this thread the Sparxians can see additional details, or post suggestions or workarounds.

David
No, you can't have it!

cem

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Documentation - Selecting specific tagged valu
« Reply #4 on: January 23, 2009, 06:07:30 am »
Ok, I see...

Thank you, David.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Documentation - Selecting specific tagged valu
« Reply #5 on: January 23, 2009, 11:14:26 am »
If you end up making the feature request and hear from Sparx, please post back to this thread to let the rest of us know.
No, you can't have it!

cem

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Documentation - Selecting specific tagged valu
« Reply #6 on: January 30, 2009, 07:29:41 am »
Hi again,

Sparx Support Team responded that it's not possible to select one of the Constraints, but full listing is possible.

I'm disappointed  :(

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Documentation - Selecting specific tagged valu
« Reply #7 on: January 30, 2009, 09:26:24 am »
Still, as in so many things, if it had to be all or nothing, at least it was all.
No, you can't have it!