Call Functions and Generic Events
Generic events can be triggered from other workflows or within the same workflow. Additionally, generic events can be used like functions and can also trigger events in other workflows.
Call functions or generic events to reuse specific executions in multiple places across different workflows.
Or simply use function calls to create better separation within workflows.

Different between functions and events
First of all, we need to understand the difference between calling an event and calling a function.
In both cases, our base is the generic event.
However, the different types of calls make a significant difference.
Call a generic event
Events will be handled in a global queue, which processes them one by one.
Regardless of where you place the “Call Generic Event“ within the execution chain, this event will be triggered after the execution chain has finished


In both examples, the “Generic Event“ will be executed after the 'Event' has completed its own execution chain.
Technically, these two examples perform exactly the same actions in the same order, even if they are arranged differently.
Call a function
Calling a generic event with the “Call Function“ action inserts it into the execution chain.
A call function always needs a function return at the end. Otherwise, the chain will not continue execution if the “Call Function“ is placed in between.


Look carefully at the execution triggers.
In these two examples, it’s clearly visible how the call functions are placed within the execution chain.
Call a generic event within the same workflow
To call a generic event, an action is required, and of course, at least one generic event must exist within the workflow.
Add Call Generic Event action
To add the "Call Generic Event" action, perform a secondary click on an empty space within the workflow.

Link the generic event
To link the generic event with this action, define the target within the inspector.

Call a function
To call a generic event like a function, you need an action and at least one generic event in the workflow.
Add Call Function action
To add the "Call Function" action, do a secondary click on an empty space within the workflow.

Link a generic event to the call function action
To link the generic event with this action, define the target within the inspector.

The "Call Function" action can trigger any generic event within all available workflows in the project.
Add Function return

Connect the function return

Please make sure to always add the function return action.
Last updated