• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to call use case from a sequence diagram?

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

Does anyone know how to call an included use case from a sequence diagram?

Thanks in advance.

-Saha
 
Saha Kumar
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

Let me try again...how do I call one sequence diagram from another?

I have a sequence diagrams which are called from other sequence diagrams.

Thanks in advance.

-Saha
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unless your models are executable or you are being graded at school, you can be pretty flexible about such things. You get to choose the level of abstraction so when a message comes into an object you decide whether to show all the details right there or in another diagram or never. You could just put a comment "See diagram xyz" or some of your diagrams might be named "MyClass.someMethod()" so readers can quickly see whether a more detailed breakdown exists on their own.
 
Bartender
Posts: 1205
22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Stan. Another way to look at it is that your diagrams have to be only as rigorous as the intended audience needs them to be.

That being said, look at this page from IBM and scroll down to Figure 11.
 
author
Posts: 608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Example sequence diagram shows one way to model an included use case on a sequence diagram.

If you're looking at it from a technical point of view, e.g. one sequence calling another, what is really going on is one sequence diagram invokes an operation, and the details of that operation (at least one scenario invoking it) are described by another diagram (could be a sequence diagram, could be an activity diagram, could be...).

- Scott
 
Saha Kumar
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I have the following sequence diagram:

---getData---> DAO ---->

this section is involved,
so I want to place it
in another diagram

-----add row ----> ValueObject


What legitimate UML 2.0 symbol can I insert to replace the wording between DAO and add row ? DAO and ValueObject are used frequently in the diagram that I want to use the symbol in.

I am using Enterprise Architect(EA) with UML 2.0. EA does not support the fragment type, ref.

Any ideas?

Thanks for any help.

Ryan, I have looked at the link from IBM, and Enterprise Architect does not have the fragment type, ref. Maybe I could just use a note and put the ref text ? Thanks. Saha


-Saha
 
Scott Ambler
author
Posts: 608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would just show the addRow() operation be invoked on the first diagram as a recursive call on DAO (assuming that's the way that it works).

Then, if you want to have another sequence diagram showing the details of the addRow() logic the implication is that this logic is automatically invoked.

In short, you don't need some sort of "off page connector" symbol.

- Scott
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Saha Kumar:
Hello all,

I am using Enterprise Architect(EA) with UML 2.0. EA does not support the fragment type, ref.

Any ideas?

Thanks for any help.

-Saha



EA does support the fragment type "ref". To invoke one Sequence Diagram from another Sequence diagram, simply the drag the to be invoked sequence diagram into the calling sequence diagram and place it wherever u want as per your flow. Dragging sequence diagram generates "Ref" fragment specified in UML2.0.I hope this clarifies.

regards
Karim
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic