# Timer event описание

**URL:** <https://forum.reunico.com/t/timer-event-opisanie/37>\
**Category:** Camunda 7\
**Created:** [18.Январь.2021 13:30:33 UTC](https://forum.reunico.com/t/timer-event-opisanie/37 "2021-01-18T13:30:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitry.Raz](https://forum.reunico.com/user_avatar/forum.reunico.com/dmitry.raz/32/21_2.png) [@Dmitry.Raz](https://forum.reunico.com/u/Dmitry.Raz)\
**Post date:** [18.Январь.2021 13:30:33 UTC](https://forum.reunico.com/t/timer-event-opisanie/37/1 "2021-01-18T13:30:33Z")

</div>

коллеги, есть потребность стартовать процесс ежедневно, в заданное время.  
непонятно, как задать timer definition в camunda modeler?

в указанной конфигурации сервис не считывает описание процесса, ошибка  
заранее признателен за помощь

---

<div class="post-metadata">

**Author:** ![autoNAS](https://forum.reunico.com/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@autoNAS](https://forum.reunico.com/u/autoNAS)\
**Post date:** [18.Январь.2021 13:41:09 UTC](https://forum.reunico.com/t/timer-event-opisanie/37/2 "2021-01-18T13:41:09Z")

</div>

@Dmitry.Raz , привет)  
Если используете Spring, оберните старт процесса в метод с аннотацией @Scheduled, ИМХО это гораздо удобнее, чем прописывать в моделе процесса! синтаксис привычный - cron и можно параметризировать вызов в properties

```
@Scheduled(cron = "${cron.expression}")

```

> **[7. Schedule a Task Using Cron Expressions - The @Scheduled Annotation in Spring...](https://www.baeldung.com/spring-scheduled-tasks#schedule-a-task-using-cron-expressions)**
>
> In this tutorial, we’ll illustrate how the Spring @Scheduled annotation can be used to configure and schedule tasks. | How to use the @Scheduled annotation in Spring, to run tasks after a fixed delay, at a fixed rate or according to a cron...

---

<div class="post-metadata">

**Author:** ![Mstislav](https://forum.reunico.com/user_avatar/forum.reunico.com/mstislav/32/102_2.png) [@Mstislav](https://forum.reunico.com/u/Mstislav)\
**Post date:** [18.Январь.2021 13:48:21 UTC](https://forum.reunico.com/t/timer-event-opisanie/37/3 "2021-01-18T13:48:21Z")

</div>

`R/2020-01-18T16:30/P1D` - см. ISO 8601 : Repeating intervals

> **[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)**
>
> 2026-10-27T17:12:29+00:00 UTC+00:00 ISO 8601 is an international standard covering the worldwide exchange and communication of date and time-related data. It is maintained by the International Organization for Standardization (ISO) and was first published in 1988, with updates in 1991, 2000, 2004, and 2019, and an amendment in 2022. The standard provides a well-defined, unambiguous method of representing calendar dates and times in worldwide communications, especially to avoid misinterpreting num...

Для R можно не указывать число повторов (в этом случае оно не ограничено).  
Вышеприведенная настройка таймера будет срабатывать ежедневно, в 16:30, начиная с заданной даты.

@autoNAS описание таймера можно вынести в параметры:

`${ applicationProperties.getTimer() }`

---

<div class="post-metadata">

**Author:** ![Dmitry.Raz](https://forum.reunico.com/user_avatar/forum.reunico.com/dmitry.raz/32/21_2.png) [@Dmitry.Raz](https://forum.reunico.com/u/Dmitry.Raz)\
**Post date:** [18.Январь.2021 14:07:04 UTC](https://forum.reunico.com/t/timer-event-opisanie/37/4 "2021-01-18T14:07:04Z")

</div>

Мстислав, спасибо - попробуем

---

<div class="post-metadata">

**Author:** ![Dmitry.Raz](https://forum.reunico.com/user_avatar/forum.reunico.com/dmitry.raz/32/21_2.png) [@Dmitry.Raz](https://forum.reunico.com/u/Dmitry.Raz)\
**Post date:** [22.Январь.2021 14:34:45 UTC](https://forum.reunico.com/t/timer-event-opisanie/37/5 "2021-01-22T14:34:45Z")

</div>

UPDATE.  
Пошли по 2-му пути. Все работает!
