Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity diagram for switch case #144

Open
woon17 opened this issue Oct 24, 2019 · 2 comments
Open

Activity diagram for switch case #144

woon17 opened this issue Oct 24, 2019 · 2 comments

Comments

@woon17
Copy link

woon17 commented Oct 24, 2019

For the activity diagram, if I have switch case (4 cases), can I just use one diamond and output 4 lines for 4 different cases?

@woon17
Copy link
Author

woon17 commented Oct 24, 2019

@damithc
Copy link
Collaborator

damithc commented Oct 24, 2019

A diamond can be the starting point of any number of alternative branches. However, make sure the branches are mutually exclusive i.e., use one diamond only if the order of the case statements don't actually matter. If the order matters, it would be incorrect to show them as starting from the same diamond; instead, the diagram should explicitly show which condition is checked first, and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants