If you would like to upgrade to a newer long-term support version of Studio Pro, see Moving from Mendix Studio Pro 8 to 9.

Microflow Call

Last modified: August 20, 2024

Introduction

The Microflow call activity can be used to call a microflow.

Call Microflow

Arguments can be passed to the microflow and the result can be stored.

Properties

There are two sets of properties for this activity, those in the dialog box on the left, and those in the properties pane on the right:

Microflow Call Properties

The Microflow call properties pane consists of the following sections:

Action Section

The Action section of the properties pane shows the action associated with this activity.

You can open a dialog box to configure this action by clicking the ellipsis () next to the action.

You can also open the dialog box by double-clicking the activity in the microflow or right-clicking the activity and selecting Properties.

Microflow

The microflow that is called by this activity.

Parameters

Depending on the selected microflow, you will see a list of its parameters in a table. Parameters pass data to the activity.

Name

The name of the parameter that is read-only.

Type

The type of the parameter that is read-only. For more information on possible types of parameters, see Data Types.

Argument

The Edit parameter value button allows you to edit the argument value. For each parameter of the microflow, you need to supply an argument of the same type. The values of the arguments are expressed using expressions. There is a difference in the way argument values are passed to a sub-microflow:

  • Lists and objects are passed as references (meaning, if the list/object is changed in a sub-microflow, the original list/object is altered)
  • Primitive types (strings, numbers, etc.) are passed as values (meaning, they are immutable, and not changeable via sub-microflows)

Return Type

This read-only property indicates whether you will retrieve a variable, object or list.

Use Return Value

This property determines if the returned value from the called microflow should be available in the rest of the current microflow or nanoflow. If Use return value is set to Yes, you will need to fill in the name of the variable, object, or list returned by the activity.

Variable Name, Object Name, or List Name

The name of the variable, list, or object returned by the activity.

Microflow Calls in Offline-First Apps

It is possible to perform a microflow call from an offline-first app. However, it works a bit differently than in online applications. For more information on the differences, see the Microflows section of the Offline-First Reference Guide.

Common Section

For more information on properties in this section, see Common Properties.