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?