# Persistance between setAssignee or SetOwner vs setVariables

**URL:** <https://forum.flowable.org/t/persistance-between-setassignee-or-setowner-vs-setvariables/9189>\
**Category:** Flowable Engine\
**Created:** [April 11, 2022, 4:59am UTC](https://forum.flowable.org/t/persistance-between-setassignee-or-setowner-vs-setvariables/9189 "2022-04-11T04:59:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeLearner](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@codeLearner](https://forum.flowable.org/u/codeLearner)\
**Post date:** [April 11, 2022, 4:59am UTC](https://forum.flowable.org/t/persistance-between-setassignee-or-setowner-vs-setvariables/9189/1 "2022-04-11T04:59:22Z")

</div>

Hi there,

I’m pretty new to Flowable, and currently I have a process that involves 2 User Tasks. In my first User task, I’ve set the assignee, owner, and variables to the task:  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/9/9c580ace871c021588ea2c6d76bdc9a1f101f6ab.png)

However, when I try to print them in the second User task, my assignee and owner are null, but variables are present.

I’ve tried adding a line: taskService.save(task) in the first user task, but it seems like the assignee and owner are still not persisting. Any advice on how I can persist the assignee and owner?

---

<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:** [April 20, 2022, 5:55pm UTC](https://forum.flowable.org/t/persistance-between-setassignee-or-setowner-vs-setvariables/9189/2 "2022-04-20T17:55:04Z")

</div>

That should work. Can you share how your process BPMN xml looks like wrt the task listener?
