Microflow Timer

Last update: Edit

1 Introduction

The Microflow Timer widget can be used to time and execute a microflow or nanoflow as long as a certain page is open. The microflow or nanoflow can be executed once or repeatedly, in which case it will not stop until it returns false or until the page is closed.

1.1 Typical Usage Scenarios

  • Update a grid or object after a certain amount of time (for example, a message inbox)
  • Close a page with a message automatically after 10 seconds
  • Automatically make backup copies while the user is still editing an object
  • Open a page and directly trigger validation errors (to achieve this, set Interval (in ms) to 0, Execute once to Yes, and Start at once to Yes – see Properties below)

1.2 Features

  • Add timed behavior to your application
  • Run a microflow or nanoflow

2 Configuration

The widget requires a data view or template grid context. This object will be sent as an argument to the invoked microflow or nanoflow.

3 Properties

  • Interval (in ms) – This defines how often the microflow or nanoflow is called. The inteval is in milliseconds, so the default of 30000 equals 30 seconds. Unless Execute once is set to Yes, the microflow is invoked immediately after loading the page for the first time.
  • Execute once – If set to Yes, the microflow will be invoked only once. The Interval (in ms) above defines after how many seconds it will be invoked.
  • Start at once – If set to Yes (and Execute once is also set to Yes), the microflow or nanoflow will be invoked the first time if the widget has loaded. If set to No, the microflow or nanoflow will be invoked the first time after the Interval (in ms) has passed.
  • Microflow – This is the microflow to be executed. If the microflow returns false, it will not be executed any longer until the context changes.
  • Nanoflow – This is the nanoflow to be executed. If the nanoflow returns false, it will not be executed any longer until the context changes.