Skip to main content
Skip table of contents

Adding Parameters to Operations

You can add parameters to operations in the Implementation folder of the Service Panel. Use the Quick Actions to add one or more parameters to an operation:

adding_parameters_via_quick_actions.png

Alternatively, you can also use the context menu of the respective operation to add parameters to it:

adding_parameters_via_context_menu.png

For more information about what you can do with an operation via the quick actions and the associated context menu in the service panel, refer to Modeling Data Structures | Operation.

You can add in, out and/or return parameters.

Type

Description

in

  • Operations can have multiple input parameters.

  • Input parameters provide values to the operation. The operation caller must provide these values.

out

  • Operations can have multiple output parameters.

  • An operation can have output parameters as well as a return parameter.

  • Output parameters receive values from the operation. These values are then available to the operation caller.

return

  • An operation can have only one return parameter.

  • An operation can have output parameters as well as a return parameter.

  • A return parameter receives a value from the operation. This  value is then available to the operation caller.

  • Operations with a return value can be used in Action Script in nested statements:
    set result = calculate(compute(4)); 
    In this example, calculate() and compute() each return their result through a return parameter.

When adding a parameter, a pop-up window opens where you need to enter a name for the parameter. Click Save to create the new parameter:

popup_add_parameter.png

For more information on restrictions on element names, see Adding Elements.

The parameter is added to the operation in the implementation folder of the service panel...

... and also to the corresponding operation element in the particular diagram where the operation is used:

To change name, type or direction of the parameter, select the parameter in the service panel and switch to the Attributes panel:

Refer to

for more information on what you can do in the attributes panel.

Deleting Parameters

You can delete parameters from an operation in the Implementation folder of the Service Panel.

You can delete a parameter in the implementation folder of the service panel using the Delete option of the context menu or the Del key:

Confirm the security prompt in the pop-up window with Yes to delete the selected parameter from the operation:

popup_delete_parameter.png

The parameter is deleted from the operation:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.