Example 4: Adding Wait Time in Seconds to a Workflow

In this V2.0 example we add wait time in seconds to a workflow using the WAIT type step and the waitInSeconds parameter.

{ "name": "WaitTime_Sample",
  "version": "1.0",
  "description": "How to add a wait time using waitInSeconds function"
  "workflow": {
    "source": "Custom",
    "version": "1.0",
    "name": "WaitTime_Sample",
    "plan": {
      "steps": [
        {
          "name": "WaitStepSample",
          "operation": {
            "type": "WAIT",
            "parameters": {
              "waitInSeconds": 240
            }
          }
        }
      ]
    },
    "input": {
      "vars": {},
      "workerVars": {
        "worker1": {
            .....
        }
      }
    }
  }
}