# Delay process end/task end until interval

**URL:** <https://community.ofelia.com/t/delay-process-end-task-end-until-interval/9550>\
**Category:** Q&A\
**Created:** [1 April 2019 17:10 UTC](https://community.ofelia.com/t/delay-process-end-task-end-until-interval/9550 "2019-04-01T17:10:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtumminelli\_1394599](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/rtumminelli_1394599/32/1412_2.png) [@rtumminelli\_1394599](https://community.ofelia.com/u/rtumminelli_1394599)\
**Post date:** [1 April 2019 17:10 UTC](https://community.ofelia.com/t/delay-process-end-task-end-until-interval/9550/1 "2019-04-01T17:10:08Z")

</div>

Hello,

I have seen that one is able to start processes on a given schedule, but is it possible to make it so that a process can only end hourly, for example? So, if I have a simple process involving only 1 human task, when that task is completed, the process will only proceed to the end if it is the start of a new hour (exactly \_:00). If the human task was completed at 5:50, I would like Bonita to wait until 6:00 to allow the process to end. If you can’t do this with an entire process, can you do something like it for a task?

Thanks

---

<div class="post-metadata">

**Author:** ![rtumminelli\_1394599](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/rtumminelli_1394599/32/1412_2.png) [@rtumminelli\_1394599](https://community.ofelia.com/u/rtumminelli_1394599)\
**Post date:** [2 April 2019 14:26 UTC](https://community.ofelia.com/t/delay-process-end-task-end-until-interval/9550/2 "2019-04-02T14:26:51Z")

</div>

I have created the functionality I wanted by using a Timer with a script that gets the amount time until the next hour and returns that value as the delay duration for the timer. It seems to behave exactly how I want.

---

<div class="post-metadata">

**Author:** ![Dibyajit.Roy](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Dibyajit.Roy](https://community.ofelia.com/u/Dibyajit.Roy)\
**Post date:** [7 April 2022 17:04 UTC](https://community.ofelia.com/t/delay-process-end-task-end-until-interval/9550/3 "2022-04-07T17:04:37Z")

</div>

Hello  
Could you share the code how you achieved it.

&nbsp;

regards
