Main Content

Send Action Node

R2026b

Send object tokens to accept action node

Since R2026b

  • Send Action Node

Description

A Send Action Node sends object tokens to one or more Accept Action Node in an activity diagram. You can use this node to send object tokens without using flows between nodes. A send action node can send tokens across different levels of nested activity within the same activity diagram. A send action node has an input Pin that receives object tokens that the node will send.

A Send Action Node and an accept action node are matched by tags. The Tag Name parameter determines where the send action node sends tokens to.

Create a Send Action Node

You can create a send action node by dragging the Send Action Node icon from the palette on the left or from the Modeling tab on the toolstrip to any location on the canvas.

Examples

expand all

This example shows how to use an activity diagram with send action nodes and accept action nodes to model a simple automatic emergency braking system.

Open the Model

Open the activity diagram model.

open_system("AEBSystem");

AEB System activity diagram with send and accept action nodes.

The activity diagram contains three main areas:

  • Obstacle Detection - Simulates obstacle detection using the Acquire Radar Data, Fuse Sensor Data, and Classify Obstacle action nodes. Once the obstacle is detected, the send action nodes sends the object tokens using a shared tag.

  • Braking System - Within the nested activity of Braking Subsystem action node, accept action node receives the object token from the send action node that have the same tag Obstacle Detection. This triggers the Calculate Braking Force and Actuate Brakes action nodes, ending at a flow final node.

  • User Interface - An accept action node receives an object token. This triggers the Activate Warning action node, ending at a flow final node.

Define the tags in the Symbols Pane from the Modeling tab. In this example, the symbols pane defines the Obstacle Detection tag with object type of double.

Activity tags defined in symbols pane.

Run the Model

Simulate the model.

sim("AEBSystem");

To clearly view the flow of tokens, you can slow down the animation speed by changing the Animation speed in the Debug tab.

Parameters

expand all

Send Action Node

Name of the send action node. By default, the activity diagram editor names the first send action node placed on the canvas as SendAction. As you add more action nodes, the editor attaches increasing numerical suffixes to the name SendAction.

Example: SendAction1

Data Types: char | string

The tag name is a text identifier that associates a send action node with one or more accept action nodes.

To define tags, open the Symbols Pane from the Modeling tab on the activity diagram toolstrip.

Example: A

Data Types: char | string

This list contains stereotypes from imported profiles. To assign a stereotype to a node, select the stereotype in the list.

You can also use <new/edit> option to manage profiles using Profile Editor.

Version History

Introduced in R2026b