@smartkomm/plexus-cli 0.1.230 → 0.1.232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- f1d56961495aa9177de9f212facb7db73dbc4923e129e3540bb1d6055a799cec
1
+ fda3f54920feb22c3e2799638c739c0c47c5c1a6ce22881a6c99331d10482c45
@@ -211,6 +211,7 @@ whole is the operator's (ask them; do not try).
211
211
  | [offer/edit-live-tenant-offer.md](references/offer/edit-live-tenant-offer.md) | Mandant + Plattform | Change a live offer: fresh export → change → plan → apply → plan shows all same (signing connection steps need the operator). |
212
212
  | [offer/edit-smartform.md](references/offer/edit-smartform.md) | Mandant | Change a SmartForm in detail (properties, order, English texts). |
213
213
  | [offer/conditional-optional-action.md](references/offer/conditional-optional-action.md) | Mandant | Offer an optional action only under a condition over `$env`, e.g. for one stage |
214
+ | [offer/skip-evaluation.md](references/offer/skip-evaluation.md) | Mandant | Let the decider skip the evaluation a decision rule asks for |
214
215
  | [offer/conditional-team.md](references/offer/conditional-team.md) | Mandant | Give a node's task to a team chosen by a yes/no answer of the form, else a default team |
215
216
  | [offer/consent-field.md](references/offer/consent-field.md) | Mandant | Add a consent field (a checkbox that must be ticked) or convert a preset yes/no into one. |
216
217
  | [offer/edit-workflow-node.md](references/offer/edit-workflow-node.md) | Mandant | Rename, rewire, rebind or reroute a node. |
@@ -2222,7 +2222,7 @@ Remove one optional action of a decision node (refused while requiresOneOf names
2222
2222
 
2223
2223
  ### `offer workflow node optional-action set`
2224
2224
 
2225
- Create or change one optional action (spawnTasks) of a decision node; validate before write
2225
+ Create or change one optional action (spawnTasks or skipRule) of a decision node; validate before write
2226
2226
 
2227
2227
  - **Right:** offline — no deployment
2228
2228
  - **Effect:** offline — edits local files only
@@ -2245,6 +2245,7 @@ Create or change one optional action (spawnTasks) of a decision node; validate b
2245
2245
  | `--clear-when` | Remove --when (always offered) |
2246
2246
  | `--input <value>` | Task (one of --tasks, a record result) the presser answers in the trigger dialog |
2247
2247
  | `--clear-input` | Remove --input (the press asks nothing) |
2248
+ | `--skip-rule` | New action that lifts the node's requiresOneOf for the current visit (no tasks) |
2248
2249
 
2249
2250
  ### `offer workflow node reads`
2250
2251
 
@@ -0,0 +1,54 @@
1
+ # Let the decider skip the evaluation
2
+
3
+ **Use it to** let the person who decides go straight to the decision when the decision node
4
+ waits for an evaluation (`requiresOneOf`: a Gespräch, a Taster Day, a document request): the
5
+ entry „Evaluation überspringen" under „Weiteres".
6
+
7
+ ## The model
8
+
9
+ - **A `skipRule` optional action** on the decision node: `{ key, action: 'skipRule', label,
10
+ trigger }` — no tasks. `trigger` is the team that may press it.
11
+ - **The press lifts the rule for this visit.** The decision buttons appear at once. If the
12
+ application comes back to the node later, the rule holds again.
13
+ - **Running evaluation tasks lapse.** The open tasks of every action the rule lists are
14
+ cancelled. An open request to the family stays: the family still owes it.
15
+ - **The feed records it**: „Evaluation übersprungen", with who and when (internal only).
16
+ - **The entry exists only while it changes something**: while the rule holds, and afterwards
17
+ as „erledigt". Once an evaluation met the rule, there is nothing to skip.
18
+
19
+ ## CLI
20
+
21
+ Use a scratch dir for a real tenant
22
+ ([edit-live-tenant-offer.md](./edit-live-tenant-offer.md)).
23
+
24
+ ```bash
25
+ plexus-cli offer workflow node optional-action set --dir <dir> --node <decision> \
26
+ --key skipEvaluation --skip-rule \
27
+ --label "Evaluation überspringen" --label-en "Skip the evaluation" \
28
+ --trigger <team>
29
+
30
+ plexus-cli offer validate --dir <dir>
31
+ ```
32
+
33
+ The label is the school's word; the feed always says „Evaluation übersprungen".
34
+
35
+ ## What publish refuses
36
+
37
+ | Code | Meaning |
38
+ |---|---|
39
+ | `[optionalAction/skipRuleWithoutRule]` | The node has no `requiresOneOf` — nothing to skip |
40
+ | `[optionalAction/skipRuleNeedsDecisionRow]` | The node names no decision team (`assign.decision`) |
41
+ | `[optionalAction/skipRuleListed]` | The skip action is itself listed in `requiresOneOf` |
42
+ | `[optionalAction/skipRuleTwice]` | A second skip action on the same node |
43
+ | `[optionalAction/skipRuleShape]` | It carries `tasks`, `input`, `repeatable` or `submitLabel` |
44
+
45
+ A press while the rule is already met is refused with `[optionalAction/ruleMet]`.
46
+
47
+ ## Verify
48
+
49
+ 1. A test application parked at the decision node, no evaluation done.
50
+ 2. Cockpit: „Weiteres" → „Evaluation überspringen". The decision buttons appear; the feed
51
+ shows „Evaluation übersprungen" with the name.
52
+ 3. With a Taster Day running: its open tasks read „entfällt" after the press.
53
+
54
+ Test tenant: Grundschule, the Freigabe („Berta Freigabe").