Timer workflow activity
-
- UpdatedAug 3, 2023
- 5 minutes to read
- Vancouver
- Workflow
The Timer activity pauses the workflow for a specified period of time.
Results
Result | Description |
---|---|
Complete | The activity successfully reached the specified duration. |
Cancelled | The activity or workflow was canceled before the timer reached the specified duration. |
Input variables
Input variables determine the initial behavior of the activity.
Field | Description |
---|---|
Timer Information | |
Timer based on | How the timer duration is computed. The options are:
|
Duration Appears only when Timer based on is A user specified duration. |
The specific number of days and hours to wait before proceeding to the next activity in the workflow. |
Relative duration Appears only when Timer based on is A relative duration |
The general number and length of business days to wait before progressing to the next workflow activity. . |
Wait Appears only when Timer based on is A relative duration or A date/time or duration field. |
An additional timer adjustment when Timer based on is
A relative duration or A date/time or duration
field. The options are:
|
Percentage Appears only when Timer based on is A relative duration or A date/time or duration field. |
The Wait percentage value when Timer based on is A relative duration or A date/time or duration field. |
Time before Appears only when Timer based on is A relative duration or A date/time or duration field and Wait is Some time before. |
The modifier time value when Wait is Some time before. |
Time after Appears only when Timer based on is A relative duration or A date/time or duration field and Wait is Some time after. |
The modifier time value when Wait is Some time after. |
Field Appears only when Timer based on is A date/time or duration field. |
The date/time or duration field that contains the elapsed wait-time before moving to the next workflow activity. |
Script Appears only when Timer based on is Script |
The script that sets 'answer' to the number of seconds for the duration. |
Timer Schedule | |
Schedule based on | The basic schedule the timer uses to count working hours. If a schedule is
specified, the duration will only be considered for times that are specified on the
schedule. For example, if the duration is 2 hours and the workflow begins at 4:00pm
on a schedule that is 8am - 5pm, then it ends at 9:00am the next day. The options
are:
|
Schedule Appears only when Schedule based on is A specific schedule. |
The pre-defined Schedule from a list. |
Schedule field Appears only when Schedule based on is A schedule field. |
A date and time or duration field for the schedule, that is associated with the table. Valid fields appear in blue on the Select the element from a tree dialog. |
Timer Time Zone | |
Time zone based on | The time zone for calculating the duration. The time zone may be based on:
|
Time zone Appears only when Time zone based on is A specific time zone. |
The predefined time zone. |
Time zone field Appears only when Time zone based on is A time zone field. |
A date and time or duration field for the schedule, that is associated with the table. Valid fields appear in blue on the Select the element from a tree dialog. |
States
The activity state tells the workflow engine what to do with the activity.
Example
You can use a Timer activity to pause the workflow until the end of the business day.

In this example, the script evaluates the time between the now variable and the eod variable. The eod variable is defined, in 24 hour time, as 4:00 PM. The script then sets the answer variable to the difference between these variables, in seconds, and logs a message.