This activity allows you to make the current thread sleep for a specified amount of time.
Start a container of Flogo Web UI :
docker run --name flogo -it -d -p 3303:3303 -e FLOGO_NO_ENGINE_RECREATION=false flogo/flogo-docker eula-accept
The environment variable FLOGO_NO_ENGINE_RECREATION=false allows to force import of installed contributions.
To install the activity into the started container :
docker exec -it flogo sh -c 'cd /tmp/flogo-web/build/server/local/engines/flogo-web && flogo install github.com/square-it/flogo-contrib-activities/sleep'
Restart the container
docker restart flogo
flogo install github.com/square-it/flogo-contrib-activities/sleep
Inputs and Outputs:
{
"inputs":[
{
"name": "duration",
"type": "string",
"required": "true"
}
],
"outputs": [
]
}
Setting | Required | Description |
---|---|---|
duration | True | The amount of a time during which the thread will be sleeping. This duration can be expressed by any valid expression described by time.ParseDuration Go method. For instance: "500ms", "5s", "1m30s" |
No output
{
"id": "sleep_1",
"name": "Sleep5s",
"description": "Sleeps for five seconds",
"activity": {
"ref": "github.com/square-it/flogo-contrib-activities/sleep",
"input": {
"duration": "5s"
},
"output": {
}
}
}