End Event

Last modified: August 20, 2024

Introduction

An end event defines where the flow stops. It can return a value: an object, enumeration, a list, etc. For more information, see the Return Type section below.

In the example below, a Buyer variable of the Customer entity is returned by the end event:

The number of end events depends on the number of possible outcomes of the microflow or nanoflow. That means there can be more than one end event, for example when a decision is used:

Properties

The end event properties pane consists of the following sections:

Return Value

The return value is the value that is returned to the flow that called the current flow. You can specify or change the return value either through the End Event dialog box or through the Properties pane.

If you have several end events and they have a return value, they all need to return a value of the same type. For example, if one of the end events returns an object of type Entity, the others need to return the same type:

Return Type

You can choose to return nothing, or to return, for example, a list, enumeration, or Boolean value. For more information on possible return types, see Data Types.

After you type an expression in the End Event dialog box, you will see an option that allows you to update the return type:

Return Variable Name

The return value of a microflow or nanoflow will be given this name.

When you update the return type, a default variable name is set based on the return type (whether it is a variable, object, or list). You can change the name of the returned variable which will be used later in the microflow or nanoflow call.

Read More