Developer Guide: Timer

This service allows your Flow to pause execution for a specified amount of time, before carrying on as normal.

Installation

  1. Login to the Draw Tool with your builder credentials
  2. Click on Services in the top menu
  3. Click on the New button
  4. For Name, enter: Timer
  5. For Connection Url, enter: https://services.manywho.com/api/timer/1
  6. For Format, select JSON and click on the Next button
  7. Click on the Install button
  8. Click on the Save button to finish the Service

All done! You can now build Flows that integrate with the Timer Service.

Features

Name Description
Logic This service contains various [[message actions|Actions]]

Configuration

Connection URL

https://services.manywho.com/api/timer/1

Configuration Values

There are no available configuration values for the Timer service.

Types

This service contains no Types.

Actions

These are the various Actions that can be performed using the Timer service:

Wait: Absolute

This action schedules a Flow to wait for an absolute amount of time.

Inputs

Name Type Required Description
Schedule DateTime The date and time to continue execution at

Outputs

Name Type Description
Completed? Boolean Whether the timer job successfully completed

Wait: Relative

This action schedules a Flow to wait for a relative amount of time.

Inputs

Name Type Required Description
Schedule String How long to pause execution for (e.g. “in 5 days” or “next Tuesday”)

Outputs

Name Type Description
Completed? Boolean Whether the timer job successfully completed

How Tos

Scheduling a Flow to Wait

There are two ways to schedule a flow to wait – the first is by specifying a relative amount of time to wait for (e.g. 2 hours), and the second is by specifying an absolute date and time (e.g. 18/05/2015 10:43am).

Relative

The date parser for scheduling relative waits supports the syntax listed on this page (so almost anything you can think of!).

  1. Create a new Value of type String, give it a name, e.g. Time to Wait and give it Private access
  2. Create a Message Element
  3. Type a Name to identify your element, e.g. Schedule a Wait
  4. Click New
  5. Select the Timer service created previously
  6. Select the Wait: Relative message action
  7. Name your message action and click the Edit action next to the Schedule input. Finally select the value you created previously.
  8. Save everything

Absolute

  1. Create a new Value of type DateTime, give it a name, e.g. Time to Wait and give it Private access
  2. Create a Message Element
  3. Type a Name to identify your element, e.g. Schedule a Wait
  4. Click New
  5. Select the Timer service created previously
  6. Select the Wait: Absolute message action
  7. Name your message action and click the Edit action next to the Schedule input. Finally select the value you created previously.
  8. Save everything