Adding child Execution with businessKey

With my case, I am calling a subProcess from a Parent process. The subprocess consists of

  • A HttpTask that eventually call a sequential flow Element which is a Java Receive task.

On the callback, I need to resume the receive task by executionQuery having criteria of processBusinessKey.

The problem is:

When I pass the processBusinessKey, I receive only the Parent process and the HttpTask Execution, not the child execution which is a receive task.

I see in the embedded workflow engine, I see a possibility to retrieve that using

runTimeService.createExecutionQuery()
                .processInstanceBusinessKey("businessKey", true)
                .activityId("activityId").singleResult();

processInstanceBusinessKey(“businessKey”, true) - Here the true indicates add childExecution

But As I use Flowable Rest APIs, The closest API is the below one where there is no such optional available to add childExecution.

POST[​/query​/executions](https://documentation.flowable.com/latest/assets/core-swagger/bpmn.html#/Executions/queryExecutions)

Query executions