Skip to content

Commit 496271e

Browse files
authored
Merge pull request mendix#10463 from hugomendix/patch-36
Conditional timer event
2 parents 564ea0b + 334388a commit 496271e

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`, no timer is scheduled. If the timer is a standalone activity, execution continues with the next activity. If it is a timer boundary event, the boundary event is skipped.
61+
{{% /alert %}}
62+
5963
### Recurrence Section {#recurrence}
6064

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

0 commit comments

Comments
 (0)