Action Node
Process object tokens through MATLAB function or nested activity diagram
Since R2024a
Description
An action node represents a specific action to execute within an activity diagram. This action is realized either through a MATLAB® function or a nested activity diagram.
Action nodes process incoming tokens to produce new tokens. Input pins consume input tokens. Newly generated tokens exit through the output pins.
For action node to execute, their input pins must hold the minimum number of object tokens specified by the token multiplicity parameter, and all incoming control flows must offer a control token.
Action nodes with MATLAB behavior terminate when the MATLAB function completes. However, action nodes with activity behavior terminate when all the output parameter nodes, flow final nodes and activity final nodes have at least one token each.
For a roadmap of the activity diagram topics, see Describe System Behavior Using Activity Diagrams.
Create an Action Node
You can create an action node on the activity diagram canvas in two ways:
Drag the Action Node block from the palette on the left to any location on the canvas.
Hold the left pointer at the desired location on the canvas and drag in any direction. A blue outline of a node appears on the canvas. From the menu that appears below the outline, select Create Action.
Parameters
Version History
Introduced in R2024a