# Problem with Task Escalation

**URL:** <https://forum.flowable.org/t/problem-with-task-escalation/3975>\
**Category:** Uncategorized\
**Created:** [June 5, 2019, 9:19am UTC](https://forum.flowable.org/t/problem-with-task-escalation/3975 "2019-06-05T09:19:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinathganesh](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/srinathganesh/32/2392_2.png) [@srinathganesh](https://forum.flowable.org/u/srinathganesh)\
**Post date:** [June 5, 2019, 9:19am UTC](https://forum.flowable.org/t/problem-with-task-escalation/3975/1 "2019-06-05T09:19:12Z")

</div>

First, I didn’t find a built in ‘Escalation’ routine so I decided to build one (via BPMN). Let me know if there is a built in ‘Escalation’ flow.

 ![Screenshot%20from%202019-06-05%2014-30-11](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/7/7e6298d668e9cc77c3f085138b02e9c0cf4a2791.png)

1. Pick Due Date: Form with a date widget

2. Script to parse date to ISO

3. Real Task: Some dummy task

4. Handle Delay: Escalation routine to be invoked on delay

Problems:

1. This seems to work fine BUT I cannot change the due date. (after being set)
2. Due date becomes mandatory since I am unable to set empty string in variable `dueDate1`

* * *

- Found [https://community.alfresco.com/thread/217587-dynamically-setting-boundry-timer-date](https://community.alfresco.com/thread/217587-dynamically-setting-boundry-timer-date) but when I set `${timeService.getDueDate(execution)}` in an expression its not evaluated
- This does not solve for problem new due is before old due [https://stackoverflow.com/a/30187976/1897935](https://stackoverflow.com/a/30187976/1897935)

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [June 20, 2019, 3:33pm UTC](https://forum.flowable.org/t/problem-with-task-escalation/3975/2 "2019-06-20T15:33:16Z")

</div>

> [@srinathganesh](#):
>
> - This seems to work fine BUT I cannot change the due date. (after being set)

You’d need to change the dueDate of the job (you can query it through the ManagementService)

> [@srinathganesh](#):
>
> 1. Due date becomes mandatory since I am unable to set empty string in variable `dueDate1`

What do you mean? If you want to have a timer, it needs a due date. Or do you mean that no timer should be set when there’s no variable defined?

Also note that there’s a new escalation event type coming in the next version: [Added support for escalation event type · flowable/flowable-engine@a3a36cf · GitHub](https://github.com/flowable/flowable-engine/commit/a3a36cfbe886d466e99afcea61cb61d372a8264b)

---

<div class="post-metadata">

**Author:** ![srinathganesh](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/srinathganesh/32/2392_2.png) [@srinathganesh](https://forum.flowable.org/u/srinathganesh)\
**Post date:** [July 6, 2019, 3:08am UTC](https://forum.flowable.org/t/problem-with-task-escalation/3975/3 "2019-07-06T03:08:51Z")

</div>

ok thanks will look into Escalation in the future
