AnsweredAssumed Answered

signalEventReceived not working during debugging

Question asked by apavlenk0 on Dec 26, 2013
Latest reply on Dec 27, 2013 by apavlenk0
Hi,
I was faced with strange issue.
I use intermediateCatchEvent and try to test it


String processInstanceId = runtimeService.createExecutionQuery()
                .processInstanceBusinessKey("businessKey").singleResult().getProcessInstanceId();

Execution execution = workflowRuntimeService.createExecutionQuery()
                .processInstanceId(processInstanceId)
                .signalEventSubscriptionName("subscriptionName")
                .singleResult();

runtimeService.signalEventReceived("subscriptionName", execution.getId());


this code works but if I stop execution (using debugger) and then start it again signal wouldn't work.

How does signalEventReceived method works? Is there any restriction for using it?

Outcomes