XMI comment generation

Please use this forum to signal bugs.
Merci d'utiliser ce forum pour signaler des bugs.

XMI comment generation

Postby thomas.beale » Tue 7 Apr 2015 18:52

I think the comment generation from BOUML may be wrong. The model we defined in BOUML and exported had XMI like below. There is one sample of class from "Release_102::org::openehr::rm::ehr_extract" package. The owned Comment is just inner element but it does not annotate class. Such comment is not a documentation.

Code: Select all
<packagedElement xmi:type='uml:Class' xmi:id='BOUML_0x27182_4' name='EXTRACT_CHAPTER' visibility='package'>
         <ownedComment xmi:type='uml:Comment' xmi:id='COMMENT_506' body='One content chapter of an Extract; contains information relating to only one entity.'/>
          <generalization xmi:type='uml:Generalization' xmi:id='BOUML_0x2bb02_0' general='BOUML_0x1f682_4'/>
          <ownedAttribute xmi:type='uml:Property' xmi:id='BOUML_0x29b82_0' name='items' visibility='public' type='BOUML_0x27302_4' association='BOUML_ASSOC_0x29b82_0'>
                 <ownedComment xmi:type='uml:Comment' xmi:id='COMMENT_507' body='The information content of this chapter.'/>
                 <lowerValue xmi:type='uml:LiteralString' xmi:id='BOUML_MULTIPLICITY_L_0x29b82_0' value='*'/>
                 <upperValue xmi:type='uml:LiteralString' xmi:id='BOUML_MULTIPLICITY_U_0x29b82_0' value='*'/>
           </ownedAttribute>
 </packagedElement>


In the corrected case below, class has inner comment and inner comment sets class as annotatedElement.

Code: Select all
     <packagedElement xmi:type='uml:Class' xmi:id='BOUML_0x1ff02_4' name='PARTY_SELF' visibility='package'>
          <ownedComment xmi:type='uml:Comment' xmi:id='_18_1_83e026d_1424861995349_946692_4495' body='Party proxy representing the subject of the record. Used to indicate that  the party is the owner of the record. May or may not have external_ref set. '>
                 <annotatedElement xmi:idref='BOUML_0x1ff02_4'/>
          </ownedComment>
          <generalization xmi:type='uml:Generalization' xmi:id='BOUML_0x1f682_0' general='BOUML_0x1fe02_4'/>
     </packagedElement>
thomas.beale
 
Posts: 45
Joined: Wed 21 Mar 2012 20:37

Re: XMI comment generation

Postby Bruno Pagès » Wed 8 Apr 2015 11:08

As I can understand annotatedElement exists to allow a given comment to comment several elements, the day we will see that case or a comment not owned by its annotated element the pigs will fly ;)

Anyway I will manage annotatedElement :roll:
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 472
Joined: Mon 20 Feb 2012 08:23
Location: France

Re: XMI comment generation

Postby Bruno Pagès » Fri 10 Apr 2015 08:50

you can get in advance http://www.bouml.fr/files/Bouml_6.8.4_setup.exe to fix that problem, the 6.8.4 will be officially delivered soon when I will finish to make the packages for Linux
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 472
Joined: Mon 20 Feb 2012 08:23
Location: France

Re: XMI comment generation

Postby Bruno Pagès » Sat 11 Apr 2015 03:22

The release 6.8.4 is available with the new XMI generation/import for comments
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 472
Joined: Mon 20 Feb 2012 08:23
Location: France


Return to Bug reports / Rapports de bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron