Skip to content
IdentityFlow Release overview & limits

Run approvals that wait for people, continue after restarts, and show who decided. Write the process in TypeScript; IdentityFlow keeps its history in PostgreSQL.

Questions IdentityFlow answers for every instance

Where is my workflow?

The instance page shows its status and each step with its status and times, so you see which step is running, which one waits for a person, and which one failed.

Find an instance

What happened so far?

The Audit tab lists every recorded event in order, with its time and the account that caused it. Events are appended and never changed or deleted.

Read the audit trail

Who may act on it?

A dialog names the principals that may answer it. When an account answers, IdentityFlow asks your identity hook for the account’s current principals and refuses an account without a match.

Identity and access

How a workflow runs

A vacation request looks up the employee, then waits for an approver. The drawing shows what IdentityFlow records at each transition, and what happens when the instance continues after the answer.

RUN 1 · UNTIL THE DIALOG WAITSRUN 2 · FROM THE TOPload employeecalls directoryapprove vacationwaits for answerAnswer arrivesdays laterEvent historyappend onlyload employeerecorded resultapprove vacationrecorded answerInstance completedreturns resultthen5 eventsSTEP_CONTINUINGreplays2 eventsthenruns
RUN 1 · UNTIL THE DIALOG WAITSRUN 2 · FROM THE TOPload employeecalls directoryapprove vacationwaits for answerAnswer arrivesdays laterEvent historyappend onlyload employeerecorded resultapprove vacationrecorded answerInstance completedreturns resultthen5 eventsSTEP_CONTINUINGreplays2 eventsthenruns
Every transition appends an event to the instance's history; after the answer the function runs again from the top, and load employee returns its recorded result instead of calling the directory.

The workflow behind the drawing

A Workflow Definition pairs an async function with a name, a version and an optional input schema. async (flow) => { … } is a function literal, like Go’s func(flow) { … }, and await waits for a step’s result.

  • flow.do('load employee', …) runs the lookup through a binding, the workflow’s named access to the directory, and records the result.
  • flow.dialog('approve vacation', …) waits until an account with the principal role:vacation-approver at the provider acme answers. The answer is checked against Decision.
  • Code outside a step runs again on every replay, so it must not call other systems. A call inside a step is delivered at least once: if the program stops after the other system accepted it but before IdentityFlow recorded the result, the step runs again. External effects shows how the receiver recognizes a repeated request.
export const vacationApproval = defineWorkflow(
{
name: 'vacation-approval',
version: '1.0.0',
draft: false,
label: 'Vacation approval',
description: 'Request vacation and wait for an approver’s decision.',
schema: VacationRequest,
},
async (flow) => {
const directory = flow.use(AcmeDirectory);
const employee = await flow.do('load employee', () => directory.lookup(flow.params.employeeId));
// The completed lookup is reused when the approval resumes.
const decision = await flow.dialog('approve vacation', { schema: Decision }, () => ({
params: { ...flow.params, ...employee },
assignees: [{ providerId: 'acme', subject: 'role:vacation-approver' }],
}));
return { employeeId: flow.params.employeeId, decision };
},
);

Who IdentityFlow is for

Two technical tracks share one event-sourced record: workflow authors who build processes and platform teams who run them.

Build workflows and integrations

Write long-running processes as async TypeScript functions, test them against PostgreSQL and connect external systems.

  • Steps for work, timers, people, external jobs and child workflows: flow.do, flow.sleep, flow.dialog, flow.request and flow.start
  • Workflow Tests start real instances against PostgreSQL and replace bindings with typed fixtures
  • Your identity hook reports the principals of each signed-in account, and authorization.ts grants access per workflow family
  • A GraphQL API for your own browser UI with the same OIDC sign-in and access checks as the web application (plus an opt-in backend service mode with proxy header-stripping and operation-group allowlist requirements)
  • Complete, compiled recipes with tests for common approval, retry, deadline and integration patterns
Start writing workflows

Deploy and operate IdentityFlow

Run one self-contained server against PostgreSQL 17 or 18, secure sign-in with OIDC and operate running instances.

  • One self-contained executable serves the web application and GraphQL API and runs workflows without Node.js on the server
  • Connects to PostgreSQL 17 or 18 as a NOSUPERUSER database owner, with automatic forward-only migrations and /-/ready probes
  • Exports Prometheus metrics on a separate port and OpenTelemetry metrics and traces when OTEL_* variables are set
  • Day-2 controls in the web application and GraphQL: pause, resume, terminate, reassign pending dialogs and replay failed assignee refreshes
  • Immutable event history with attributable audit evidence and redacted support exports
Install and configure

Business and audit teams read the same record: schema-derived start and answer forms, Assigned to me for pending approvals, and an immutable audit trail showing every event and the principal behind each decision.

What IdentityFlow does

Each card links to the page that documents it.

Event-sourced history

Every change to an instance is an immutable event appended to its history in PostgreSQL. The state you see is derived from those events, and nothing edits or deletes them, so the same history is the audit record.

Replay without repeated steps

When an instance continues, finished steps return their recorded result instead of running again. Calls to other systems are delivered at least once.

Code-first TypeScript

A Workflow Definition pairs an async function with a name, a version and an optional input schema. Branches, loops and Promise methods are plain TypeScript.

Dialogs with forms

A dialog waits for a person. The browser builds the start form from the input schema and the answer form from the dialog’s schema.

Access from signed-in identities

Access functions decide who may start, view, operate and audit each workflow, based on the principals your identity hook reports.

Workflow Tests on PostgreSQL

Tests start real instances in an isolated schema, act as declared accounts, answer dialogs and replace bindings with typed fixtures.

Bindings and a GraphQL connector

A binding is a workflow’s named access to an external system. IdentityFlow ships a GraphQL connector; for other protocols, the binding builds your own client.

Waits that survive restarts

Sleep until a date, wait for a person, poll an external job, start a child workflow or run steps in parallel. Each wait is recorded, so the program can restart meanwhile.

Versioned, immutable definitions

The code behind a deployed name and version never changes. Running instances continue on newer compatible versions of their definition.

GraphQL API for your own UI

A UI served from the same origin as IdentityFlow lists and answers the signed-in account’s dialogs and starts workflows through the GraphQL API. Reads return only what that account may see, and every command checks its authority.

See it in action

Choose a task on Start here, or follow the tutorial to run the starter’s vacation approval as a requester and an approver. The starter’s version does more than the example above and uses its own fields and step names. To see IdentityFlow with a process of your own, ask us for a demo.

IdentityFlow is provided to customers directly. If you don’t have the starter project and the IdentityFlow program yet, write to contact@kenoxa.de.