How to show If else condition in a UML system sequ

2019-07-06 23:36发布

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

3条回答
Summer. ? 凉城
2楼-- · 2019-07-07 00:05

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.

查看更多
放我归山
3楼-- · 2019-07-07 00:21

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

查看更多
放我归山
4楼-- · 2019-07-07 00:25

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.

查看更多
登录 后发表回答