M. Nasir Javaid
M. Nasir Javaid

Reputation: 5990

How to show If else condition in a UML system sequence diagram

Is it possible to describe an if-else structure in a system sequence diagram? If yes, how is this done?

Upvotes: 3

Views: 17945

Answers (3)

dulaj sanjaya
dulaj sanjaya

Reputation: 1340

Yes. This can be done in sequence diagrams. Not only if else,You can show loops, breaks and parallel etc.You have to learn combined fragment which is a sub-type of interaction fragment, to do that.

Upvotes: 0

Esther Fan - MSFT
Esther Fan - MSFT

Reputation: 8546

Here's more info about combined fragments from the VS 2010 sequence diagram documentation:

Upvotes: 5

ire_and_curses
ire_and_curses

Reputation: 70230

Yes, this can be done in UML 2 using the 'Alternative' combined fragment type, although personally I find them relatively difficult to read. There is a good example in this IBM DeveloperWorks article.

Upvotes: 4

Related Questions