Skip to main content

Getting Started

To run the server, Modeler, Getriebe Admin, and the order approval app together, use the Compose example for this release. The steps below run the server and HTTP example from source. Run the sample order approval from start to finish. A requester submits an amount, a reviewer approves the order, and the requester reads the outcome.

Have the Getriebe TypeScript source distribution, Node.js 26.13.1, and pnpm 12.23.0. Check them with node --version and pnpm --version. This example uses an in-memory SQLite database and needs no database service.

Run these commands from the TypeScript workspace root.

Terminal window
pnpm install --frozen-lockfile
pnpm build
GETRIEBE_SQLITE_PATH=:memory: pnpm start

Wait for the server to listen at http://127.0.0.1:3000. It loads the Order approval and Parallel review models and creates the local demo accounts.

In a second terminal, download run-workflow.ts and run it from the directory where you saved it.

Terminal window
node run-workflow.ts order

The script uses the HTTP API directly. It signs in as the demo requester, starts the deployed orderApproval model with an amount of 125.50, then uses a separate reviewer session to claim and complete the review task. The last line starts with Process completed with data and reports that approved is true. The instance ID printed above it identifies this run.

A model defines the workflow. A version is the exact model definition selected at start. Each instance tracks a separate run, and its activated User Task appears in the reviewer’s worklist. The server coordinates the engine, identities, worklist, and database. To see the prepared BPMN model, open apps/server/examples/order-approval.bpmn from the TypeScript source distribution in a BPMN editor.

If the helper cannot connect, check that the server is listening on port 3000. If it cannot find the prepared model or accept the demo login, check that your shell has not overridden the demo or example settings. Demo accounts are for the loopback setup on this page.

Keep the server running to model your own process. When you finish, stop it with Ctrl+C. Stopping this in-memory server discards its models, accounts, and process data.