# Using variable in User task name

**URL:** <https://forum.flowable.org/t/using-variable-in-user-task-name/5675>\
**Category:** Flowable Engine\
**Created:** [March 20, 2020, 11:04am UTC](https://forum.flowable.org/t/using-variable-in-user-task-name/5675 "2020-03-20T11:04:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aorenda](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aorenda](https://forum.flowable.org/u/aorenda)\
**Post date:** [March 20, 2020, 11:04am UTC](https://forum.flowable.org/t/using-variable-in-user-task-name/5675/1 "2020-03-20T11:04:20Z")

</div>

I’m trying to have a dynamic user task name in Flowable Modeler. Basically, I have a user task and inside the name I’d like to display a date. For example: Wait For Task - ${startDate}. Variable startDate is existing.  
So far I have tried following syntax but none of them works:

Wait For Task - ${startDate}  
Wait For Task - #{startDate}

Whatever I try it’s just treating the whole name as a String.

@martin.grofcik Can you please advise what to do? Thanks.

---

<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:** [March 25, 2020, 8:32am UTC](https://forum.flowable.org/t/using-variable-in-user-task-name/5675/2 "2020-03-25T08:32:17Z")

</div>

> [@aorenda](#):
>
> Wait For Task - ${startDate}

That should work. Are you sure there is a process variable ‘startDate’ with a value at the time the user task is reached?

---

<div class="post-metadata">

**Author:** ![aorenda](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aorenda](https://forum.flowable.org/u/aorenda)\
**Post date:** [March 25, 2020, 9:02am UTC](https://forum.flowable.org/t/using-variable-in-user-task-name/5675/4 "2020-03-25T09:02:36Z")

</div>

Actually, Wait For Task - #{startDate} this is changing the task name. So when you open the task, name will look like ‘Wait For Task - 2020-03-25’. But when I click on ‘Show process diagram’ it’s still displaying the static name ‘Wait For Task - #{startDate}’. I also need to display the date in the diagram, do you know if this is possible?

---

<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:** [March 25, 2020, 9:06am UTC](https://forum.flowable.org/t/using-variable-in-user-task-name/5675/5 "2020-03-25T09:06:34Z")

</div>

No, that’s not possible. The diagram is static and doesn’t do any expression resolving.

---

<div class="post-metadata">

**Author:** ![aorenda](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aorenda](https://forum.flowable.org/u/aorenda)\
**Post date:** [March 25, 2020, 9:08am UTC](https://forum.flowable.org/t/using-variable-in-user-task-name/5675/6 "2020-03-25T09:08:56Z")

</div>

Thank you for the answer.
