Commit dad73e9
`notify_cleared` addressed `{record.account.owner}` with no `expand` on the
start node, so the hop read a scalar FK and resolved to nothing. The notify
node refuses a run with zero recipients, so approving the demo recorded the
decision and stranded the flow run at its payoff moment.
The hop was unfixable as written: `showcase_account` has no `owner` field.
The notice now addresses `showcase_invoice.owner`, while the start node
declares `expand: ['account']` and the body reads `{record.account.name}`, so
the demo still teaches relation hydration with a field the account has.
Sweep: `showcase_task_done_notify_owner` carried the same resume-time pattern
(`{record.project.owner}` into a subflow notify, no expand) and is fixed too.
Claude-Session: https://claude.ai/code/session_015fkdTyGmMD5s8ZtEifvuGy
Co-authored-by: Claude <noreply@anthropic.com>
1 parent eaed2ee commit dad73e9
5 files changed
Lines changed: 481 additions & 4 deletions
File tree
- .changeset
- examples/app-showcase
- src/automation/flows
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
674 | 677 | | |
675 | 678 | | |
676 | 679 | | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
677 | 688 | | |
678 | 689 | | |
679 | 690 | | |
| |||
1074 | 1085 | | |
1075 | 1086 | | |
1076 | 1087 | | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1077 | 1095 | | |
1078 | 1096 | | |
1079 | 1097 | | |
| |||
1097 | 1115 | | |
1098 | 1116 | | |
1099 | 1117 | | |
1100 | | - | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
1101 | 1127 | | |
1102 | 1128 | | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1103 | 1132 | | |
1104 | | - | |
| 1133 | + | |
1105 | 1134 | | |
1106 | 1135 | | |
1107 | 1136 | | |
| |||
0 commit comments