Tutorial: Using BPMN timer events to start business processes

How many times have you missed a deadline because you didn’t start a task or process on time? In BPMN it’s possible to start processes through a timer and in this article we will show how to do this on HEFLO.

The timer initiator represents when the process will be triggered based on a predefined time condition.

To configure the timer initiator: 

  1. Go to the process editor, and create a new process or open an already created one.
  2. Activate the process automation.

  3. Add a timer initiator to your process from the “Start” elements in the BPMN Toolbox at the left of your screen.
    .

  4. Click on it, and then go to the properties tab.

  5. In the execution section, then “Timer cycle” choose the unit you want HEFLO to use to repeatedly trigger an instance. A work item will be created each time the time condition is met. The timer cycle can be: minutes, hours, daily, weeks, months or years.

  6. Each timer cycle from the one cited above, has a specific configuration:

    1. Every hour : If you choose this one, then another field “Interval” will appear. This interval must be between 1 and 100000000 Hours.

    2. Daily : You will be able to choose what time of day you want your process to be triggered, you can also set specific days. This can be useful, for example, if you want to trigger the process only for working days.

    3. Weekly: You can choose the day of the week and the time you want your process to be triggered.

    4. Monthly : You can choose the day and time you want your process to be triggered. There is also an option to trigger it on the last day of the month.

    5. Yearly : You can choose the month(s), day and time you want your process to be triggered.

  7. Continue the modeling of your process.

  8. Run a test. The tests are performed within the process editor itself, as follows:

    1. Select the process initiator.
    2. Right-click the initiator, click on “Tests,” then click “Start new Work Item” (for HEFLO a “work item” is a process instance).

    3. In the work item execution dialog, fill in the fields and advance in the flow.
    4. Test all possible paths of your flow to ensure the quality of your implementation. 
  9. Validate your process.

  10. Publish the automation from the actions tab.
     
  11. Your process won’t be listed among the published processes in the “New Work Item” dialog box, but it will be triggered automatically when the time configuration is fulfilled.

  12. Wait the same time you entered for your configuration, then go to the workspace and to the task list. You will then be able to see a new work item listed in the concerned process.

The process engine is responsible for identifying the correct time for opening processes instances with automatic initiators such as timers.

Warning: The process engine takes timezone into account, to generate instances of processes started by timers.

To access the Manage Environment screen:

  1. Click the environment name at the top of your screen.
  2. Then click on “Manage Environment”.

  3. In the time zone field, set the one that your processes’ execution will follow.

Was this article helpful?

Related Articles