Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Description
The flow shown below is an example of data injection. After having transformed our data passing through an external web service (RandomUser.me) and several components which act as data formatting, the data will be written into and read from a Devo table. Then, a second sub-flow will get the data from the injected table, configure it, and send the results via Slack.
...
Uni type and description | Configuration | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DevoSource This unit will read the data from the my.app table where we injected the events. | Drag a DevoSource unit to the canvas and open its configuration options by double-clicking it. Enter a Name for the unit (in this example, readFromDevo)and check off for the Check DB configuration field. In the Query field, enter the query from which you want to get data. In this example, we will use the following:
Also, you can optionally choose a Start time for the query. Click Apply to save the configuration. | ||||||||||||
Map We will use this unit to get the information we want to send through Slack and format it as required. | Drag a Map unit to the canvas and link the output port data of the DevoSource unit to the input port of this unit. Then, open the configuration options of the unit by double-clicking it. In the General tab, simply add a name to the unit (in this example, we called it messageToEvent). Now go to the Fields to add tab. Click the + icon in the fields section to add 6 new columns to the events sent, including the required format we will use to send the messages through Slack: Column 1
Column 2
Column 3
Column 4
Column 5
Column 6
Click Apply to save the configuration. | ||||||||||||
SlackSink The Slack Sink unit sends a Slack message to a configurable channel. | Drag a SlackSink unit to the canvas and link the output port out of the Map unit to the input port of this unit. Then, open the configuration options of the unit by double-clicking it and enter the following information:
Click Apply to save the configuration. |
Result
Once you have defined the whole Flow, click the Start button to activate it and click the first unit (Tick). If everything is correctly configured, the Slack channel specified in the SlackSink unit through the corresponding Webhook will receive a notification indicating the user info for generated in the my.app table indicated.
...