process.rk
Rangka process
Lives in apps/<app>/processes/<name>.rk, modules/<module>/processes/<name>.rk or <site>/processes/<name>.rk · Schema process.json (source) · first line: # yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/process.json
Properties
| Property | Type | Meaning |
|---|---|---|
name required | string | pattern ^[a-z][a-z0-9_]*$ |
label | map of string | |
stages required | list of object | at least 1 |
stages[].name required | string | pattern ^[a-z][a-z0-9_]*$ |
stages[].label | map of string | |
stages[].model required | string | pattern ^[a-z][a-z0-9_]*$ |
stages[].when | string | |
stages[].models | list of string | |
stages[].hint | map of string | One sentence on what to do in this stage, shown in Mulai di sini (contract 0053 §1) |
stages[].answers | list of map of string | The owner's problems this stage answers, in their words (contract 0053 §1) at most 5 |
Example
From rangka-apps/apps/crm/processes/lead_to_cash.rk (first 60 lines):
yaml
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/process.json
name: lead_to_cash
label: {id: Dari lead sampai lunas, en: Lead to cash}
stages:
- {name: lead_in, label: {id: Lead masuk, en: New lead}, model: lead}
- {name: deal, label: {id: Peluang, en: Deal}, model: deal}
- {name: invoice, label: {id: Faktur, en: Invoice}, model: sales_invoice}
- {name: paid, label: {id: Lunas, en: Paid}, model: sales_invoice, when: "status == 'paid'", models: [payment]}Generated from the schema by website/scripts/gen-reference.mjs. Edit the schema, not this page.