Microflow Properties

Last modified: August 20, 2024

Introduction

This document describes the properties of a microflow. If you want to see what microflows are for and what kind of elements they contain, you can check Microflows. If you want to know about the settings of the Call a microflow event action, you can check Microflow Settings.

Properties

An example of microflow properties is represented in the image below:

Microflow Properties

Microflow properties consist of the following sections:

Common Section

Name

Name is the internal name of the microflow. When referring to the microflow in the app you will use this name. It must be unique within the module, but you can have two microflows with the same name in different modules. When referring to the microflow, you will normally prepend the name of the module to ensure uniqueness and allow you to use microflows in other modules.

Export Level

Export level allows you to define access level to this document on the consumer (customer) side when developing an add-on module or a solution.

Value Description
Hidden (default) The document/element content is hidden from a consumer.
Usable Consumers can see the API and use the microflow in their app. They will not be able to see the contents of the microflow and how it is built.

Documentation

Documentation allows you to describe your microflow to make it easier for people to use and modify it.

Concurrent Execution Section

Disallow

The Disallow property allows you to specify whether the microflow can be executed multiple times concurrently. This applies to all end-users who are using the app, not just within one user session.

Disallowing concurrent execution of a microflow can be useful if a microflow would interfere with another running instance (for example, if it accesses a global resource).

Option Description
No (default) It is possible to execute the microflow more than once concurrently.
Yes It is not possible to execute the microflow more than once concurrently; the user receives a message or another microflow is executed instead.

Error Message

Error message defines the message the user gets when concurrent execution is not allowed and the user tries to start the microflow while it is already being executed. This will not be shown if there is an Error microflow defined.

Error Microflow

Error microflow defines another microflow to execute when concurrent execution is not allowed and the user tries to start the microflow while it is already being executed. When set, there will be no further message shown to the user.

Output Section

Return Type

The return type defines what information the microflow returns. The caller of the microflow will get a result of this type. See Data Types for the possible return types.

Security Section

Apply Entity Access

Apply entity access indicates whether entity access based on the current user is applied when performing operations on objects. Setting this to yes limits the objects that are retrieved by the retrieve action to only those that the current user is allowed to see. Similarly, when reading and writing attributes and associations the entity access of the current user is applied. Conversely, if entity access is not applied, all operations are allowed and all objects are retrieved.

Option Description
Yes Entity access is applied to retrieving and manipulating objects. The rights of current user are taken into account.
No (default) Entity access is not applied.

Allowed Roles

Allowed roles defines which module role the user must have to be able to execute the microflow.

For more information, see Module Security.

Usage Section

Mark as Used

You can search for unused items (Ctrl + Shift + F, then select Unused items in the Search for drop-down menu) in Studio Pro. Microflows that are only called from Java code will be listed as unused, because Studio Pro cannot look inside the Java source code.

By setting the property Mark as used to Yes, you explicitly specify that the microflow is used and Studio Pro will no longer list it when searching for unused items.

Default: No

Expose as Microflow Action

This property is accessible by right-clicking in the microflow and selecting Properties.

Expose as Microflow Action

By selecting the Expose as microflow action option, you can expose the microflow as a microflow action and use the return type of the microflow to generate outcomes / paths in the workflow. Exposing the microflow will make it appear in the Toolbox when you are editing a microflow in the category of your choice. When this action is used in a microflow, it will show the provided caption and icon.

The Caption and Category of the workflow action are required, but the Icon and Image are optional. The image in the Icon property is used for the list view of the Toolbox, and the image in the Image property – for the toolbox tile view. For more information, see the Toolbox section in the View Menu.

The required size for the icon is 64x64 pixels, and 256x192 pixels for the image; the required image format for both is PNG.

A separate icon and image can be provided for the dark mode of Studio Pro to fit its color scheme.

Expose as Workflow Action

This property is accessible by right-clicking in the microflow and selecting Properties.

Expose As Workflow Action

By selecting the Expose as workflow action option, you can expose the microflow as a workflow action. Exposing the workflow will make it appear in the Toolbox of a workflow editor in the category of your choice. When this action is used in a workflow, it will show the provided caption and icon.

The Caption and Category of the workflow action are required, but the Icon and Image are optional. The image in the Icon property is used for the list view of the Toolbox, and the image in the Image property – for the toolbox tile view. For more information, see the Toolbox section in the View Menu.

The required size for the icon is 64x64 pixels, and 256x192 pixels for the image; the required image format for both is PNG.

A separate icon and image can be provided for the dark mode of Studio Pro to fit its color scheme.