Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/qingcloudhx/flow-plugin/trigger/timer

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/qingcloudhx/flow-plugin/trigger/timer

  • v0.0.0-20190805073418-cfa08dc9c352
  • Source
  • Go
  • Socket score

Version published
Created
Source

Timer Trigger

This trigger provides your flogo application the ability to schedule an action

Installation

flogo install qingcloud-flow/plugin/trigger/timer

Configuration

Handler Settings:

NameTypeDescription
startDelaystringThe start delay (ex. 1m, 1h, etc.), immediate if not specified
repeatIntervalstringThe repeat interval (ex. 1m, 1h, etc.), doesn't repeat if not specified

Example Configurations

Triggers are configured via the triggers.json of your application. The following are some example configuration of the Timer Trigger.

Only once and immediate

Configure the Trigger to run a flow immediately

{
  "triggers": [
    {
      "id": "flogo-timer",
      "ref": "qingcloud-flow/plugin/trigger/timer",
      "handlers": [
        {
          "action": {
            "ref": "#flow",
            "settings": {
              "flowURI": "res://flow:myflow"
            }
          }
        }
      ]
    }
  ]
}

Only once with a delay

Configure the Trigger to run a flow once with a delay of one minute. "startDelay" settings format = "[hours]h[minutes]m[seconds]s"

{
  "triggers": [
    {
      "id": "flogo-timer",
      "ref": "qingcloud-flow/plugin/trigger/timer",
      "handlers": [
        {
          "settings": {
            "startDelay": "1m"
          },
          "action": {
            "ref": "#flow",
            "settings": {
              "flowURI": "res://flow:myflow"
            }
          }
        }
      ]
    }
  ]
}

Repeating

Configure the Trigger to run a flow repeating every 10 minutes. "repeatInterval" settings format = "[hours]h[minutes]m[seconds]s"

{
  "triggers": [
    {
      "id": "flogo-timer",
      "ref": "qingcloud-flow/plugin/trigger/timer",
      "handlers": [
        {
          "settings": {
            "repeatInterval": "10m"
          },
          "action": {
            "ref": "qingcloud-flow/flow",
            "settings": {
              "flowURI": "res://flow:myflow"
            }
          }
        }
      ]
    }
  ]
}

Repeating with start delay

Configure the Trigger to run a flow every minute, with a delayed start of 10 minutes and 30 seconds.

{
  "triggers": [
    {
      "id": "flogo-timer",
      "ref": "qingcloud-flow/plugin/trigger/timer",
      "handlers": [
        {
          "settings": {
            "repeatInterval": "1m",
            "startDelay": "10m30s"
          },
          "action": {
            "ref": "qingcloud-flow/flow",
            "settings": {
              "flowURI": "res://flow:myflow"
            }
          }
        }
      ]
    }
  ]
}

FAQs

Package last updated on 05 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc