Use Signal() in implementation of JavaDelegate Class

Hi, I have some trouple when using runtimeService.signal() in 1 implementation of JavaDelegate.

For Example I have 1 modler like this. I have implement Service Task using Java Class and in this class I want to use RuntimeService.Signal() as an trigger to continue my process.

I have try this code:

Execution execution1 = runtimeService.createExecutionQuery().processInstanceId(execution.getProcessInstanceId()).activityId(“MyIdOfReceiveTask”).singleResult();
runtimeService.signal(execution1.getId());

But is doesn’t work and throw exception.

I am just newbie to Camunda, please help me.
Thanks a lots :slight_smile:

Hi There,

You’ve got some fundamental’s about how communication works for processes and the engine wrong. So i’d suggest you take a look at this tutorial so that you can understand how and why processes can be communicated with

1 Like

Thanks for your help bro :grinning:

1 Like