Activity Parameters

Activity parameters describe the input or output data of an activity.

Context

Activity Parameters are a specialized kind of object node (see Object Nodes).

Activity parameters in activity diagrams are equivalent to the parameters listed in an activity block’s Parameters compartment (see Activity Blocks), and are attached to the diagram frame.

For example, activity Program Execution can have an input parameter Execution Command and an output parameter Execution Report.

Procedure

  1. Drag the Activity Parameter tool from the toolbox and attach it to the diagram frame. Specify a name and other properties for it as appropriate.
    Alternatively, add parameters to the activity diagram frame by adding new parameters to the associated activity block in a block definition diagram.

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

    Property

    Description

    Parent Object

    [read-only] Specifies the activity block that owns the activity parameter.

    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.

    Data Type

    Specifies the data type for this activity parameter, which must be an existing block, a signal, or a value type in your model.

    The other tabs such as Dependencies and Diagrams contain additional properties information. For details, see Object Properties.
  2. Use the Flow tool to link it with objects in the diagram as appropriate.