Actions

Actions represent steps in an activity. You can create standard actions, call behavior actions, send signal actions, accept event actions, and time event actions.

Context

An action is a basic unit of a functionality. In this example, Upload File is an action.

A call behavior action invokes another activity. In this example, the call behavior action pm calls the Preview 3D Model activity.

A send signal action sends out a signal. In this example, the send signal action creates and sends a Show Error Message signal.

An accept event action waits for an event to happen before continuing. In this example, the accept event action Error Message Displayed waits for an error message to be displayed and then invokes the next action, Close Application.

A time event action waits for a time event to happen before continuing. In this example, the time event action After 3 Seconds waits 3 seconds and then invokes the next action, Close Application.

Procedure

  1. Select an action tool, drag it from the toolbox and drop it onto you diagram. Specify a name and other properties for the action as appropriate.

    The following properties are available on the Info tab in the General category:

    Property

    Description

    Name/Code/Comment

    Identify the object. The name should clearly convey the object's purpose to non-technical users, while the code, which is used for generating code or scripts, may be abbreviated, and should not normally include spaces. You can optionally add a comment to provide more detailed information about the object. By default the code is synchronized with the name. To decouple name-code synchronization, enter a new code in the Code field.

    Action Object

    [Call behavior actions] Specify an activity block (see Activity Blocks).

    [Send signal actions/accept event actions] Specify a signal (see Signals).

    You can either choose the object from the current model or create new.

    The following properties are available in the Specification category:

    Property

    Description

    Expression

    Specifies the expression for the action.

    Pre-Conditions / Action Steps / Post-Conditions

    Provide a textual description of how the action is executed.

    Timeout

    Zero (unlimited) by default. If the value is not set to zero, a timeout exception occurs if the activity takes longer than the specified time. You can type any alphanumeric value (example: 20 seconds).

    Duration

    Specifies the estimated (or recorded) time required to execute the action.

    The other tabs such as Dependencies and Diagrams contain additional properties information. For details, see Object Properties.
  2. [optional] Use the tools in the action’s context menu:

    Tool

    Description

    Action/Object Node/Synchronization/Decision Node

    Create the next object in the flow.

    Change Action Type

    Change to another action type.

    Pin

    Add a pin to the action. See Adding Pins to an Action.