1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# States Definition for Markdown Plan Compiler
# This file defines the valid states for tasks and the allowed transitions
# between them. The CLI can print this machine with `rhei states`.
name: rhei
version: 4.0
states:
pending:
description: Task is ready to execute. An **Assignee** on a pending task means work is actively in progress.
instructions: |
Do the task.
completed:
description: Task finished successfully.
instructions: |
Treat as immutable. Do not re-open, re-run, or modify unless the user
explicitly requests it.
final: true
# Explicit transition rules. Any transition not listed here is forbidden.
transitions:
- from: pending
to: completed
description: Task finished successfully
# Named, reusable state policies. Referenced from `node_policy` below.
profiles:
default-rhei:
# Built-in profile used by both the root and every task node in the
# default configuration. Covers the simple pending/completed flow.
initial: pending
allowed:
- pending
- completed
# Maps each node to a profile. The root is always a `rhei`-kind node and is
# mapped through `root`. All other nodes resolve through `by_type` (if their
# kind is listed) or `default`.
node_policy:
root: default-rhei
default: default-rhei