Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Read sequence diagram Xmi by EMF(Read sequence diagram Xmi by EMF)
Read sequence diagram Xmi by EMF [message #1746479] Sun, 30 October 2016 17:14 Go to next message
Danny Deina is currently offline Danny DeinaFriend
Messages: 7
Registered: December 2015
Junior Member
Hello,

I am trying to read sequence diagram xmi generated by IBM Rational software architect , by using EMF but i still can't read the xmi file. Is it possible to read the sequence diagram xmi file using EMF ?! can you please provide me tutorial about how to read sequence diagram xmi using EMF.


Thanks
Re: Read sequence diagram Xmi by EMF [message #1746487 is a reply to message #1746479] Mon, 31 October 2016 06:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31917
Registered: July 2009
Senior Member
You'll need the associated sequence diagram model(s) to be able to read the instance file. Do you have that in your runtime?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Read sequence diagram Xmi by EMF [message #1746556 is a reply to message #1746487] Mon, 31 October 2016 21:11 Go to previous messageGo to next message
Danny Deina is currently offline Danny DeinaFriend
Messages: 7
Registered: December 2015
Junior Member
i have the model, the content of xmi file:
  <uml:Package xmi:id="_TGHOYJuGEeapgJGdwfQEkw">
    <packagedElement xmi:type="uml:Collaboration" xmi:id="_TGTboJuGEeapgJGdwfQEkw">
      <ownedBehavior xmi:type="uml:Interaction" xmi:id="_TGTboZuGEeapgJGdwfQEkw">
        <ownedConnector xmi:id="_bTJhQJuGEeapgJGdwfQEkw">
          <end xmi:id="_bTJhQZuGEeapgJGdwfQEkw" role="_Xx4Z8JuGEeapgJGdwfQEkw"/>
          <end xmi:id="_bTKIUJuGEeapgJGdwfQEkw" role="_UyvvUJuGEeapgJGdwfQEkw"/>
        </ownedConnector>
        <lifeline xmi:id="_UxZrgJuGEeapgJGdwfQEkw" name="Property" represents="_UyvvUJuGEeapgJGdwfQEkw" coveredBy="_bTF24JuGEeapgJGdwfQEkw _bTI6MpuGEeapgJGdwfQEkw"/>
        <lifeline xmi:id="_Xx3y4JuGEeapgJGdwfQEkw" name="Property2" represents="_Xx4Z8JuGEeapgJGdwfQEkw" coveredBy="_bTGd8JuGEeapgJGdwfQEkw _bTITIJuGEeapgJGdwfQEkw _bTI6MJuGEeapgJGdwfQEkw"/>
        <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_bTF24JuGEeapgJGdwfQEkw" covered="_UxZrgJuGEeapgJGdwfQEkw" message="_bS5CkJuGEeapgJGdwfQEkw"/>
        <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_bTGd8JuGEeapgJGdwfQEkw" covered="_Xx3y4JuGEeapgJGdwfQEkw" message="_bS5CkJuGEeapgJGdwfQEkw"/>
        <fragment xmi:type="uml:BehaviorExecutionSpecification" xmi:id="_bTITIJuGEeapgJGdwfQEkw" covered="_Xx3y4JuGEeapgJGdwfQEkw" start="_bTGd8JuGEeapgJGdwfQEkw" finish="_bTI6MJuGEeapgJGdwfQEkw"/>
        <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_bTI6MJuGEeapgJGdwfQEkw" covered="_Xx3y4JuGEeapgJGdwfQEkw" message="_bTI6MZuGEeapgJGdwfQEkw"/>
        <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_bTI6MpuGEeapgJGdwfQEkw" covered="_UxZrgJuGEeapgJGdwfQEkw" message="_bTI6MZuGEeapgJGdwfQEkw"/>
        <message xmi:id="_bS5CkJuGEeapgJGdwfQEkw" name="message1" receiveEvent="_bTGd8JuGEeapgJGdwfQEkw" sendEvent="_bTF24JuGEeapgJGdwfQEkw" connector="_bTJhQJuGEeapgJGdwfQEkw"/>
        <message xmi:id="_bTI6MZuGEeapgJGdwfQEkw" name="message1" messageSort="reply" receiveEvent="_bTI6MpuGEeapgJGdwfQEkw" sendEvent="_bTI6MJuGEeapgJGdwfQEkw" connector="_bTJhQJuGEeapgJGdwfQEkw"/>
      </ownedBehavior>
      <ownedAttribute xmi:id="_UyvvUJuGEeapgJGdwfQEkw" name="lifeline1"/>
      <ownedAttribute xmi:id="_Xx4Z8JuGEeapgJGdwfQEkw" name="lifeline2"/>
    </packagedElement>
    <profileApplication xmi:id="_TUK4gJuGEeapgJGdwfQEkw">
      <eAnnotations xmi:id="_TVIh0JuGEeapgJGdwfQEkw" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbnfB2L_5w"/>
      </eAnnotations>
      <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
    </profileApplication>
    <profileApplication xmi:id="_TVS54JuGEeapgJGdwfQEkw">
      <eAnnotations xmi:id="_TVTg8JuGEeapgJGdwfQEkw" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="pathmap://UML2_MSL_PROFILES/Default.epx#_fNwoAAqoEd6-N_NOT9vsCA?Default/Default?"/>
      </eAnnotations>
      <appliedProfile href="pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8whjFA?Default?"/>
    </profileApplication>
    <profileApplication xmi:id="_TVTg8ZuGEeapgJGdwfQEkw">
      <eAnnotations xmi:id="_TVUIAJuGEeapgJGdwfQEkw" source="http://www.eclipse.org/uml2/2.0.0/UML">
        <references xmi:type="ecore:EPackage" href="pathmap://UML2_MSL_PROFILES/Deployment.epx#_4OVBUD0TEeKt-L0gyEptgQ?Deployment/Deployment?"/>
      </eAnnotations>
      <appliedProfile href="pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bji0iVSA?Deployment?"/>
    </profileApplication>
  </uml:Package>

can you provide me please tutorial how to read xmi model and get lifeline and messages nodes which represent the sequence diagram
Re: Read sequence diagram Xmi by EMF [message #1746570 is a reply to message #1746556] Tue, 01 November 2016 06:57 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31917
Registered: July 2009
Senior Member
It appears you have an instance of the UML2 model. All the documentation for UML2 is here:

https://wiki.eclipse.org/MDT/UML2

You can ask specifically about UML2 on the UML2 forum.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Deserializing JSON to EMF
Next Topic:[CDO] Programmatically adding securityManager
Goto Forum:
  


Current Time: Wed Jun 23 00:56:25 GMT 2021

Powered by FUDForum. Page generated in 0.02340 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top