Author Topic: Don't understand Tag Groupings as described in user guide  (Read 4245 times)

adama

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Don't understand Tag Groupings as described in user guide
« on: March 09, 2017, 08:09:29 am »
See:
http://sparxsystems.com/enterprise_architect_user_guide/13.0/modeling_tools/define_tag_groupings.html

"You can apply the same solution, using three tag grouping special attributes in the Metaclass element extended by the Stereotype element in which the tags are defined as attributes."... the Technology Developer defined the special attributes in the Activity Metaclass element"

Trying to parse this vague instruction:

1) "...using three tag grouping special attributes in the Metaclass element ..."
So, you add each of the special attributes to the metaclass (e.g. Activity). So what then?  In the example, the values for _tagGroups is "Base Element,Activity,Task,AdHoc,Loop,Sub-Process,Callable Element,Execution,Other". But, an attribute does not have values; it has only initial value. What does this mean?  I tried adding tagged values on the attribute, tagged values on the element, a tagged value on element that has the comma-separated string as the value...with no success.  Same question about _tagGroupings and _tagGroupStates.

2) "...extended by the Stereotype element in which the tags are defined as attributes."
What tags? I guess that means these attributes will be expressed as tags in class instances.
Anyway, from this instruction, I suppose one should create an attribute for each item in _tagGroupings.

Totally confused by this instruction. Any help by example, perhaps?
« Last Edit: March 10, 2017, 12:56:21 am by adama »

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Don't understand Tag Groupings as described in user guide
« Reply #1 on: March 09, 2017, 09:41:57 am »
This is much easier to understand if you use the helper to do it rather than hand coding.

adama

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: Don't understand Tag Groupings as described in user guide
« Reply #2 on: March 09, 2017, 11:30:48 pm »
Thanks Glassboy. Where is the helper? Oh, it's the "Add Stereotype". Works for me. Thanks again.
« Last Edit: March 09, 2017, 11:40:45 pm by adama »

adama

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: Don't understand Tag Groupings as described in user guide
« Reply #3 on: March 10, 2017, 12:43:55 am »
BTW, my problem might have been that the _tag attributes in the metaclass, as well as the attributes in the stereotype, were PRIVATE. Making them public seemed the proper approach.