cancel
Showing results for 
Search instead for 
Did you mean: 

Uncompleting a standalone task

aseem
Champ in-the-making
Champ in-the-making
Is there a way to uncomplete a standalone task in activiti?

If a task is completed and a history row is added in ACT_HI_TASKINST for that task with END_TIME_ set and DELETE_REASON_ as completed, is there a way we can revert this and "uncomplete" that task?

One way we can think of doing this would be to use custom queries to insert a row in ACT_RU_TASK with data copied from the history row and deleting it from the history table at the same time, but wished to know if there are any suggestions around how can we achieve uncompleting a task once it has been complete.

Thanks
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
Once a taask is completed, it's removed from the runtime table.
You'll need to copy the data from the historic task indeed.

aseem
Champ in-the-making
Champ in-the-making
Thanks Joram, guess we're on the right track then. Just wished to ensure that we were not missing on any APIs that might be doing the same.