Sample Use Cases
UC-1 Loan application and approval (flagship)#
UC-2 Personal-loan origination (cross-flow call from a process)#
Origination calls a credit check as a service task; the call must be authenticated and the result (a credit score) must reach the underwriter, who sees it on their task.
Shows. flow_call mapping (process variable ↔ flow input/output), the rule that an output must be
set by a step and land in a string variable, apiKey policy pl-credit-check, key rotation without
401s (npm run key:rotate).
Rotate the key with npm run key:rotate -- (phase) --policy (ref) --env Dev rather than by hand; a rotation keeps the previous key accepted during the changeover so callers do not see 401s.
Repo. process personal-loan-origination in the personal-loan app; add-pl-credit-check.js.
UC-3 Renewal calling another app's flow#
A renewal workflow in one app needs a flow owned by another.
Shows. engine-address.js: each flow is called at its own app's address, taken from the
Environment's app bindings; a flow whose app has no binding refuses the deploy by name.
Repo. app loan-renewal (process loan-renewal-workflow) calling loan-onboarding.
UC-4 Decision table with governance#
Credit policy changes quarterly; compliance needs proof of who approved each version.
Shows. FEEL decision tables and rule templates; tests; hit-rate stats and drift between periods;
champion/challenger experiments; four-eyes approval (decision_approve, env_set_four_eyes);
rule history; Glossary binding so the designer shows terms in business words. A deploy is blocked
(not-approved) while a shipped Decision is unapproved.
An approval covers one sequence number, and its approver must not have written any of the changes since the previous approval. An edit after approving needs a new approval before deploy.
Repo. seed-glossary.js (glossary:lending), decision-*.js.
UC-5 Partner document intake (file trigger on the Hub)#
A partner drops files on an SFTP server or in an object store; each must be processed once and failures set aside.
Shows. Hub file trigger (MinIO or SFTP), inbox/done/failed folders, host-key pinning, key or
password auth, failed-item replay/delete in the Operations console, at-least-once semantics.
If an SFTP file trigger looks stuck, re-run provision-sftp.js before debugging the route: a stale pinned host key fails every connection while readiness still shows healthy. The worker reads the pinned key from its environment, so apply the Hub worker again afterwards (not verified).
Repo. flow partner-docs-intake; provision-sftp.js; verify:file-trigger.
UC-6 Queue and event integration#
Orders arrive on a queue; results are published to a topic; poison messages must not loop.
Shows. queue trigger (RabbitMQ), publish step (RabbitMQ or Kafka), event trigger (Kafka) with a
compiled filter, dead letters (<q>.dlq) replayed from the Operations console's Failed items view, run history in Jaeger (replaying a recorded run is a separate action that asks you to acknowledge each side effect).
Queue triggers are at-least-once: a crash between a step's effect and the acknowledgement redelivers the message.
Repo. Hub flows; verify:failed-items, flow-trigger.js.
UC-7 Resilient partner call#
A bureau is intermittently down; the flow must stop hammering it.
Shows. Retry budget and circuit breaker (resilience.circuitBreaker) compiled by both runtimes;
what an open circuit does (it fails the step; there is no fallback step); the documented difference between the two implementations.
The Integration designer can set a circuit breaker on a REST step (under "Timeout, retries and circuit breaker"); tools and seeds can too, as in flow:circuit-breaker-demo. There is no fallback step: an open circuit fails the step the way an exhausted retry does, and a fallbackStep is refused on both runtimes.
Repo. flow:circuit-breaker-demo.
UC-8 Support desk with optimistic locking#
Agents edit tickets concurrently; no update may silently overwrite another.
Shows. Entity ticket with a version column, row policies, OIDC login through the IAM2 facade,
the verification scripts for gate, login, writes and concurrency.
Repo. app support-desk; verify-generated-concurrency.js.
UC-9 Large-scale sample: an LOS for a bank#
A full loan-origination system with many processes, forms, simulators and a browser test suite, built only to prove the platform at scale.
Shows. Seed scripts as the corpus (los/), UI contract ids for browser tests (ui-contract.js),
step-up MFA on an admin portal, per-app identity. It is a sample, not a product feature.
Repo. app ttb-los, kernel-poc/src/los/.
UC-10 Ship an app through environments#
Promote the same release Dev → Test → Prod with separation of duties.
Shows. Deployment Center plan/digest/blockers; deploy four-eyes (off by default in Dev, on elsewhere); identity provisioning at deploy; residency checks; optional pipeline gates G0–G9; rollback to the previous slot or Helm revision.
Read the plan before starting; deploy_start re-plans and refuses if the digest moved since:
deploy_plan -> members (unit, change), steps, gates, blockers, digest
deploy_start -> queues a run only if planDigest still matches a fresh planDeploy four-eyes is absent (OFF) for an environment named Dev or Development and ON elsewhere, so a solo builder can deploy their own work to Dev. Part 7 has the full deployment flow.
Mapping cases to training modules#
| Use case | Training module |
|---|---|
| UC-1 | 2, 4, 5, 8, 10 (capstone base) |
| UC-2, UC-3 | 5, 6 |
| UC-4 | 5 |
| UC-5, UC-6, UC-7 | 6 |
| UC-8 | 4, 7 |
| UC-10 | 8 |