Trigger events in Wevo iPaaS
A trigger needs to be defined in order to kickstart an integration process. To optimize your processes and allow for the development of a more dynamic flow, our trigger events give you the ability to initiate your flows without the need for a scheduler or an API. That way, the flow's execution begins from a process created in the connector, which will "listen" for the insertion of a record into the system, receive it, and then move forward with the integration.
This page details how trigger events work.
Trigger event types
There are two types of trigger events, and which type you should choose depends on your system of origin:
- Stream: Allows for immediate flow execution as soon as a record is inserted into the system of origin (more common in messaging services such as Rabbit MQ, Amazon SQS, Kafka, and others).
- Pooling: Allows for customization in a manner similar to scheduler, but with shorter times and more agile execution.
Create a trigger event
In order to create a trigger event, you must access the Connector studio. If you are a developer who creates connectors, see Create a connector, which describes the process of trigger creation. After a trigger is developed, it's shown on the Connector store in the Triggers tab. If you want to use an existing trigger instead of developing your own, click this tab to see which ones are available, as shown on the image below:
Create a flow using a trigger event
During the creation of your flow, you will select the trigger you want to use. Note that the existing business triggers in the installed connectors will be displayed. In the example below, the Amazon SQS connector will be used to illustrate. This connector already has a business trigger called Listen Queue available.
In order to use it, follow these steps:
-
Choose a name for your flow and click Continue.
-
The next screen will show you the installed connectors. Pick which connector has the trigger you want to use. We'll select the Amazon SQS connector to demonstrate.
-
Now, configure the settings and parameters. This parameters are quite similar to the ones you configure when installing a connector (see Connector store), but here you will also pick a trigger event. Note that the parameters will vary considerably from one connector to another. For the connector we've selected, you must provide the information shown in the image:
-
Choose event: Use this field to select which trigger you want to use. In this example, we'll use the Listen Queue trigger, which is a stream-type business trigger, which means it enables the flow to receive a record as soon as it is created within Amazon SQS.
-
Account: Choose the connector account.
-
Queue URL: Insert the URL that identifies your message queue inside Amazon SQS.
-
Batch Size: Define how many messages the flow will receive in each run.
-
External ID: An identifier of the message that will be received. This field is important because it allows for specific messages to be easily labeled.
-
-
After that, you can continue building your flow normally. Notice that the first item on your flow will be the trigger you've selected in the previous steps.