cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset activiti or kill all active processes?

theodore
Champ in-the-making
Champ in-the-making
Hello everyone, thanks for your attention, I'm from china , I have been developing a workflow sofware using Activiti,  there are many unused active progress during the test period, I want to implement a function to reset activiti or kill all active processes, But I don't find proper solution, so , are there some  ideas
2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
Hi Theodore,

Maybe you could use RuntimeService:
<code>
  /**
   * Delete an existing runtime process instance.
   *
   * @param processInstanceId
   *          id of process instance to delete, cannot be null.
   * @param deleteReason
   *          reason for deleting, can be null.
   * @throws ActivitiObjectNotFoundException
   *           when no process instance is found with the given id.
   */
  void deleteProcessInstance(String processInstanceId, String deleteReason);
</code>

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Another possibility is just drop and create DB.

Regards
Martin