Adding Parameters to Operations

You can add parameters to operations in the Implementation folder of the Service Panel. Use the operation’s quick actions to create one or more parameters:

grafik-20251208-143020.png

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

grafik-20251208-143142.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.

You can create 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 one 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 is named return as per default. This name can be changed.

  • 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.

Only a return parameter can have the name return.

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

grafik-20251208-144140.png

For more information on restrictions on element names, see Implementation > Creating Elements.

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

grafik-20251208-144615.png

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

parameter_added_in_diagram.png

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

grafik-20250520-055557.png

Refer to

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

Sorting Parameters

Parameters are displayed in the order in which they were created:

grafik-20241112-103858.png

The return parameter is always displayed last. This cannot be changed.

You can change the parameter sorting by using drag & drop:

grafik-20241112-104305.png

Drop the parameter on another parameter in the list. The dragged parameter is inserted above:

grafik-20241112-104531.png

You can also open the context menu of the parameter you want to reorder and use options Move up or Move down:

grafik-20241112-140716.png

Important Note on Reordering Parameters

The order of the parameters determines the signature of the operation. If you call an operation in a script (Action Script, JavaScript), you must adapt the parameter order within the script as well.

We recommend grouping the parameters by type and displaying them in the following order:

  1. Input parameters

  2. Output parameters

  3. Return parameter

grafik-20241112-104853.png

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, the Del or backspace key:

grafik-20251208-144826.png

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

grafik-20251208-145009.png

The parameter is deleted from the operation:

grafik-20251208-145054.png
đź“—