> For the complete documentation index, see [llms.txt](https://bpmflow.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bpmflow.gitbook.io/project/functional-and-technical-information/timers/task-timers.md).

# Task Timers

**Attached Events** are added to the **BPMTimerEventMonitor** collection when it's parent task is created. And it is removed from **BPMTimerEventMonitor** collection when the task is finalized.

**Timer Events** are added to **BPMTimerEventMonitor** collection when a *token/transition* arrive to the event. And it is removed from **BPMTimerEventMonitor** collection when answer \[true] to any **Monitor** evaluation.

**Timer Block** are activiated by ***Blocks***. In each evaluation ***aBlock*** always answer **true** or **false**. **Blocks** receive three parameters when the evaluation is done: 1) ***lastExecutedTime*** - \[aTimeStamp] with the last executed time. 2) ***currentTimeStamp*** - \[aTimeStamp] which is the current time. 3) ***process*** - \[aBpmProcessInstance] which is the Bpm Process itself.

The **Attached Timer Block** in this case is executed each 10 seconds.

![](https://3974112602-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LH4gGgyMb1_fhOg782r%2F-LHEdKpX6Zl_2wDJjkqp%2F-LHEdt2Rd-gqa_a5McNV%2Ftimer-code-01.jpg?alt=media\&token=5f895328-fb9d-41d7-80fe-c7209ab8630e)

![](https://3974112602-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LH4gGgyMb1_fhOg782r%2F-LHEdKpX6Zl_2wDJjkqp%2F-LHEduRKn4r8Kppi-6bg%2Ftimer-block-01.jpg?alt=media\&token=4ce85211-063c-49f1-84b1-e4c17918dc87)

The **Timer Event Block** in this case will wait X seconds before resuming the execution of the process. X is defined by the **BpmProcess** variable \[***termValue***]. This variable was set in the previous task of the **BpmProcess**.

![](https://3974112602-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LH4gGgyMb1_fhOg782r%2F-LHEdKpX6Zl_2wDJjkqp%2F-LHEe0-PKHHewRja9QLe%2Ftimer-code-02.jpg?alt=media\&token=57a92a36-df1e-403b-acc3-678bea9518e6)

![](https://3974112602-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LH4gGgyMb1_fhOg782r%2F-LHEdKpX6Zl_2wDJjkqp%2F-LHEe1I-gGaGImjRnIOl%2Ftimer-block-02.jpg?alt=media\&token=4d8ffacd-228d-4edd-88e9-76ff77e53de3)

&#x20;**Monitor Clockwork**

![](https://3974112602-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LH4gGgyMb1_fhOg782r%2F-LHEdKpX6Zl_2wDJjkqp%2F-LHEe5ElsAhsldmyLoBb%2FTask%20Timer%202.jpg?alt=media\&token=e7728e63-e345-45d8-a0d8-b0cb8ef7e391)
