Skip to content

Commit ac8a70c

Browse files
committed
Conditional timer event
Added a note, explaining that when the timer expression evaluates to null/empty, then the timer scheduling is skipped and execution continues with the next activity.
1 parent 6526cc5 commit ac8a70c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • content/en/docs/refguide/modeling/application-logic/workflows/workflow-elements

content/en/docs/refguide/modeling/application-logic/workflows/workflow-elements/timer.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ The **Timer** properties are described in the table below:
5656
| Duration | You can set a certain duration for the timer. With the **Continue after** setting, you can indicate the number of seconds, minutes, hours, days, weeks or months the timer's duration is. Possible values for the setting are:<br /><ul><li>Seconds</li><li>Minutes</li><li>Hours</li><li>Days</li><li>Weeks</li><li>Months</li> </ul> |
5757
| Expression | You can set a certain date and time for the timer by writing an expression via the **Continue at** setting.<br><br>For example, you can write `addDays([%CurrentDateTime%], 1)` to set tomorrow as the due date and time. To set a static date and time, you can use the expression `parseDateTimeUTC('2023-12-10T17:12:00.000', 'yyyy-MM-dd''T''HH:mm:ss.SSS')`.<br><br>You can also create a more complex timer. For example, you can set a timer based on a Boolean value (in this example, `isVIPUser`) from the provided workflow context entity: `if $WorkflowContext/isVIPUser then addDays([%CurrentDateTime%], 2) else addWeeks([%CurrentDateTime%], 2])`.<br><br>For more information on available expressions in Mendix, see [Expressions](/refguide/expressions/). |
5858

59+
{{% alert color="info" %}}
60+
When the expression evaluates to `empty` or `null`, then no timer will be scheduled. In case of a standalone activity, execution continues at the next activity. In case of a timer boundary event, the boundary event is simply skipped.
61+
{{% /alert %}}|
62+
5963
### Recurrence Section {#recurrence}
6064

6165
{{% alert color="info" %}}

0 commit comments

Comments
 (0)