# Adding child Execution with businessKey

**URL:** https://forum.flowable.org/t/adding-child-execution-with-businesskey/9864
**Category:** Flowable Engine
**Created:** [November 1, 2022, 11:46am UTC](https://forum.flowable.org/t/adding-child-execution-with-businesskey/9864 "2022-11-01T11:46:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![robinspeccse](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/robinspeccse/32/2971_2.png) [@robinspeccse](https://forum.flowable.org/u/robinspeccse)
#### Post date: [November 1, 2022, 11:46am UTC](https://forum.flowable.org/t/adding-child-execution-with-businesskey/9864/1 "2022-11-01T11:46:10Z")

</div>

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

```auto
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.

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

Query executions

```
