Author Topic: Add tagged value types to MDG  (Read 5355 times)

bITs.EA

  • EA User
  • **
  • Posts: 80
  • Karma: +2/-0
    • View Profile
Add tagged value types to MDG
« on: October 08, 2013, 12:22:14 am »
Hi,

I have noticed that my MDG technology generation isn’t working as it should be. The tagged value types are missing in the final MDG xml.
After the stereotypes definitions I find a closing tag for TaggedValueTypes.
</Stereotypes>
<TaggedValueTypes/>
<QuickLink …

I have selected the tagged value types in the MDG technology creation wizard. But because of the <TaggedValueTypes/>-tag, it seems like EA thinks there are no tagged value types available...

Is this a bug in the MDG creation or am I missing something?

Thanks!

bITs.EA

  • EA User
  • **
  • Posts: 80
  • Karma: +2/-0
    • View Profile
Re: Add tagged value types to MDG
« Reply #1 on: October 08, 2013, 01:01:02 am »
I found a work around by Phil Chudley http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1378478759/1#1

But has anybody already reported this as a bug?? (Otherwise, I will do it...)

bITs.EA

  • EA User
  • **
  • Posts: 80
  • Karma: +2/-0
    • View Profile
Re: Add tagged value types to MDG
« Reply #2 on: October 08, 2013, 01:17:27 am »
For me, the solution isn't working...

I tried both suggested methods:
1) Adding the taggedValueTypes to the MDG xml
Code: [Select]
                       </Stereotypes>
                        <TaggedValueTypes>
                              <RefData version="1.0" exporter="EA.25">
                                    <DataSet name="Property Types" table="t_propertytypes" filter="Property='#Property#'">
                                          <DataRow>
                                                <Column name="Property" value="DescriptionNL"/>
                                                <Column name="Description" value="Describe the element in Dutch"/>
                                                <Column name="Notes" value="Type=Memo;BaseStereotype=Activity;"/>
                                          </DataRow>
                                          <DataRow>
                                                <Column name="Property" value="DescriptionFR"/>
                                                <Column name="Description" value="Describe the element in French"/>
                                                <Column name="Notes" value="Type=Memo;BaseStereotype=Activity;"/>
                                          </DataRow>
                                          <DataRow>
                                                <Column name="Property" value="DescriptionEN"/>
                                                <Column name="Description" value="Describe the element in English"/>
                                                <Column name="Notes" value="Type=Memo;BaseStereotype=Activity;"/>
                                          </DataRow>
                                          <DataRow>
                                                <Column name="Property" value="loopCondition"/>
                                                <Column name="Description" value="Description of the conditions to continue/end loop"/>
                                                <Column name="Notes" value="Type=Memo;BaseStereotype=Activity;"/>
                                          </DataRow>
                                          <DataRow>
                                                <Column name="Property" value="conditionExpression"/>
                                                <Column name="Description" value="Describe the expression which controls a flow"/>
                                                <Column name="Notes" value="Type=Memo;BaseStereotype=Sequence Flow;"/>
                                          </DataRow>
                                    </DataSet>
                              </RefData>
                        </TaggedValueTypes>
                        <QuickLink

2) Export and import model resources

In both cases, the new tagged value types aren't recognized in my project. I also don't see them in the list of settings->UML types...->Tagged Value Types...

Only solution for me is to create them all again in my new project :(

ken.norcross

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: Add tagged value types to MDG
« Reply #3 on: October 08, 2013, 03:33:05 am »
From my experience, the tagged value types you define in your MDG and subsequently bring into a copy of Sparx via an MDG, will not show up in the UML types. They will not be generally available to use on any type of Element. They will only show up in the elements/stereotypes that you defined in your MDG.

philchudley

  • EA User
  • **
  • Posts: 743
  • Karma: +21/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Add tagged value types to MDG
« Reply #4 on: October 08, 2013, 08:52:49 pm »
Make sure that the ID value in the Generate MDG Technology wizard, matches [highlight]EXACTLY [/highlight]the name of UML Profile package and all should be fine.

Cheers Phil
Models are great!
Correct models are even greater!

bITs.EA

  • EA User
  • **
  • Posts: 80
  • Karma: +2/-0
    • View Profile
Re: Add tagged value types to MDG
« Reply #5 on: October 09, 2013, 07:26:02 pm »
It doesn't look like that works for me... The ID of the MDG and the profile ("Partena BPMN") is exactly the same as the profile package name...

This is the MDG XML.

The taggedValueTypes are in the xml. But if I load the MDG into EA, the tagged value types aren't loaded into the database...

Code: [Select]
<MDG.Technology version="1.0">
<Documentation id="Partena BPMN" name="Partena BPMN" version="0.5" notes="Customised technology for Partena (Based on BPMN 2.0)" supportURI="[email protected]"/>
<UMLProfiles>
<UMLProfile profiletype="uml2">
    <Documentation id="042168B8-4" name="Partena BPMN" version="1.0" notes="Partena BPMN"/>
    <Content>
        <Stereotypes>
        ...
        </Stereotypes>
        <TaggedValueTypes/>
        <QuickLink data="..."/>
    </Content>
</UMLProfile>
</UMLProfiles>
<TaggedValueTypes>
    <RefData version="1.0" exporter="EA.25">
        <DataSet name="Property Types" table="t_propertytypes" filter="Property='#Property#'">
            <DataRow>
                <Column name="Property" value="DescriptionNL"/>
                <Column name="Description" value="Describe the element in Dutch"/>
                <Column name="Notes" value="Type=Memo;BaseStereotype=Activity;"/>
            </DataRow>
            <DataRow>
                <Column name="Property" value="DescriptionFR"/>
                <Column name="Description" value="Describe the element in French"/>
                <Column name="Notes" value="Type=Memo;BaseStereotype=Activity;"/>
            </DataRow>
       </DataSet>
   </RefData>
</TaggedValueTypes>

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Add tagged value types to MDG
« Reply #6 on: October 09, 2013, 08:28:03 pm »
Once Phil posted that solution the first time I was curious and tried it since I remembered having had that issue once before. It took me a moment to actually get it to work but then succeeded. The emphasis on [highlight]exactly[/highlight] was the missing link. Actually I did not need it afterwards so its not at my fingertips and I have to recall Phil's post whenever someone asks for it.

IIRC the tags are not loaded but kept in memory only. However, you can use them as supposed.

q.
« Last Edit: October 09, 2013, 08:30:14 pm by qwerty »