Skip to main content

Wakeup Timer

Registers the workflow to wakeup after a certain time period or at a certain time in the future. The workflow will continue unless sleep immediately is checked. There are two possible continuations;

timeout triggers when the time period specified in the duration has passed or the certain point in time was reached.

next (or name of the action parameter) is taken when either sleep immediately isn't checked or the workflow is invoked by an event, then this action is optional and may be used to model timeouts. Events need to support a session context to support this.

Options​

Sleep immediately​

When this is checked, the execution stops immediately and is continued after either the timer expired or an event triggered that reactivates the execution.

Uncheck this option if the workflow is suspended later, usually after a message is sent where an answer is expected. See the Double Opt-In example for complete diagram. Here a user clicking "No" will end up in the list of declined recipients if no answer is received within the timespan specified in the Wakeup Timer activity the timeout edge is taken and the non-responsive recipient is considered being part of the declined list as well.

Double Opt-In example

Action​

The action to take when the timer expires in the following decision. Such a decision can also be triggered by other events (e.g. an incoming
e-mail). That way the timer action can be used to model a timeout when no answer arrived within a certain time.

If no action is specified the action named 'next' is used.

Sleep duration​

Defines the time period until the timer continues execution. The duration can be given in ISO-8601 notation, e.g.

PT15M     15 minutes
P2D 2 days
P2DT3H4M after 2 days, 3 hours, 4 minutes
PT20.12S after 20 seconds and 120 milliseconds

Currently the time resolution until a task becomes due is 1 minute so the seconds notation will not make sense. Longer durations are possible too;

P2Y       2 years
P3M 3 months
P4W 4 weeks
P5D 5 days
P1Y2M3D 1 year 2 months and 3 days
P1Y2M3W4D 1 year 2 months 3 weeks and 4 days

An absolute timestamp can also be set in the format yyyy-MM-dd HH:mm:ss.

Parameters​

If one of the values can be found in the current context, it overrides the value that was defined statically in the diagram.

actionwakeup
Action parameter which action to take when an event triggers the wakeupSleep duration parameter, see above. Takes the timeout continuation.