Removing activity instances

Hi all,

We accidentally duplicated activity instances for some process instances. When we click on a process instance, we see 3 running activity instances. I was able to locate them in the ACT_HI_ACTINST too. Is there a way to remove or disable activity instances via REST API or via Cockpit? Since they are duplicates, Camunda doesn’t know which to advance.

Thanks

Hi @srht,

you can use process instance modification to remove the addtional activities: Process Instance Modification | docs.camunda.org

If you have the enterprise edition, you can move the token to another task and then remove the Start before action from the panel.

If you have the community edition, you can invoke this REST API: Modify Process Instance Execution State | docs.camunda.org and aplly only the cancel instruction.

Hope this helps, Ingo

1 Like

thank you @Ingo_Richtsmeier !