Long-Running Flow Monitor Template - Implementation

  • Updated

 

OVERVIEW:  If a flow runs longer than the duration set in the settings, its name will be posted to the designated Slack channel so that a user can check those flows and ensure they aren't stuck

TABLE OF CONTENTS

1- Installing the Template from Marketplace

2- Flow Settings

3- Steps to Configure Slack Connection

4- Flow Type and Description

5- Workflow Logic

6 - IO Mappings

Installing the Template from Marketplace

  • Login to Celigo Integrator, head to the Marketplace and search for Long-Running Flow Monitor and Install. Once the template is installed, the template tile will be available in the Home tab. Click on the template or continue setup to configure the connection.

Customizing Connections & Settings

1. Celigo Connection:


Install Integration:Long-Running Flow Monitor



Click on Configure.

  • Select the Region.

  • The Token can be retrieved under resource > API Token > Create New tokens

  • Click Save and Authorize.

Once the NetSuite connection is configured, the next step is configuring the Slack Connection.

2.Slack Connection:

  • In your Slack workspace, create an app and obtain the Token IDs. Follow the steps below to create an app
Step 1: Browse Slack API and click on the SLACK API

Step 2: Click on your apps

Step 3: Click on Create new app



Step 4: A dialogue box appears click on the option shown below 

Step 5:Give the app name and select the workspace where the app should be created

Step 6:Navigate to OAuth and permissions
Select the Use OAuth token as below



Step 7 : In the Slack channel, invite the created app in slack channel as shown below
Step 8 : Refer to this article to create the Slack connection on Celigo integrator.io using the token from Step 6 above.

Steps to Configure:

Flow  Settings:

  • Target Max Flow Duration - Set the number of minutes the flow should not exceed

    

  • Slack Channel ID - Get the Channel ID  from Slack. This is the Slack Channel where the notifications will be posted.  Refer the screenshot below to get the Slack Channel ID
    Copy the above Slack Channel ID and use it in the flow settings


  • Message to be posted - Define the message that will accompany the flow name in the Slack notification.

IO Connection:

  • Follow the steps here to create the connection to the Celigo integrator.io

Slack Connection:

  • In your Slack workspace, create an app and obtain the Token IDs. Follow the steps below to create an app
Step 1: Browse Slack API and click on the SLACK API

Step 2: Click on your apps

Step 3: Click on Create new app



Step 4: A dialogue box appears click on the option shown below 

Step 5:Give the app name and select the workspace where the app should be created

Step 6: App tokens are displayed as below, using the verification token to establish the connection between the slack and the integrator.io account.

Step 7 : In the Slack channel, invite the created app in slack channel as shown below
Step 8 : Refer to this article to create the Slack connection on Celigo integrator.io using the token from Step 6 above.

Flow Type and Description

Flow Type: Scheduled
Source: integrator.io (All Running Flows)
Destination: Slack Channel

Description:
If a flow exceeds the run time specified in the settings, a Slack notification is triggered with the name of the flow and the message configured.

Workflow:
  • Get all the running flow details
    • Get all the flows which are running in the integrator.io account
    • The Pre save page hook filters out flows that exceed the execution time specified in the settings. This hook has access to the flow’s start time, and it computes the current time at runtime. If the difference between the start time and the current time is greater than the time specified in the settings then the flow proceeds through next steps in the flow execution.
  • Lookup for name of the flow
    • This lookup is performed to retrieve the flowname depending on the flowId of the flow.
  • Notification is sent to the slack channel
    • The Slack channel is notified of the flowname and the message.

IO Mappings: These mappings come pre-configured in the template

  • Set the channel
  • For text, a handlebar is used to join both the flowname and the message given in settings.