Skip to content

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 ​

PropertyTypeMeaning
name requiredstring
pattern ^[a-z][a-z0-9_]*$
labelmap of string
stages requiredlist of object
at least 1
stages[].name requiredstring
pattern ^[a-z][a-z0-9_]*$
stages[].labelmap of string
stages[].model requiredstring
pattern ^[a-z][a-z0-9_]*$
stages[].whenstring
stages[].modelslist of string
stages[].hintmap of stringOne sentence on what to do in this stage, shown in Mulai di sini (contract 0053 §1)
stages[].answerslist of map of stringThe 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.

Rangka OS is source-available under the Elastic License 2.0 (ELv2). Free to self-host.