sleep

package
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Sleep

This activity allows you to pause flow execution for given time interval.

Installation

Flogo Web

https://github.com/vijaynalawade/flogo-contrib/activity/sleep

Flogo CLI
flogo install github.com/vijaynalawade/flogo-contrib/activity/sleep

Schema

Inputs and Outputs:

{
  "input":[
    {
          "name": "interval",
          "type": "integer"
    },
    {
          "name": "intervalType",
          "type": "string",
          "allowed": ["Millisecond", "Second", "Minute"],
          "value": "Millisecond"
    }
  ]
}

Settings

Setting Required Description
interval True Sleep time interval
intervalType True Interval type. Supported types are - Millisecond, Second, Minute

Examples

The below example pauses flow execution for 30 seconds:

{
      "id": "SleepActivity",
      "name": "SleepActivity",
      "activity": {
       "ref": "github.com/vijaynalawade/flogo-contrib/activity/sleep",
       "settings": {},
       "input": {
        "interval": 30,
        "intervalType": "Second"
       }
      }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new AppActivity

Types

type SleepActivity

type SleepActivity struct {
	// contains filtered or unexported fields
}

SleepActivity is an Activity that can stop flow execution for given time duration. inputs : {interval, intervalType} outputs: none

func (*SleepActivity) Eval

func (a *SleepActivity) Eval(context activity.Context) (done bool, err error)

func (*SleepActivity) Metadata

func (a *SleepActivity) Metadata() *activity.Metadata

Metadata returns the activity's metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL