The Activity Diagram

The activity diagram is the “new kid on the block,” a special form of state diagram. Each state is considered an activity state that executes and then progresses to the next activity state. An activity diagram models workflows, computations, and complex operation steps.

Activity diagrams also are beneficial during the use-case definition process. Pathways within the use-cases can be easily modeled with an activity diagram (rather than an alternative outline format). Figure 7-13 shows an activity diagram for the checkCredit() operation in the Remulak Productions Order class.

Figure 7-13. Activity diagram for the checkCredit() operation in the Order class

The activity diagram resembles a flowchart; notice that it includes a ...

Get Developing Applications with Java™ 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.