Parameter

Last modified: June 24, 2024

1 Introduction

Parameters are the means by which you pass data to your logic. When a microflow is triggered, the parameters are filled with the current values.

If you want to use an object of the Customer entity in a microflow, use the parameter. In the image below, the object name is EnclosingCustomer and is shown in black. The data type is object. Therefore, the entity name is shown underneath the object name in color blue.

2 Common Section

The Documentation property can be used to store developer documentation. This can be used to explain to other developers about the parameter. End-users will never see this documentation.

3 Output Section

3.1 Data Type

The data type of a parameter defines the type of the value that it expects. See Data Types for the possible data types.

Default: Object

3.2 Name

Name refers to the name of the parameter.

4 Setting an Input Parameter as the Return Value

To set a parameter as the return value of your microflow, right-click the parameter and select Set $Parameter as return value via the context menu:

5 Passing Arguments from a Page

When calling a microflow or nanoflow as a source or action from a page, you can pass arguments in two primary ways, depending on the data type of the argument.

5.1 Variable Arguments (Objects/Object Lists)

Variable arguments are used to pass objects or lists of objects from the page to the microflow or nanoflow.

5.2 Expression-Based Arguments (All Data Types)

Primitive values, such as strings, booleans, and enumerations, can be passed as expressions. This method allows users to use functions and follow associations within the expression to set the argument values. Using expressions for arguments provides flexibility in setting values and improves the functionality of microflows and nanoflows.