# Organizing flow in UI

**URL:** <https://community.temporal.io/t/organizing-flow-in-ui/8809>\
**Category:** Community Support\
**Tags:** child-workflow, workflow-options, typescript-sdk, web-ui, workflow-implementat\
**Created:** [July 12, 2023, 7:23am UTC](https://community.temporal.io/t/organizing-flow-in-ui/8809 "2023-07-12T07:23:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishore\_kumar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kishore_kumar/32/4015_2.png) [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Post date:** [July 12, 2023, 7:23am UTC](https://community.temporal.io/t/organizing-flow-in-ui/8809/1 "2023-07-12T07:23:54Z")

</div>

Hey can anybody find a solution for the below useCase?

**usecase** :-  
We are sending few calls in parallel (concurrently)in Batches to an external system & we’ll be waiting for the callBack for the calls to process further.

**Example** :-  
Batch of 50  
Make 50 calls at the same time concurrently to an external system & wait for the callBack for all the callbacks & process the calls at the same time.

since we’re using promise.all() it’s hard to debug in UI. if there are many batches then it becomes more & more Hard to debug.

So, Can we use anything that is provided by temporal, like subflows or child workflows for batches… something…

---

<div class="post-metadata">

**Author:** ![bergundy](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/bergundy/32/900_2.png) [@bergundy](https://community.temporal.io/u/bergundy)\
**Post date:** [July 13, 2023, 8:08am UTC](https://community.temporal.io/t/organizing-flow-in-ui/8809/2 "2023-07-13T08:08:22Z")

</div>

I’m not sure I understand what callback you’re referring to. Is this a signal from the external system or a completion or a promise returned from an activity?

---

<div class="post-metadata">

**Author:** ![kishore\_kumar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/kishore_kumar/32/4015_2.png) [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Post date:** [July 13, 2023, 11:14am UTC](https://community.temporal.io/t/organizing-flow-in-ui/8809/3 "2023-07-13T11:14:57Z")

</div>

yep it is a signal from external system

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [July 13, 2023, 1:29pm UTC](https://community.temporal.io/t/organizing-flow-in-ui/8809/4 "2023-07-13T13:29:25Z")

</div>

You can implement a query that returns the current state of the workflow, which makes troubleshooting easier.
