Describe Activity Diagrams
Define executable activity diagrams for your system architecture model or components to meet functional requirements. Use activity diagrams in System Composer™ to visualize token flows using actions that operate on objects. Activity diagrams contain action nodes with pins connected by flow lines. Create directed relationships with allocations from activity diagram elements to architecture model elements to describe system design.
Functions
systemcomposer.createActivity | Create System Composer activity diagram (Since R2024a) |
Blocks
Initial Node | Dispatch control token at beginning of activity (Since R2024a) |
Action Node | Process object tokens through MATLAB function or nested activity diagram (Since R2024a) |
Decision or Merge Node | Route input tokens based on evaluation of MATLAB expressions, or merge multiple input tokens onto one output flow (Since R2024a) |
Join or Fork Node | Synchronize multiple input tokens into one output, or replicate one input token on all output flows (Since R2024a) |
Flow Final Node | Terminate one object or control flow (Since R2024a) |
Activity Final Node | Terminate entire activity (Since R2024a) |
Tools
Types Editor | Create custom data types (Since R2024a) |
Allocation Editor | Create and manage model-to-model allocations (Since R2020b) |
Topics
- Describe System Behavior Using Activity Diagrams
Learn about and interact with activity diagrams in System Composer.
- Author Activity Diagrams
Create action nodes, token-based flows, merge nodes, and types for input pins.
- 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.