# Process was end but records on database this process are in table act\_ru\_actinst

**URL:** <https://forum.flowable.org/t/process-was-end-but-records-on-database-this-process-are-in-table-act-ru-actinst/7161>\
**Category:** Flowable Engine\
**Created:** [December 2, 2020, 9:25am UTC](https://forum.flowable.org/t/process-was-end-but-records-on-database-this-process-are-in-table-act-ru-actinst/7161 "2020-12-02T09:25:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdrianKu](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@AdrianKu](https://forum.flowable.org/u/AdrianKu)\
**Post date:** [December 2, 2020, 9:25am UTC](https://forum.flowable.org/t/process-was-end-but-records-on-database-this-process-are-in-table-act-ru-actinst/7161/1 "2020-12-02T09:25:51Z")

</div>

Hi,

I’m using Flowable 6.4.2  
I see on database that process was end. In database is record on table act\_ru\_actinst that the endEvent was end, but all records for this process instance are further in the table act\_ru\_actinst.  
In my application, almost all process instances are removed from this table after they are finished, but I have three instances that were left in act\_ru\_actinst.  
What can be done to remove the records of this process instance from this table act\_ru\_actinst?

Regards,  
Adrian

---

<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:** [December 4, 2020, 11:18pm UTC](https://forum.flowable.org/t/process-was-end-but-records-on-database-this-process-are-in-table-act-ru-actinst/7161/2 "2020-12-04T23:18:07Z")

</div>

If a process instance is ended, all data is removed from the tables with \_ru (runtime). Can you share what kind of data is left? is there anything left in the act\_ru\_execution table?

---

<div class="post-metadata">

**Author:** ![AdrianKu](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@AdrianKu](https://forum.flowable.org/u/AdrianKu)\
**Post date:** [December 8, 2020, 7:25am UTC](https://forum.flowable.org/t/process-was-end-but-records-on-database-this-process-are-in-table-act-ru-actinst/7161/3 "2020-12-08T07:25:23Z")

</div>

Thanks for the help.  
I know what the problem is. I have a parallelGateway, and one way in parallelGateway have endEvent.  
First way go to end parallelGateway (I see this step in the act\_ru\_execution table), and the second way does not go to end parallelGateway but end on endEvent.  
Can I use endEvent only on one way in parallelGateway?  
How to close such hanging process instances?
