How to throw signalEventReceived via javascript

Hi everyone,
I’ve tried this javascript code via execution listener, to throw a signal, and keep getting an error. The execution listener is attached to the start event, and the variable-containing-execution-id is set via another execution listener that is executed before this listener.

javascript code:
execution.getProcessEngineServices().getRuntimeService().signalEventReceived("my-signal-name", variable-containing-execution-id);

org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(java.lang.String, java.lang.String), (java.lang.String, java.util.Map)] of the method org.camunda.bpm.engine.impl.RuntimeServiceImpl.signalEventReceived for argument types [java.lang.String, null]

Any help would be great. Thanks!

Update: The problem here was that the variable-containing-execution-id was empty. Once I fixed the code to set that variable, it resolved the issue.

1 Like