AnsweredAssumed Answered

How to find / signal a child execution?

Question asked by iravanchi on Oct 11, 2010
Latest reply on Oct 12, 2010 by iravanchi
Hi,

I have a process definition that contains an embedded sub-process.
In the sub-process, there's a wait state, and the execution waits for a signal on that.

Now, using the API, I want to find the executionId of the child execution to be able to signal it.
Using this code:
List<Execution> executions = runtimeService.createExecutionQuery().processInstanceId(processInstanceId).list();
returns only one execution, and when I signal it, it throws NullPointerException.

How can I find the child execution and signal it?

Outcomes