End Event

Last modified: April 18, 2024

1 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:

2 Properties

The end event properties pane consists of the following sections:

2.1 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:

2.2 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:

3 Read More