Main Content

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

expand all

systemcomposer.activity.ModelActivity diagram model (Since R2026a)
systemcomposer.activity.ActivityActivity in activity diagram model (Since R2026a)
systemcomposer.activity.ActionAction node in activity diagram (Since R2026a)
systemcomposer.activity.FlowFlow between activity nodes (Since R2026a)
systemcomposer.activity.InitialInitial node in activity diagram (Since R2026a)
systemcomposer.activity.ActivityNodeAll activity nodes in activity diagram (Since R2026a)
systemcomposer.activity.ControlNodeControl node in activity diagram (Since R2026a)
systemcomposer.activity.JoinForkJoin or fork node in activity diagram (Since R2026a)
systemcomposer.activity.MergeDecisionMerge or decision node in activity diagram (Since R2026a)
systemcomposer.activity.ParameterParameter node in activity diagram (Since R2026a)
systemcomposer.activity.PinPin in activity diagram (Since R2026a)
systemcomposer.activity.ActivityFinalActivity final node in an activity diagram (Since R2026a)
systemcomposer.activity.FlowFinalFlow final node in activity diagram (Since R2026a)

Functions

expand all

Activity Building

addNodeCreate new activity node in activity diagram (Since R2026a)
addPinCreate new pin on action node (Since R2026a)
addParameterCreate new parameter node in activity diagram (Since R2026a)
connectCreate activity diagram flows (Since R2026a)
getFlowGet flow from activity diagram (Since R2026a)
getNodeGet activity node in activity diagram (Since R2026a)
getNodesGet activity nodes in activity diagram (Since R2026a)
getParameterGet parameter node from activity diagram (Since R2026a)
getParametersGet all parameter nodes in given direction (Since R2026a)
getParentPinGet pin from parent action (Since R2026a)
getPinGet pin from action node (Since R2026a)
getPinsGet pins from action node (Since R2026a)
destroyRemove model element
setBehaviorTypeSet behavior type of action node (Since R2026a)

Activity Management

systemcomposer.createActivityCreate System Composer activity diagram model (Since R2024a)
systemcomposer.openActivityOpen System Composer activity diagram model (Since R2026a)
systemcomposer.loadActivityLoad activity diagram model (Since R2026a)
openOpen activity diagram model (Since R2026a)
closeClose activity diagram model (Since R2026a)
saveSave activity diagram model (Since R2026a)

Stereotype Management

applyStereotypeApply stereotype to model element
setPropertySet property value corresponding to stereotype applied to element
changeStereotypeChange currently applied stereotype to new stereotype in its stereotype hierarchy (Since R2024a)
removeStereotypeRemove stereotype from profile
hasStereotypeFind if element has stereotype applied
getStereotypeFind stereotype in profile by name

Activity Nodes

Initial NodeDispatch control token at beginning of activity
Action NodeProcess object tokens through MATLAB function or nested activity diagram
PinDirect tokens into or out of an action node
Parameter NodeProcess tokens through a nested activity diagram
Decision or Merge NodeRoute input tokens based on evaluation of MATLAB expressions, or merge multiple input tokens onto one output flow
Join or Fork NodeSynchronize multiple input tokens into one output, or replicate one input token on all output flows
Flow Final NodeTerminate one object or control flow
Activity Final NodeTerminate entire activity

Tools

Types EditorCreate custom data types (Since R2024a)
Allocation EditorCreate and manage model-to-model allocations
Profile EditorCreate and manage profiles with stereotypes and properties

Topics

Featured Examples