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.
Before you start
Section titled “Before you start”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.
Start the server
Section titled “Start the server”Run these commands from the TypeScript workspace root.
pnpm install --frozen-lockfilepnpm buildGETRIEBE_SQLITE_PATH=:memory: pnpm startWait 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.
Complete an order
Section titled “Complete an order”In a second terminal, download run-workflow.ts and run it from the directory where you saved it.
node run-workflow.ts orderThe 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 learning or stop
Section titled “Keep learning or stop”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.