cancel
Showing results for 
Search instead for 
Did you mean: 

Stop workflow execution

alef
Champ in-the-making
Champ in-the-making
Hi, I need to stop workflow at some point of the execution and reactivate it, possibly acting on retries.

How can I do that?
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Alef,


  /**
   * Suspends the process instance with the given id.
   *
   * If a process instance is in state suspended, activiti will not execute jobs
   * (timers, messages) associated with this instance.
   *
   * If you have a process instance hierarchy, suspending one process instance
   * form the hierarchy will not suspend other process instances form that
   * hierarchy.
   *
   * @throws ActivitiObjectNotFoundException
   *           if no such processInstance can be found.
   * @throws ActivitiException
   *           the process instance is already in state suspended.
   */
  void suspendProcessInstanceById(String processInstanceId);

Regards
Martin

alef
Champ in-the-making
Champ in-the-making
Hi Martin,
I want suspend a specific Process Execution, not a Process Instance.
Suspending an instance, every execution of that instance would be suspended.

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Alef,

I do not understand difference between Process Execution and Process Instance.  Can you elaborate it more?

Regards
Martin