cancel
Showing results for 
Search instead for 
Did you mean: 

Start of suspended processes

kaech
Champ in-the-making
Champ in-the-making
Hi,

we deployed a process to Activiti and suspended it using runtimeService.suspendProcessInstanceById
It seems that the process is still startable via runtimeService.startProcess… . Is this the way it should be? At least our expectation was that a suspended process should not be startable anymore. It should be completely inactive.

The documentation says:
"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. "

What is the exact meaning of "suspended processes" in Activiti?
2 REPLIES 2

naag
Champ in-the-making
Champ in-the-making
As you quoted from the manual correctly, a suspended process instance (not process definition) will not have any jobs executed. User tasks, service tasks etc. can still be executed normally.

Certainly you will always be able to start a new process instance from runtimeService.startProcess*(). If you want to forbid that, you should do so yourself when calling the Activiti API.

kaech
Champ in-the-making
Champ in-the-making
Thank you for the information. I guess the same is true for suspended process definitions?