Receive Task: How to continue the process?


how can a process be continued after reaching a reveive task ?
The documentation says runtimeService.signal(…). But the signal method is not anymore available in RuntimeService.
In version 5 I used the signal method to continue.

Thanks for help.

1 Like

.signal() has been renamed to .trigger() (see It’s just a name change, the semantics remain the same.

I’ll check the docs and fix it, thanks.
Edit: doc updated:

Thanks for fast answer. Now it works.

I tried already .trigger(). My fault was that I called with an parent-execution-id. That causes an exception. You need to select the child execution.

Maybe the trigger function should handle this different than throwing an exception? (Only an idea)

This exeption is thrown:
Caused by: org.flowable.engine.common.api.FlowableException: Programmatic error: no current flow element found or invalid type: null. Halting.
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(
at org.flowable.engine.impl.interceptor.CommandInvoker.execute(
at org.flowable.engine.impl.interceptor.TransactionContextInterceptor.execute(
at org.flowable.engine.impl.interceptor.CommandContextInterceptor.execute(
at org.flowable.engine.impl.interceptor.LogInterceptor.execute(
at org.flowable.engine.impl.cfg.CommandExecutorImpl.execute(
at org.flowable.engine.impl.cfg.CommandExecutorImpl.execute(
at org.flowable.engine.impl.RuntimeServiceImpl.trigger(

Handling it differently is impossible, as for a complex process instance there are potentially multiple executions that could be triggered.

I did make the exception that’s being thrown (hopefully) a bit clearer in this commit:

how did you get the child execution id
name the API, that will be helpful

1 Like