It is possible to customize an Intermediate Timer event so that it can trigger based on variable information. You can customize it to:


  • Trigger based on a date in a form field.
  • Trigger X days after the instance was created.
  • Trigger X days before the instance deadline.
  • More...


You can do this by adding custom variables to the SchedulePattern property value as seen below. It's the same property value field where you set up schedule patterns using the ICalendar standard.



Available variables

$instance.created$
$instance.deadline$
$tasks[ReferenceID].created$
$tasks[ReferenceID].completed$
$DataID.FieldName$ (for form field content)
NOTE: A task's ReferenceID is not set by deault. To set it, open the task's ''Properties ''panel and set it in
the ''ReferenceID ''field under ''GraphicalElement''. The ID can be anything of your choice, for example the
name of the task or simply ''task1''.


NOTE: In order to use form field content you must know the DataID of the form and the name of the form field. Learn more about it in the Picking up form data: DataID & FieldName article.


To trigger the timer X time after or before a date found in a variable you add a suffix in the SchedulePattern with the following format:

+ or - after the variable followed by a number and one of the units below.

  • s (seconds)
  • h (hours)
  • d (days)
  • wd (weekdays/Mondays-Fridays only)
  • m (months)
  • y (years)


This indicates the factor which you want the date to be offset with, for example:

  • +30d = 30 days after the specified date
  • -20h = 20 hours before the specified date


NOTE: If you have an attached Intermediate Timer event you can't trigger the event based on the attached event base task.

Attached Intermediate Timer event

 


Some examples

30 days after the instance initiated:

$instance.created$+30d


2 months before a date that has been picked in the field Date1 in the form Form1:

$Form1.Date1$-2m


Learn more about DataIDs and FieldNames in the Picking up form data: DataID & FieldName article.


1 year after the task with the Reference Id Task1 is completed:

$tasks[Task1].completed$+1y