I'm just starting to learn about UML and now learning Activity diagram. I was wondering if this would be acceptable as a activity diagram for the program? If not how could I improve?
It's a simple C# console program and works like this:
Starting, the user will receive a bunch of animals. Then from a main menu choose a task/option to do. Some of the menu options also requires user to choose one of animals (to preform task with). After the task is done user will be returned to the menu to choose something else until the user chooses to quit.
Your AD isn't too bad. Just a few errors:
Choose what animal
has three incomming control flows. However, only one of them will present a token since only one of the actions above is possible to be chosen. That's where the deadlock is. You fix that simply by first using a MergeNode (like you did at the bottom) right before that action.[Quit chosen]
to make them guards.