Overview
Subprocesses can be started in two modes:- Asynchronous: Execute alongside the parent process without delaying it.
- Synchronous: The parent process waits until subprocesses are finished before advancing.
Configuring & starting subprocesses
Design subprocesses within the FlowX.AI Designer, mirroring the main process structure.Parameter inheritance
Available for Start Subprocess action and Call Activity node.
- Copy from Current State: Select keys to copy.
- Exclude from Current State: Specify keys to ignore.
Append Params to Parent Process
Executing subprocesses
Define subprocess execution mode:- Asynchronous/Synchronous: Set the
startedAsyncparameter accordingly.
How data flows between subprocess and parent
When a subprocess needs to send data back to the parent process, FlowX provides several mechanisms. Choosing the right one depends on whether you need data in the parent UI, the parent data model, or both.Data return mechanisms
| Mechanism | What it does | Parent data model | Parent UI | When to use |
|---|---|---|---|---|
| Append Params to Parent Process | Copies specified keys from subprocess into the parent process data model | Yes | No (until next UI refresh) | Business logic in the parent needs subprocess results (conditions, validations, downstream actions) |
| Send data to user interface (target: Parent) | Pushes data to the parent process UI via SSE | No | Yes (real-time) | Real-time UI updates while the subprocess runs (progress indicators, live previews) |
| Call Activity output key (sync mode) | Automatically returns subprocess data under a configured key when the subprocess completes | Yes | No | Sync subprocesses where the parent waits for results |
| Embedded subprocess | Shares the parent data model directly, no data transfer needed | Shared | Shared | Simple subprocess logic that operates on the same data |
Common patterns
“I need data in both the parent data model and the parent UI” Use both actions: configure Append Params to Parent Process to persist the data, and Send data to user interface (target: Parent) to push the update to the UI immediately. “My subprocess has a throw event before the end node — do output parameters still get sent?” Output parameters configured on the Call Activity node are sent when the subprocess token reaches the End node. If the subprocess ends via a throw event before reaching End, the output parameters are not automatically returned. Use Append Params to Parent Process before the throw event to ensure data reaches the parent.Message format example
When using Send data to user interface to push data to the parent UI, the message body follows this format:Additional resources
Call activity node
Start a subprocess action
Start embedded subprocess
Synchronous Subprocesses course
Academy course covering embedded/call activities, UI updates, and data passing patterns

