# Flowable Variable reset to NULL

**URL:** <https://forum.flowable.org/t/flowable-variable-reset-to-null/9802>\
**Category:** Flowable Engine\
**Created:** [October 11, 2022, 9:50am UTC](https://forum.flowable.org/t/flowable-variable-reset-to-null/9802 "2022-10-11T09:50:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameer.uppal](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@sameer.uppal](https://forum.flowable.org/u/sameer.uppal)\
**Post date:** [October 11, 2022, 9:50am UTC](https://forum.flowable.org/t/flowable-variable-reset-to-null/9802/1 "2022-10-11T09:50:00Z")

</div>

we have created a process in Flowable and it is calling child sub-processes and it is inheriting variables from parent to child for processing the request. we want to nullify the sub-processes and root process variables to NULL or empty.  
Kindly suggest if child processes are completed, and how we can NULLIFY the subprocess variable to NULL from the parent process.  
If we reset in child process then the parent process variable is also set to NULL which is causing in the parent process.  
we want to do this in the last task of the parent process.  
Kindly share your input.

---

<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:** [October 12, 2022, 10:46am UTC](https://forum.flowable.org/t/flowable-variable-reset-to-null/9802/2 "2022-10-12T10:46:04Z")

</div>

> [@sameer.uppal](#):
>
> Kindly suggest if child processes are completed, and how we can NULLIFY the subprocess variable to NULL from the parent process.  
> If we reset in child process then the parent process variable is also set to NULL which is causing in the parent process.

I’m not sure I follow this yet … can you give a more elaborate example?

In any case, the variable between child and parent process instance are separated and they are mapped in and out of the child process. So there’s no need to make a child process instance variable null from the parent process instance.

---

<div class="post-metadata">

**Author:** ![sameer.uppal](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@sameer.uppal](https://forum.flowable.org/u/sameer.uppal)\
**Post date:** [October 13, 2022, 11:14am UTC](https://forum.flowable.org/t/flowable-variable-reset-to-null/9802/3 "2022-10-13T11:14:37Z")

</div>

The parent process is - **order validation process.bpmn** and it is taking few input variables to process the request and then adds a subprocess as validate portfolio rule “portfolio.bpmn” and it inherits a few variables to validate against the order.  
once the parent process is finished we need to delete these variables for the parent and sub-process at the last task in the parent process. Is there any method or way to delete these variables?

---

<div class="post-metadata">

**Author:** ![Dandoucet](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@Dandoucet](https://forum.flowable.org/u/Dandoucet)\
**Post date:** [October 13, 2022, 7:08pm UTC](https://forum.flowable.org/t/flowable-variable-reset-to-null/9802/4 "2022-10-13T19:08:28Z")

</div>

Could you explain why you need to delete the variables at the end of the parent process? What are they interfering with? Are you trying to use their presence/absence to determine some kind of state? Generally speaking I would think that once a process instance is done/complete, its variables would be left with whatever values they had and shouldn’t affect anything else.

---

<div class="post-metadata">

**Author:** ![sameer.uppal](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@sameer.uppal](https://forum.flowable.org/u/sameer.uppal)\
**Post date:** [October 15, 2022, 7:59am UTC](https://forum.flowable.org/t/flowable-variable-reset-to-null/9802/5 "2022-10-15T07:59:57Z")

</div>

ok. But we want to keep corelation id into flowable rest order payload we want to remove post processing of the request.
