AnsweredAssumed Answered

Signal Event Subscription is in suspended state after resuming process

Question asked by prachi.mujumdar on Jan 16, 2014
Latest reply on Jan 16, 2014 by martin.grofcik

I have Process A which I am suspending. As per business requirement when a particular condition is met, I need to resume the process and send a signal to it.

This works fine if I have single process instance in suspended state. But if I have multiple process instances of same process in suspended state then I get following error:

org.activiti.engine.ActivitiException: Cannot throw signal event 'SomeSignalName' because execution '2666' is suspended
   at org.activiti.engine.impl.cmd.SignalEventReceivedCmd.execute(
   at org.activiti.engine.impl.cmd.SignalEventReceivedCmd.execute(
   at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(
   at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(
   at org.activiti.spring.SpringTransactionInterceptor.execute(
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(
   at org.activiti.engine.impl.RuntimeServiceImpl.signalEventReceived(

I am using following code :

To suspend the process


To resume a process


And to send event signal

ExecutionQuery executionQuery = runtimeService.createExecutionQuery().processInstanceId(processInstanceId).signalEventSubscriptionName(signalName);
        if (executionQuery != null) {
                   Execution execution = executionQuery.singleResult();
         runtimeService.signalEventReceived(eventSignal, execution.getId());

Can anyone please help me in this?