# Historic user tasks not having the changes added from Create Execution Listeners

**URL:** <https://forum.flowable.org/t/historic-user-tasks-not-having-the-changes-added-from-create-execution-listeners/7395>\
**Category:** Uncategorized\
**Created:** [January 26, 2021, 1:18pm UTC](https://forum.flowable.org/t/historic-user-tasks-not-having-the-changes-added-from-create-execution-listeners/7395 "2021-01-26T13:18:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bijeshcnair](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/bijeshcnair/32/1452_2.png) [@bijeshcnair](https://forum.flowable.org/u/bijeshcnair)\
**Post date:** [January 26, 2021, 1:18pm UTC](https://forum.flowable.org/t/historic-user-tasks-not-having-the-changes-added-from-create-execution-listeners/7395/1 "2021-01-26T13:18:49Z")

</div>

I have an Execution Listener (Create) for setting the Assignee and the Task name.  
The historic task row for this task is having the Task name and Assignee as empty.

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [January 26, 2021, 3:01pm UTC](https://forum.flowable.org/t/historic-user-tasks-not-having-the-changes-added-from-create-execution-listeners/7395/2 "2021-01-26T15:01:20Z")

</div>

Hi bijeshcnair,

the problem is that create user task listener is invoked after the call

```auto
getHistoryManager().recordTaskCreated(task, execution);

```

I am just curious, why do you need to set taskName and assignee in the listener. If you create a task with the proper name and assignee (e.g. by expression) everything should work fine.

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![bijeshcnair](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/bijeshcnair/32/1452_2.png) [@bijeshcnair](https://forum.flowable.org/u/bijeshcnair)\
**Post date:** [January 26, 2021, 3:44pm UTC](https://forum.flowable.org/t/historic-user-tasks-not-having-the-changes-added-from-create-execution-listeners/7395/3 "2021-01-26T15:44:50Z")

</div>

Hi Martin,  
Thanks for the response.  
Yes right now we are setting the task name and assignee by expression in the BPMN.  
But in the initial versions of the processes, we set it in the Create Execution listeners.  
Programmers wer more comfortable calling the API to get assignee with the Java code 🙂
