1.4.3 Activity Diagrams in Violet UML

Violet Lets You Build the Activity Flow Visually

Violet UML provides an editor for creating activity diagrams.

Before opening Violet, identify the process you need to model.

A simple plan might be:

Activity diagram showing Start, then Receive player information, then Update player, then End.
Start.
  • New
  • Changed
  • Removed

The software records the diagram.

It does not decide the process for you.

Start with the Required Diagram Type

Create the activity-diagram type used by the course.

Do not begin with an object, class, or sequence diagram and try to make it behave like an activity diagram.

Each UML diagram type answers a different question.

Add the Start Node

Place one clear starting point for the current activity.

The start node tells the reader:

The next page in this batch explains start nodes in more detail.

Add Action Nodes in Process Order

Create an action node for each meaningful step.

For example:

Receive jersey number
Assign jersey number
Display player

Arrange the nodes so the visual order supports the intended flow.

Then connect them with directed arrows.

Add a Decision Only When the Process Actually Branches

Suppose the process needs to choose based on availability.

A conceptual flow is:

Activity diagram showing Is player available?, then yes Display available status, then no Display unavailable status.
IsPlayerAvailable.
  • New
  • Changed
  • Removed

Use a decision node only when alternate paths are part of the behavior.

Do not add branches merely to make the diagram look more complex.

Label Paths Clearly

When a decision is present, the reader should be able to understand what makes each path apply.

For introductory Boolean decisions, labels such as:

[true]
[false]

can communicate the path condition.

Use the notation required by the course's current UML expectations.

Add the End Node

A complete activity should make it clear where the modeled process finishes.

If several alternate paths all complete the same activity, arrange the flow so the reader can see how each path reaches the intended ending.

Keep the Diagram Readable

A technically correct diagram can still be difficult to read.

Prefer:

  • short action labels;
  • visible arrow direction;
  • minimal crossing lines;
  • enough spacing between nodes;
  • a clear top-to-bottom or otherwise consistent flow.

Layout should support understanding.

Save the Editable Violet File

Use the filename and location required by the current activity.

The editable Violet file is the source artifact.

A screenshot can show the diagram, but it is not a replacement for the editable model when revisions are needed.

Read the Finished Diagram as Plain Language

For example:

If you cannot read the model as a coherent process, revise the structure before treating it as finished.