# How to rollback task

**URL:** <https://forum.flowable.org/t/how-to-rollback-task/2747>\
**Category:** Flowable Engine\
**Created:** [October 17, 2018, 11:40am UTC](https://forum.flowable.org/t/how-to-rollback-task/2747 "2018-10-17T11:40:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denny](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/denny/32/808_2.png) [@Denny](https://forum.flowable.org/u/Denny)\
**Post date:** [October 17, 2018, 11:40am UTC](https://forum.flowable.org/t/how-to-rollback-task/2747/1 "2018-10-17T11:40:59Z")

</div>

In my case, flowable is an single service. It depends on someone business service (like OA). If OA call `complete(taskA)` accidentally, how to rollabck to process from TaskB to taskA ( It may take some time to find out the problem).  
In other words, are there any way to rollback to any finished tasks in an activity process instances?  
 ![image](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/1X/564f5a0ced2524a8e1ade29dc17be719f49739ff.jpeg)

---

<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:** [October 17, 2018, 1:05pm UTC](https://forum.flowable.org/t/how-to-rollback-task/2747/2 "2018-10-17T13:05:03Z")

</div>

Hi Denny,

You can’t rollback in the term of database rollback. (there is e.g. how to rollback external system call). What you can do is to move execution to the specific state with  
`org.flowable.engine.RuntimeService#createChangeActivityStateBuilder`

Regards  
Martin
