cancel
Showing results for 
Search instead for 
Did you mean: 

The receive task is not getting completed

kum9sud
Champ in-the-making
Champ in-the-making
We have the following model -

Start -> Receive Task -> User Task -> End

After starting the process the activity gets stuck at receive task. How to send the signal to the receive task so that it gets completed and the user task gets started?

We are using the following code -

Execution execution = runtimeService.createExecutionQuery()
  .processInstanceId(pi.getId())
  .activityId("ReceiveTask")
  .singleResult();
assertNotNull(execution);

runtimeService.signal(execution.getId());

The execution object is always null. We are getting the following exception - activitiObjectNotFoundException ->ExecutionID does not exist.

Also in our example where is the ideal place to add the runtime.signal() call?
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Did you check the executions in the engine? The right execution must be there.

Regards
Martin