Let’s draw the following activity diagram. This activity diagram is taken from “Figure D.38 – Detailed Behavior Model for “Provide Power” (Activity Diagram)” in the SysML 1.5 specification.
Activity diagrams are easy to understand because they represent the flow of operations in a diagram similar to a Flowchart diagram.
First, let’s create all vertical partitions. Click on the “Vertical Partition” button and click on the diagram to place the vertical partitions.
Rename one “pcu:PowerControlUnit”, then “pcu:PowerControlUnit” and”epc:ElectricalPowerController” partition.
From here, we can create Actions, ObjectNodes, and Activity ParameterNodes. The creation process is the same as for Blocks and UseCases, just select the respective tool button and click on the desired location.
You can create Actions by selecting “Action” on the tool palette or by directly double-clicking on the diagram.
Blocks (base blocks) for ParameterNodes can be edited on the diagram or in the properties view.
Also, add the “continuous” stereotype to both “accelPosition” and “eThrottle” blocks. You can do so by selecting the block in the structure tree first and going to the Stereotypes tab in the Properties View.
Let’s create an Input Pin
Select the “Input Pin” tool button and click on the a1 Action.
Let’s connect each item with an arrow that represents the flow of motion.
Select the Object Flow on the tool palette and click on the two items to connect.
Once you get familiar with the mini icon that appears when you have a mouseover an object, it’d be much easier and faster to connect items by using that.
You can download the file that contains this Activity Diagram from here.