Skip to content

App Flow (isolated)

App Flow is an isolated, reusable client-side workflow: it processes actions/data and returns results.

App Flow is a reusable client-side workflow that runs isolated from the page. It processes actions and data, and returns results back to the caller.

TIP: Think of an App Flow as a client-side function: call it, wait for results, then update the UI.

Isolated
No direct page access Inputs/outputs
Reusable
Call from many pages Same behavior
Returns data
Expose results To your UI
Use App Flow when you want a reusable workflow with inputs and outputs.
Keep it pure: treat it like a function (parameters in, results out).
If you need database or protected logic, call a Server Connect Action from the App Flow.

You connect a page to an App Flow using a Flow component, then run it from events.

The flow runs isolated, but it can receive parameters and return results.

Use a Flow component with `src` to point to your App Flow JSON.
Pass inputs with `dmx-param:*` (or via `run({...})`).
Use `flowId.run(...)` from an event to execute the flow.

When you run an App Flow, use its status and data in your UI.

Use `flowId.running` to show loading/progress.
Read results from `flowId.data` after the run completes.
Handle failures via `flowId.lastError` (and branch your UI accordingly).

Review what you did and choose a next tour.

Pick a related tour to continue.