Describe Activity Diagrams
Define and visualize the flow of data through actions to validate functional system design
Author executable activity diagrams for your architecture models or components to define and validate functional requirements. Use activity diagrams in System Composer™ to visualize data flow through actions. Create directed relationships with allocations from activity diagram elements to architecture model elements to further describe the functional design of your system.
Classes
Functions
Activity Nodes
| Initial Node | Dispatch control token at beginning of activity |
| Action Node | Process object tokens through MATLAB function or nested activity diagram |
| Pin | Direct tokens into or out of an action node |
| Parameter Node | Process tokens through a nested activity diagram |
| Decision or Merge Node | Route input tokens based on evaluation of MATLAB expressions, or merge multiple input tokens onto one output flow |
| Join or Fork Node | Synchronize multiple input tokens into one output, or replicate one input token on all output flows |
| Flow Final Node | Terminate one object or control flow |
| Activity Final Node | Terminate entire activity |
Tools
| Types Editor | Create custom data types (Since R2024a) |
| Allocation Editor | Create and manage model-to-model allocations |
| Profile Editor | Create and manage profiles with stereotypes and properties |
Topics
- Describe System Behavior Using Activity Diagrams
Learn about and interact with activity diagrams in System Composer.
- Author a Simple Activity Diagram
Create action nodes, token-based flows, merge nodes, and types for input pins.
- Establish Traceability and Extend Model Elements
This topic describes elements of an activity diagram for a mobile robot.
- Simulate, Visualize, and Validate Activity Diagrams
Simulate, visualize, and debug activity diagrams in System Composer.
- Model Complex Objects in Activity Diagrams Using MATLAB Class Tokens
Model activity diagram that processes MATLAB class tokens.


