XMI & UML Sequence diagrams

Hi everybody!
Does anybody know where I can find some example or tutorial on how to write an XML file (following the XMI specification) representing an UML sequence diagram?
I mean...I want to be able to write that XMI file in order to give it to a UML tool that can read it and transform it into a UML sequence diagram.
Thanx
Lexis

There's very little hand-authored XMI around, so the only tutorial you're likely to find is:
- create sequence diagram in UML tool
- press export to XMI button
If you're trying to use a specific tool or library, indicate which; if you're trying to work from the XMI specs, indicate which version and which tool you're targetting.
You may well be best off exporting a few simple sequence diagrams from your tool of choice, then reverse engineering them, as tracing through the XMI -> MOF -> UML specs is both time consuming, and libiable to throw up inconsistancies, semantic variation points and implementation options.
Pete

Similar Messages

  • UML Sequence diagram and class diagram

    Making UML sequence diagram I didn't put activation rectangle in first object(UI) assuming that this object is always active. Is this correct? Not according to my tutor and I have to quote him:
    "Finally, you have no activation rectangle for the userInterface instance, so the initial message could never have been sent."
    Another thing he is picking me at is and I'm quoting him:
    "In class diagram the generalisation arrow heads should be open triangles."
    In my opinion there isn't strictly said that they must be open triangles especially when software lets you choose their form. Looking forward to hear your opinions.
    Thanks for answers.

    atch7 wrote:
    Making UML sequence diagram I didn't put activation rectangle in first object(UI) assuming that this object is always active. Is this correct? Not according to my tutor and I have to quote him:
    "Finally, you have no activation rectangle for the userInterface instance, so the initial message could never have been sent."
    Another thing he is picking me at is and I'm quoting him:
    "In class diagram the generalisation arrow heads should be open triangles."
    In my opinion there isn't strictly said that they must be open triangles especially when software lets you choose their form. Looking forward to hear your opinions.
    My opinion is that in the real world that is meaningless. In the real world you might encounter one or more of the following situations.
    - There is no UML diagrams at all (thus whether one is active or not is moot.)
    - The UML diagrams are very high level and intended merely as a starting point. Missing details does not mean that you are free to ignore that the system must still run when you are done with it.
    - You will use a UML design tool that generates code, and you fill in blocks within it. Then of course details in the UML will matter. The chance that you will actually encounter this situation is almost zero. Realistically the only real place you might encounter this is if your work for a company that produces UML design tools.

  • Creating UML sequence diagrams using UML Modeler

    Has anyone tried to generate UML sequence diagrams using JDev's Modeler utility. Is there a workaround for creating sequence diagrams. Does Oracle have an very near-term plans for supporting sequence diagrams.
    Thank you.
    Antonio

    While I've done a bit of work with UML, I'm by no means an expert, so this may be a dumb question...
    Isn't the point of UML (and other modeling languages) to abstract the design of a system away from the implementation? I'm hard pressed to think of a situation where a UML diagram would change based on the language chosen for implementation.
    Justin

  • Oracle UML Sequence Diagram

    hi all
    Is there any way to UML generate sequence diagram in JDev 11R2 .
    Thank you for your time.

    Yes, with the Studio edition.
    File->New. Choose the "All technologies" tab, General, Diagrams, Sequence Diagram

  • Sequence Diagram (UML)

    If I wish to represent the use case of "viewing an online document" in a UML sequence diagram. How is the document represented? As an object ? It is not an instance of a class ? This has been boggling my mind for a day !!! Please, help !

    Of course you can demonstrate this use case with a sequence diagram. You do not need to have a symbol representing "the document", and in UML 2 there is no such notation.
    To create the sequence diagram, you show the object interactions of this behavior. So you might have notation for Object 1 and Object2. And show (using arrows) how Object1 makes a method call such as viewDocument() and how Object2 (an arrow pointing at Object1's swimlane) provides the document for viewing. This is the representation of the behavior of viewing a document.
    If you want to extend UML, which you can certainly do, you can put a little document icon above the arrows to convey that this is what is being returned to Object1. This is not necessary though.
    Collaboration diagrams show relationships of object interactions with emphasis on structure.
    Sequence diagrams show same information but with emphasis on time and sequential processing.

  • Sequence diagram lifeline in Oracle BPA Suite

    I try to create sequence diagram in Oracle Busines Process Architect 11g. I use type of model "UML Sequence diagram". But in palette there is no object with type "Lifeline". How can I add lifelines to my sequence diagram?

    i guess you are clicking on file>new>model , or something like that.
    y dont you first go to designer/explorer , make sure you see the navigator frame, and click on "local" in navigator frame to start the local database first. adn then login to any database to create a model/group.
    In case it does not even happen then, and it still says unable to start the local server, check out the logs in <Oracle BPA Suite>\LocalServer\log directory and check what the error is.

  • Automatically creating sequence diagram.

    Hi,
    Is there any way to create UML sequence diagram automatically from the existing java code? I am using jdeveloper 11.1.2.2.0. I know this feature is there in older versions, debug->debug with diagram. How can I achieve that in this version?
    Regards,
    Infy

    HI Shay,
    Thanks for your reply. Is there possibilities to create activity diagram from existing code in 11g?
    Regards,
    Infy

  • Generating Sequence Diagram

    Hi,
    are there any programs that can generate automatigally an UML Sequence Diagram from a running Java program?
    Thanks.

    Hi,
    are there any programs that can generate
    automatigally an UML Sequence Diagram from a running
    Java program?
    It can be done with Rational Rose it seems..
    Yesterday only my onsite guy told me that.. I'm yet to find out how
    -TC

  • Message order in Papyrus sequence diagram xmi file

    Dear all,
    I would like to ask you if you could help me by explaining me how message ordering information of Papyrus sequence diagrams is represented in the corresponding xmi files.
    For each lifeline, I would assume that the order of messages is shown in the xmi file in the coveredBy attribute of the respective lifeline element.
    If yes, I have observed that the order there is not shown correctly. Adding a message seems to be always appended at the end of the messages list, instead of being inserted inbetween its neighbouring messages.
    If no, then how can I get from the xmi file the message order for a single lifeline?
    I am using just two simple lifelines exchanging messages, without any combined fragments or complex notation. My Eclipse version is Luna, and I just downloaded the Papyrus 1.1.0 version, the one that Mars uses.
    Thank you a lot in advance. Any information you could provide me regarding this issue would be extremely useful.
    Best regards,
    Alkis

    Since I haven't still got any answer, let me rephrase the question and make it more general:
    Do Papyrus sequence diagrams store message order information?
    As far as I have understood, they should, but I believe that it is a Papyrus bug that, when creating a new message, order of MessageOccurrenceSpecification fragments in XMI file is most frequently not respected. The same can be seen from the MessageOccurrenceSpecification fragments in the Model Explorer for the respective interaction in Papyrus IDE, order of them frequently seems random.
    Another thing which I strongly believe is a bug is that, when creating a new combined fragment sometimes the lifeline information of message events in the XMI file gets lost (attribute 'coveredBy' of each lifeline, and attribute 'covered' of each MessageOccurenceSpecification fragment get blank).
    In any case, I would be really grateful if someone could answer my initial question so that I know that these assumptions are correct, find a way to temporarily circumvent the problem and file a bug report about that.
    Best regards,
    Alkis

  • JDeveloper 11g - UML 2.0 Sequence diagram features ?

    Hi,
    Can anybody confirm that JDeveloper 11g supports UML 2.0 features for Sequence diagram or not ?
    Thanks.
    regards,
    Priya Ranjan Sahay

    Thanks.
    I have been looking for alt and other looping & conditional features, which is, as per my understanding, is introduced with UML 2.0.
    I have been working on JDeveloper 10.1.3 & its not there.

  • Open source UML tool for Code ----- Sequence Diagram ?

    Are there any open source / free tools which can generate sequence diagram from java code ?
    Thanks in Advance
    Ratheesh

    check-out www.logsequencer.com - it is a very cool tool and is only $19.
    It generates sequence diagrams from log files.

  • UML:  Reverse engineering and sequence diagram

    Hello,
    I would like to know if anybody knows a tool which can reverse a java application and return its sequences diagram. I know that Rational Rose and Together haven't such functions, they can only return the static view af an application (class diagrams). I need a tool like this to document some of my applications.
    Thanks for your response,
    Manu.

    Hello,
    I would like to know if anybody knows a tool which can
    reverse a java application and return its sequences
    diagram. I know that Rational Rose and Together
    haven't such functions, they can only return the
    static view af an application (class diagrams). I need
    a tool like this to document some of my applications.Together 6.0 can build Sequense diagram

  • How to create Sequence Diagrams in Jdev 10.1.3?

    Hi there,
    I´m migrating (trying) from Eclipse to JDeveloper and I´m having several dificulties....
    I´m creating a new project in JDeveloper:
    0) create an application workspace [ok]
    1) create a web application project [ok]
    2) create some packages and Java classes [ok]
    3) create a class diagram related to the
    above classes [ok]
    4) create a sequence diagram [ok]
    5) use the classes into the sequence
    diagram [more and less]
    6) use the methods of the classes into
    the message lines of the sequence
    diagram [no]
    Some observations that are messing me:
    1) Do I need to create an "Object Lifetime" for
    every class and after that select "Attach Classifier" ?? Why I can´t just drag the classes into the diagram (like Jude) ?
    2) Can I use the methods already defined in the classes to create messages in the sequence diagram?
    3) The sequence diagram od JDeveloper is disconnected from the project classes? i.e., is it just a draw ?
    best regards,
    Felipe Gaúcho

    Hi,
    I am glad to find that you are working on the sequence diagram. I take your point about selecting the methods and assigning them to the messages. Unfortunately this feature is gated by some architecture changes and it something I will be actively pursuing as soon as it is possible.
    In reply to your other points:
    1) Do I need to create an "Object Lifetime" for
    every class and after that select "Attach Classifier" ?? > Why I can´t just drag the classes into the diagram (like > Jude) ?The reason for this is that the sequence modeler is simply a view onto a single diagram type that can contain any object. This allows the mingling of different UML type on the same diagram. It can be usefull to mix usecase and seqeunce for example.
    For that reason the default action for java class is to model a java class, and you do indeed need to create a lifeline first. Did you know you could drag and drop the classifier, in your case a java class, from the navigator onto the lifeline. This might be quicker in your case.
    2) Can I use the methods already defined in the classes > to create messages in the sequence diagram?As noted before in the preview you can't select existing messages. This is something we would like to add as soon as it is possible.
    3) The sequence diagram od JDeveloper is disconnected
    from the project classes? i.e., is it just a draw ?The sequence modeler isn't totally disconnected from the project classes; but it wont update as you edit the code if this is what you mean.
    Could you perhaps expand on this point a little bit?
    Thanks,
    Gerard Davison
    UML Modelers

  • Saving Sequence Diagrams in Sun Java Studio Enterprise 8

    I'm having trouble saving my sequence diagrams! I create the diagrams press ctrl-s, click the Save-All button, when I close and reopen SJSE8 some of my diagrams are missing! When I look in the directory it appears that they have been saved because I have .eltd and .etlp files with the name of the diagram.
    In SJSE8 I still have the entries under Model, but not under Diagrams.
    It appears that the "link" or the "reference" to the file where the diagram has been saved is broken.
    Anybody have any ideas on how to fix this?

    I tried what you said on both Windows 2000 and Windows XP but could not reproduce the issue that you have. Could you please provide more detail like the following see if I can reproduce in order to help you.
    - what UML project type did you create (Platform-Independent Model, Java-Platform Model, etc.)? If Java-Platform Model, did you associate a Java project for code generation?
    - how many sequence diagrams do you have?
    - are the sequence diagrams created inside the package or just under the Model level scoping?
    - do you have other diagrams in the project too? If so, what type and how many of each type?
    - any other info you can provide will help
    Thanks,
    Peter

  • Reducing the width of a sequence diagram

    Does anyone know how to reduce the width of a reverse-engineered sequence diagram?
    Studio sequence diagrams are very wide in relation to their height. This is because horizontal messages are separated by only small amounts, but the vertical lifelines are separated by large amounts, especially if the objects have long names and class names.
    This feature causes problems when trying to export diagrams to A4 landscape pages.
    In other UML editors, I could overcome this problem by arranging the objects as in two rows of "bricks" along the top of the page. The first object would be in a "normal" position. The second object was positioned high enough to partially overlap the first object. The third object was placed in the "normal" position, but partially below the second object. And so on.
    This allowed the width of a sequence diagram to be reduced to almost half of its original width.
    This is not possible in Studio, because:
    1) The objects cannot be moved vertically.
    2) Even if they could be moved vertically, they will not allow themselves to overlap another object. This is because the bounding box of the objects extends right down to the foot of the lifeline. (I don't know if "bounding box" is the correct term. I mean the box with the sizing handles.) When one object is dragged to the left so that it overlaps another object, any objects to the left of the dragged object immediately jumpfurther to the left.
    Another possibility to reduce the width would be to allow the object name and class name to be on two lines. Such as:
    objectName:
    ClassName
    This happens by default in some UML editors.

    petersl wrote:
    Found a better way to duplicate the sequence diagram
    as a workaround for the Save As function.Great suggestion! Thanks!
    Because of the estimated large amount of sequence diagrams that I need to do, your tip will save me hours of work. Even if "Save As" is implemented, it will not be much faster than your method.
    Here is an interesting feature of your suggestion.
    All my experimentation is done using the BankAccount tutorial. I have several "copies" of the same operation. Each copy was produced using "Reverse Engineer Operation" on the class operation in the dependency diagram. I then modified each "copy" beyond all recognition.
    If I now invoke "Create Diagram from Selected Elements" on the sequence diagram interaction node for each copy, each new diagram is the same as the original reverse-engineered diagram :)
    BTW, here is my non-techie solution for copying. No LOL please.
    In the project file location, there are two files for each sequence diagram. For example:
    mainSD_1168604900517.etld
    mainSD_1168604900517.etlp
    These files can be copied. However, they must be copied to file names that are registered by studio.
    1) Copy the two files, using arbitrary file names.
    1) Reverse engineer a new sequence diagram simply to get two more file names.
    2) Rename the two copies to these new file names :)
    3) In the project tree in studio, this would produce duplicate diagram names. So in the ETLP file rename the diagram using the <diagramInfo> tag.
    You might wonder why I go to so much trouble to produce a copy, rather than simply reverse-engineer as many copies as I need. The answer is that on the first sequence diagram, I would like to make changes that persist in every other copy of that diagram, even after messages and lifelines are removed to split the diagram.
    Compared with my method, your method will allow me to take a couple of months off, and still produce the same amount of work :)

Maybe you are looking for