Re: [mdr-users] NetBeans MDR and ARIS UML Designer

Martin Matula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
What do you mean by saying that MDR does not resolve type reference? 
Does it throw an exception? What exception? Could you provide a stacktrace?
I was not able to catch what exactly you modified in the XMI file to 
make it work.
Martin

[email protected] wrote:

>Hello,
>
>I'm (still...) quite new to NetBeans MDR, so please excuse any silly
>questions...
>
>I'm using NetBeans in the context of AndroMDA (www.andromda.org) and ARIS
>UML Designer. I would like to use an AndroMDA Cartridge (Bpm4Struts) witch
>requires to provide a tagged value for a use case with a certain
>stereotype.
>
>So the XMI-Export of ARIS look something like this:
>
><?xml version="1.0" encoding="UTF-8" ?>
><XMI xmi.version="1.1" xmlns:UML="//org.omg/UML/1.4">
>  ...
>  <XMI.content>
>    <UML:Model name="Bpm4Struts" xmi.id="ID.b6----4-----p--" xmi.uuid
>="ID.2d196eb0-995d-11d9-1068-00e000f95533">
>      <UML:Namespace.ownedElement>
>      ...
>            <UML:Stereotype name="FrontEndUseCase" xmi.id
>="ID.ls----4-----p--" xmi.uuid="ID.545a57d0-995f-11d9-1068-00e000f95533"
>isSpecification="false" namespace="ID.bi----4-----p--" isRoot="false"
>isLeaf="false" isAbstract="false">
>
><UML:Stereotype.baseClass>UML::behavioralelements::usecases::UseCase</UML:Stereotype.baseClass>
>              <UML:Stereotype.definedTag>
>                <UML:TagDefinition xmi.idref="ID.2o----5-----p--">
>                </UML:TagDefinition>
>              </UML:Stereotype.definedTag>
>            </UML:Stereotype>
>            ...
>                    <UML:UseCase name="Ticketreservation" xmi.id
>="ID.9-----6-----p--" xmi.uuid="ID.e59a3a81-9b71-11d9-1068-00e000f95533"
>isSpecification="false" namespace="ID.dz----4-----p--" isRoot="false"
>isLeaf="false" isAbstract="false">
>                      <UML:ModelElement.stereotype>
>                        <UML:Stereotype xmi.idref="ID.ls----4-----p--"/>
>                      </UML:ModelElement.stereotype>
>                      <UML:ModelElement.taggedValue>
>                        <UML:TaggedValue xmi.id="ID.10----6-----p--"
>xmi.uuid="ID.fd0f7a40-9b71-11d9-1068-00e000f95533" type
>="ID.2o----5-----p--">
>
><UML:TaggedValue.dataValue>TicketreservationGraph</UML:TaggedValue.dataValue>
>                        </UML:TaggedValue>
>                      </UML:ModelElement.taggedValue>
>                    </UML:UseCase>
>            ...
>      </UML:Namespace.ownedElement>
>    </UML:Model>
>  </XMI.content>
></XMI>
>
>So the Use Case "Ticketreservation" has the stereotype "FrontEndUseCase"
>referenced via xmi.idref="ID.ls----4-----p--" and a tagged value
>"TicketreservationGraph" of type "@andromda.struts.usecase.activity",
>referenced via type="ID.2o----5-----p--".
>
>Now the problem seems to be that the type reference isn't resolved by MDR.
>As soon as I patch the XMI-File produced by ARIS like this:
>
><UML:UseCase name="Ticketreservation" xmi.id="ID.9-----6-----p--" xmi.uuid
>="ID.e59a3a81-9b71-11d9-1068-00e000f95533" isSpecification="false"
>namespace="ID.dz----4-----p--" isRoot="false" isLeaf="false" isAbstract
>="false">
>  <UML:ModelElement.stereotype>
>    <UML:Stereotype xmi.idref="ID.ls----4-----p--"/>
>  </UML:ModelElement.stereotype>
>  <UML:ModelElement.taggedValue>
>    <UML:TaggedValue xmi.id="ID.10----6-----p--" name="
>@andromda.struts.usecase.activity" xmi.uuid
>="ID.fd0f7a40-9b71-11d9-1068-00e000f95533" type="ID.2o----5-----p--">
>
><UML:TaggedValue.dataValue>TicketreservationGraph</UML:TaggedValue.dataValue>
>    </UML:TaggedValue>
>  </UML:ModelElement.taggedValue>
></UML:UseCase>
>
>the further processing by AndroMDA works fine.
>
>Is the anyone who can confirm this?
>Is there any way to "see" the content of the MDR after it reads in an
>XMI-File? I think there was a MDR Browser as a NetBeans Plugin, but it
>seems that this doesn't work with NetBeans 4 anymore...
>
>Any help would be very welcome...
>
>Regards
>Stefan
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.