• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Showing conditions in sequence diagrams

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

Hello,

Is it a good idea to show conditions(if -then-else) in sequence diagrams?

I have a following scenario:

1) SuD checks external system for a value

If that value is insufficient then

validate some rules

if rules satisfies then

send a request to Some Other component

2) How to show external systems and web services in a sequence diagrams?

Searched this forum and found

external system can be shown as an Entity and adding some notes to it
web services can be shown as object with sterio type <<web service>>

Is this the right approach?

Certified guys, please provide your suggestions.

Thanks,
Sree





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

Hi Kumar,


I used if-else condition in the sequence diagrams in a limited way. As long as the diagram is not getting complicated it is ok. If you have too many condition check. then think about splitting the diagrams.I have done that for authentication in my case.

Regarding your Q2, I completely omitted , 'what kind of component' information from my sequence diagrams, according to me, it is for explaining the message flow. In real life also we don't show component details in sequence diagrams.

Unni
 
Srinivas Pittala
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Unni ,Thank you very much for your response..

Q1: I will use

Q2: I read in this forum, all the classes and public methods in a class diagram should use in sequnce diagram .
In class diagram i represented external web services as subsytem with steriotype <<webservices>>
that means i can use the same as a lifeline ..

Thanks,
Sree
 
The only cure for that is hours of television radiation. And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic