Activity Diagrams

An alternate, and some would argue a more powerful, tool in the UML arsenal for such use case analysis is the UML activity diagram. For instance, activity diagrams can more easily show multiple paths taken as a result of actor decision and system exceptions. This is difficult to show in a sequence diagram as sequence diagrams are intended to show interaction among objects in the context of a single scenario.

An activity diagram is similar in concept to a flowchart and is useful for modeling workflow as well as illustrating dynamic behavior of a use case and the detailed design of an operation.

An activity diagram shows the flow of control for the use case from one activity to the next. An activity represents some action that ...

Get Developing Enterprise Java Applications with J2EE™ and UML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.