Main Content

Accept Action Node

R2026b

Accept object tokens from send action node

Since R2026b

  • Accept Action Node

Description

An Accept Action Node receives object tokens from its corresponding Send Action Node. You can use this node to receive object tokens without using flows between nodes. An accept action node can receive tokens across different levels of nested activity within the same activity diagram. An accept action node has an output Pin that outputs object tokens.

An accept action node and a send action node are matched by tags. The Tag Name parameter determines where the accept action node receives tokens from.

Create an Accept Action Node

You can create an accept action node by dragging the Accept 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

Accept Action

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

Example: AcceptAction1

Data Types: char | string

The tag name is a text identifier that associates an accept action node with one or more send 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