I configured a ScriptTaskListener to the userTask. I used,
When the listener is executed, the assignee of the task is updated to user in runtime. But in the historic task instance, the assignee is not updated. Similar behavior is happening when expression is used for the task. Is this expected? or a bug? How can we resolve this?