@uipath/skills 1.206.0 → 1.206.1
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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/CODEOWNERS +34 -7
- package/README.md +2 -2
- package/package.json +2 -2
- package/skills/uipath-genome/SKILL.md +35 -88
- package/skills/uipath-genome/references/build-guide.md +61 -0
- package/skills/uipath-genome/references/completion-report-guide.md +93 -0
- package/skills/uipath-genome/references/composite-interactions-guide.md +39 -0
- package/skills/uipath-genome/references/configuration-questions-guide.md +68 -0
- package/skills/uipath-genome/references/execution-guide.md +45 -166
- package/skills/uipath-genome/references/execution-parts-guide.md +84 -17
- package/skills/uipath-genome/references/genome-reading-guide.md +153 -0
- package/skills/uipath-genome/references/live-application-guide.md +23 -9
- package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +4 -4
- package/skills/uipath-genome/references/open-items-guide.md +3 -3
- package/skills/uipath-genome/references/package-doc-errata-guide.md +8 -0
- package/skills/uipath-genome/references/refactor-guide.md +38 -39
- package/skills/uipath-genome/references/selector-matching-guide.md +59 -0
- package/skills/uipath-genome/references/selector-translation-guide.md +13 -66
- package/skills/uipath-genome/references/selector-translation-sap-guide.md +7 -5
- package/skills/uipath-genome/references/selector-translation-web-guide.md +2 -2
- package/skills/uipath-genome/references/source-frameworks-guide.md +21 -0
- package/skills/uipath-genome/references/source-migration-guide.md +48 -19
- package/skills/uipath-genome/references/test-execution-guide.md +8 -7
- package/skills/uipath-genome/references/transactional-execution-guide.md +41 -13
- package/skills/uipath-genome/references/ui-target-migration-guide.md +12 -49
- package/skills/uipath-genome/references/ui-verification-guide.md +9 -1
- package/skills/uipath-maestro-case/SKILL.md +7 -7
- package/skills/uipath-maestro-case/references/evals/evals.json +5 -5
- package/skills/uipath-maestro-case/references/planning.md +5 -5
- package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +2 -2
- package/skills/uipath-maestro-case/references/plugins/sla/planning.md +1 -1
- package/skills/uipath-maestro-case/references/registry-discovery.md +3 -3
- package/skills/uipath-planner/SKILL.md +80 -199
- package/skills/uipath-planner/assets/templates/agent-sdd-template.md +17 -17
- package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +15 -13
- package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +19 -19
- package/skills/uipath-planner/assets/templates/case-sdd-task-details-template.md +173 -0
- package/skills/uipath-planner/assets/templates/{case/case-sdd-template.md → case-sdd-template.md} +51 -229
- package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +16 -14
- package/skills/{uipath-genome → uipath-planner}/assets/templates/component-genome-template.md +9 -5
- package/skills/uipath-planner/assets/templates/flow-sdd-template.md +17 -15
- package/skills/{uipath-genome → uipath-planner}/assets/templates/process-genome-template.md +11 -7
- package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +50 -73
- package/skills/uipath-planner/references/author/author-guide.md +119 -0
- package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +36 -0
- package/skills/uipath-planner/references/author/scenario-proposal-guide.md +30 -0
- package/skills/uipath-planner/references/decompose/decompose-guide.md +223 -0
- package/skills/uipath-planner/references/{asdd-crosswalk-guide.md → design/asdd-crosswalk-guide.md} +6 -4
- package/skills/uipath-planner/references/{business-rules-guide.md → design/business-rules-guide.md} +3 -3
- package/skills/uipath-planner/references/design/caller-request-guide.md +92 -0
- package/skills/uipath-planner/references/design/case-data-and-time-guide.md +292 -0
- package/skills/uipath-planner/references/design/case-product-guide.md +243 -0
- package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +166 -0
- package/skills/uipath-planner/references/design/design-guide.md +296 -0
- package/skills/uipath-planner/references/{package-selection-guide.md → design/package-selection-guide.md} +16 -13
- package/skills/uipath-planner/references/{rpa-product-guide.md → design/rpa-product-guide.md} +23 -53
- package/skills/uipath-planner/references/design/scope-recommendation-guide.md +134 -0
- package/skills/uipath-planner/references/design/sdd-writing-guide.md +235 -0
- package/skills/uipath-planner/references/design/solution-composition-guide.md +153 -0
- package/skills/uipath-planner/references/edit/edit-guide.md +66 -0
- package/skills/uipath-planner/references/extract/extract-guide.md +230 -0
- package/skills/uipath-planner/references/extract/source-frameworks-guide.md +22 -0
- package/skills/uipath-planner/references/extract/uipath-non-rpa-signals-guide.md +121 -0
- package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +88 -0
- package/skills/uipath-planner/references/extract/uipath-source-guide.md +193 -0
- package/skills/uipath-planner/references/shared/component-placement-guide.md +99 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/defect-verification-guide.md +4 -4
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/extracted-genome-guide.md +15 -14
- package/skills/uipath-planner/references/shared/extraction-parts-guide.md +66 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/genome-format-guide.md +63 -34
- package/skills/uipath-planner/references/{multi-skill-patterns-guide.md → shared/multi-skill-patterns-guide.md} +28 -27
- package/skills/uipath-planner/references/{pdd-analysis-guide.md → shared/pdd-analysis-guide.md} +27 -72
- package/skills/uipath-planner/references/{plan-and-tasks-format.md → shared/plan-and-tasks-format.md} +43 -67
- package/skills/uipath-planner/references/{platform-availability-guide.md → shared/platform-availability-guide.md} +56 -1
- package/skills/uipath-planner/references/shared/product-selection-guide.md +202 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/skill-mapping-guide.md +24 -4
- package/skills/uipath-planner/references/{tenant-library-search-guide.md → shared/tenant-library-search-guide.md} +10 -8
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/transactional-shape-guide.md +39 -8
- package/skills/uipath-planner/scripts/check-genome.mjs +801 -0
- package/skills/uipath-planner/scripts/sdd-fingerprint.mjs +71 -0
- package/skills/uipath-planner/scripts/sdd-to-docx.mjs +87 -0
- package/skills/uipath-test/SKILL.md +3 -3
- package/version-manifest.json +1 -1
- package/skills/uipath-genome/CLAUDE.md +0 -85
- package/skills/uipath-genome/assets/examples/artemis-2-mission-monitor-genome.md +0 -126
- package/skills/uipath-genome/assets/examples/classify-document-and-create-validation-genome.md +0 -117
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/exception-triage-agent-genome.md +0 -96
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-extraction-genome.md +0 -128
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-orchestration-genome.md +0 -115
- package/skills/uipath-genome/assets/examples/invoice-processing-genome.md +0 -136
- package/skills/uipath-genome/assets/examples/purchase-requisition-entry-genome.md +0 -224
- package/skills/uipath-genome/assets/examples/salesforce-accounts-and-contacts-genome.md +0 -151
- package/skills/uipath-genome/references/authoring-guide.md +0 -98
- package/skills/uipath-genome/references/editing-guide.md +0 -57
- package/skills/uipath-genome/references/extraction-guide.md +0 -166
- package/skills/uipath-genome/references/extraction-parts-guide.md +0 -45
- package/skills/uipath-genome/references/parts-guide.md +0 -22
- package/skills/uipath-genome/references/uipath-source-guide.md +0 -404
- package/skills/uipath-genome/scripts/check-genome.py +0 -670
- package/skills/uipath-planner/assets/templates/case/sdd-viewer.html +0 -1530
- package/skills/uipath-planner/references/case/case-design-lane-guide.md +0 -327
- package/skills/uipath-planner/references/case/case-design-layers-guide.md +0 -503
- package/skills/uipath-planner/references/case/case-sdd-conformance-checklist.md +0 -123
- package/skills/uipath-planner/references/non-pdd-lane-guide.md +0 -196
- package/skills/uipath-planner/references/pdd-driven-lane-guide.md +0 -210
- package/skills/uipath-planner/references/product-selection-guide.md +0 -673
- package/skills/uipath-planner/references/sdd-generation-guide.md +0 -613
- package/skills/uipath-planner/scripts/docx-extract.ps1 +0 -59
- package/skills/uipath-planner/scripts/docx-extract.sh +0 -54
- package/skills/uipath-planner/scripts/sdd-to-docx.ps1 +0 -74
- package/skills/uipath-planner/scripts/sdd-to-docx.sh +0 -76
- /package/skills/uipath-planner/references/{attended-reauth-pattern-guide.md → design/attended-reauth-pattern-guide.md} +0 -0
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
# Case Design in Layers
|
|
2
|
-
|
|
3
|
-
Everything a case design must respect about the Case Management platform, ordered the way a design is actually made. A case is a versioned JSON document of **stages**, **tasks**, and **conditions** that compiles into a deterministic rule plan evaluated on every case event. Identity is by **display name** at runtime — names are load-bearing, not labels (§ Naming rules below). This skill designs the document (`sdd.md`); the build skill (`uipath-maestro-case`) emits and validates `caseplan.json` from it.
|
|
4
|
-
|
|
5
|
-
Design in four layers, each settled before the next refines it:
|
|
6
|
-
|
|
7
|
-
1. **Skeleton** — trigger(s), stages, tasks + types. *What work exists and who/what performs it.*
|
|
8
|
-
2. **Gates** — entry/exit conditions, sequencing. *When each piece activates, completes, routes.*
|
|
9
|
-
3. **Data** — variables, outputs, expressions. *What each piece reads and writes.*
|
|
10
|
-
4. **Time** — SLAs and escalations. *What happens when work runs late.*
|
|
11
|
-
|
|
12
|
-
Close with [§ Layer closure](#layer-closure--the-design-checklist) — the single cross-layer checklist run at Sketch and re-walked at Confirm.
|
|
13
|
-
|
|
14
|
-
**Best assumption is the design mode.** Every open field takes the **Default** stated in its layer — decided and disclosed, never asked. An optional field the source never touches renders `—`. Every non-verbatim value carries a Design Rationale plus a decision line in the confirmation.
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## Layer 1 — Skeleton: trigger, stages, tasks
|
|
19
|
-
|
|
20
|
-
Reason the shape from the process — never reach for the template first. Build in order: **stages → tasks → types → sweep other paths**.
|
|
21
|
-
|
|
22
|
-
### Derivation questions
|
|
23
|
-
|
|
24
|
-
| Concept | Ask of the user's process |
|
|
25
|
-
|---|---|
|
|
26
|
-
| Stage | *What is the case working toward right now, and what makes that done?* One stage per named milestone. A stage that marks the case complete is main-flow (`Required: Yes`). |
|
|
27
|
-
| Secondary stage | *Does this work belong at one fixed point (regular stage), or could it happen at several points / only on a condition?* "Handle rejected application", "escalate on breach", "rework loop" → secondary ([§ Secondary stages](#secondary-stages)). An optional one-off inside the current stage stays an `adhoc` task, not a lane. |
|
|
28
|
-
| Task | *Who or what performs this, and how?* One verb in the description ≈ one task. The "how" answer is the task type. |
|
|
29
|
-
| Persona | *Who acts?* Named roles verbatim, exact casing. **Default:** none named → one `Process Owner`. |
|
|
30
|
-
| "Manual" work | *Does it start a case, or happen inside one?* Starts a case → Manual trigger; optional worker-launched step → `adhoc` + `Required: No`; worker-chosen exception lane → secondary stage with `user-selected-stage`. |
|
|
31
|
-
|
|
32
|
-
### Triggers
|
|
33
|
-
|
|
34
|
-
≥ 1 per case; one primary trigger, more allowed. SDD author tokens (on-disk enum mapping is build-side):
|
|
35
|
-
|
|
36
|
-
| Source says | Author token |
|
|
37
|
-
|---|---|
|
|
38
|
-
| External system, portal, form, inbound event, or record-created start | `Intsvc.EventTrigger` — a tenant object start stays an event trigger even when provisioning is missing (unresolved detail becomes a placeholder later; never downgrade to Manual) |
|
|
39
|
-
| Schedule / recurring | `Intsvc.TimerTrigger` |
|
|
40
|
-
| Otherwise (user or API call) | `Manual` |
|
|
41
|
-
|
|
42
|
-
### Task types
|
|
43
|
-
|
|
44
|
-
<!-- named by case-sdd-conformance-checklist.md — do not rename this heading or reshape this table/fence; the checklist sends authors here by heading name -->
|
|
45
|
-
|
|
46
|
-
The enum is closed — exactly these sixteen literals, used verbatim as the SDD `Type:` value. The `type` says **how the work gets done**, not what it is about — read the verb + the actor:
|
|
47
|
-
|
|
48
|
-
| Type | Pick when the work is… |
|
|
49
|
-
|---|---|
|
|
50
|
-
| `process` | invoking a **deployed orchestration process** that already packages the automation |
|
|
51
|
-
| `action` | a **person** must do, decide, approve, review, or sign off — in a form |
|
|
52
|
-
| `agent` | an **AI agent** reasons over unstructured input: classify, extract, summarize, draft, score |
|
|
53
|
-
| `rpa` | deterministic **UI / desktop** automation of a legacy app with no API |
|
|
54
|
-
| `api-workflow` | calling a **coded / API workflow** directly (multi-step HTTP, serverless logic) |
|
|
55
|
-
| `flow-process` | starting a **deployed Maestro Flow** that already packages the steps, named by its flow name and folder |
|
|
56
|
-
| `function` | invoking a **deployed Coded Function** — deterministic Python / JS/TS logic, no LLM, no UI |
|
|
57
|
-
| `business-rule` | evaluating a **deployed Business Rule** (a decision table) on case data and storing the decision it returns |
|
|
58
|
-
| `document-extraction` | reading fields from a **document (invoice, form, contract) with a deployed IXP model**, named by its deployment |
|
|
59
|
-
| `case-management` | the step **launches / coordinates a child case** |
|
|
60
|
-
| `execute-connector-activity` | one **operation on an Integration Service connector** against a SaaS system (push) |
|
|
61
|
-
| `http-request` | **one HTTP call** the SDD spells out (method, URL, headers, query, body), sent directly or with a connector's connection for authentication, with no logic around it |
|
|
62
|
-
| `wait-for-connector` | the case **pauses until an external system calls back** (pull) |
|
|
63
|
-
| `external-agent` | handing the work to an **externally hosted AI agent** through its connector (CrewAI, Snowflake Cortex, Salesforce Agentforce, Azure AI Foundry…) |
|
|
64
|
-
| `external-workflow` | starting an **external automation** through its connector (Power Automate, Salesforce flows) |
|
|
65
|
-
| `wait-for-timer` | the case **pauses for a duration or until a datetime** |
|
|
66
|
-
|
|
67
|
-
<!-- task-types:not-authorable:start (generated by tests/tasks/uipath-maestro-case/_shared/task_types.py --write-guide; do not edit) -->
|
|
68
|
-
Never author these. Each is a real task type, but an SDD cannot declare it; a person authors it in Studio Web: `script`.
|
|
69
|
-
|
|
70
|
-
Never write these as a `Type:` either. Each names the same work in another layer, and none is a task type. Write the plan type instead:
|
|
71
|
-
|
|
72
|
-
- `connector-activity` → write `execute-connector-activity` (`connector-activity` is from `uip maestro case tasks describe --type`)
|
|
73
|
-
- `connector-trigger` → write `wait-for-connector` (`connector-trigger` is from `uip maestro case tasks describe --type`)
|
|
74
|
-
- `wait-for-event` → write `wait-for-connector` (`wait-for-event` is from `data.serviceType (Intsvc.WaitForEvent)`)
|
|
75
|
-
<!-- task-types:not-authorable:end -->
|
|
76
|
-
|
|
77
|
-
Externally hosted AI agents and automations with a tenant connection are `external-agent` / `external-workflow`; without one, model the call as `api-workflow`. The Case Designer offers `external-workflow` only where its `panel-showCaseExternalAutomations` flag is on (off by default, set per environment); `external-agent` is not gated. Model an external automation as `external-workflow` only when the request or the user says their Designer shows the External workflow task; otherwise model it as `api-workflow` and record that in Decisions I Made.
|
|
78
|
-
|
|
79
|
-
**Tie-breakers:** SaaS integration with a tenant connector → `execute-connector-activity` over `api-workflow`. An operation in the external-agent or external-automation catalog → `external-agent` / `external-workflow`, never `execute-connector-activity`. A single request the SDD can state in full → `http-request` over `api-workflow`; a curated connector operation exists for it → `execute-connector-activity` over `http-request`; more than one call, or logic between calls → `api-workflow`. Fields read from a semi-structured document with a deployed IXP model → `document-extraction` over `agent`; no deployment yet → still `document-extraction`, with the model build routed to `uipath-ixp` (template Section 4). Deterministic coded logic → `function` only when tenant evidence (tier 3) resolves a deployed Function; otherwise `api-workflow`. Ambiguous "approve / review / decide" verbs: named human role or implied judgment → `action`; framed as automated/AI → `agent`. **Default when truly even: `action`** — it keeps a human in the loop and one correction flips it. Decide, disclose, never ask. A compliance trigger phrase forces `action` (below).
|
|
80
|
-
|
|
81
|
-
**Activation is a separate axis.** How a task starts (sequential, event-triggered, manually triggered, stage-started) maps to entry rules (Layer 2) and never changes the `type`.
|
|
82
|
-
|
|
83
|
-
### Task-type override priority
|
|
84
|
-
|
|
85
|
-
Apply in order:
|
|
86
|
-
|
|
87
|
-
1. **User decision pinned to a type** — honor unless schema-invalid or conflicting with tier 2.
|
|
88
|
-
2. **Regulatory constraint requiring human sign-off** — the task MUST be `action`. Trigger phrases: "only a licensed X may decide / sign off / certify / approve"; "regulation requires human review"; "ECOA adverse-action notice" / "FCRA adverse action"; "NCQA UM 3 adverse determination"; "HIPAA-protected approval"; "SOC 2 attestation"; any `<role>-licensed` / `<role>-credentialed` gate; "fiduciary review", "legal sign-off", "auditor review". If the user proposes a non-`action` type AND any phrase appears anywhere in the conversation → ask to confirm; never silently accept. Ask phrasing: name the regulation and propose `action` with the LLM/agent work bound to the action's form and recipient. Example: ECOA adverse-action notice with user-stated `agent` → `action` (Compliance Officer recipient; LLM-drafted body bound to the action's form).
|
|
89
|
-
3. **Tenant evidence** — the registry cache resolves a deployed Action App / process / agent / api-workflow / function / RPA that fits → prefer that resource's type and surface the match.
|
|
90
|
-
4. **Connector availability** — an Integration Service connector matches → `execute-connector-activity` over `api-workflow`.
|
|
91
|
-
5. **Verb signal** — fall through to the § Task types tie-breakers.
|
|
92
|
-
6. **Fallback** — keep the user's stated value if any; otherwise a placeholder plus a `high` review item ([case-design-lane-guide.md § Review items](case-design-lane-guide.md#review-items)).
|
|
93
|
-
|
|
94
|
-
**Compliance-trigger scan.** Scan the whole conversation for tier-2 phrases BEFORE recording any non-`action` type. A phrase surfacing after a non-`action` type was provisionally recorded → re-ask before continuing. No tier-2 phrase in the transcript (e.g. jurisdiction-dependent underwriting) → keep the stated type, disclose the compliance caveat as a decision line.
|
|
95
|
-
|
|
96
|
-
### Secondary stages
|
|
97
|
-
|
|
98
|
-
A secondary stage is an **interrupting exception lane**: `Stage Kind: secondary`, `Required: No`, excluded from `required-stages-completed`, with `Interrupting: Yes` on the stage AND on every entry row. Model errors, escalations, rejections, rework, and cancellations here — never as inline primary stages. Optional one-off work inside the current stage stays an `adhoc` task, not a lane.
|
|
99
|
-
|
|
100
|
-
**One carve-out:** an `sla-status-change` entry whose response is parallel oversight — the breached work keeps running; nothing is paused, taken over, or rerouted — reads `Interrupting: No` on the stage and on that entry row. The lane stays secondary and `Required: No`, and it completes `exit-only` (never `return-to-origin`).
|
|
101
|
-
|
|
102
|
-
**Exits by intent:**
|
|
103
|
-
|
|
104
|
-
| Lane intent | Completion row |
|
|
105
|
-
|---|---|
|
|
106
|
-
| Returning / rework | `return-to-origin` + `Marks Stage Complete: Yes` + `required-tasks-completed` |
|
|
107
|
-
| Terminal (Rejected / Withdrawn / Cancelled) | `exit-only` + `Yes`, plus a root case-exit row with `Marks Case Complete: No` |
|
|
108
|
-
|
|
109
|
-
### Other-path sweep — mandatory before confirmation
|
|
110
|
-
|
|
111
|
-
Look beyond the primary flow. Check the source for each scenario; pick the smallest faithful model:
|
|
112
|
-
|
|
113
|
-
| Scenario | Candidate models |
|
|
114
|
-
|---|---|
|
|
115
|
-
| Rework / needs-info loop | Returning secondary lane (`return-to-origin`) |
|
|
116
|
-
| Rejection, withdrawal, cancellation | Terminal secondary lane + non-completing case exit |
|
|
117
|
-
| SLA escalation | Response per [Layer 4](#layer-4--time-slas--escalations) — notification only unless the source creates work |
|
|
118
|
-
| External-system failure | Secondary lane on the failure event, or an advisory review item |
|
|
119
|
-
| Manual override / worker-launched side work | `adhoc` task (`Required: No`) or `user-selected-stage` lane |
|
|
120
|
-
| Terminal outcomes different from success | Non-completing case-exit rows; XOR terminals ([Layer 2](#xor-terminal-stages)) |
|
|
121
|
-
|
|
122
|
-
Clear source signal → model it by best assumption and disclose in **Other Paths Considered**. No signal at all → spend the one bounded question before the confirmation; "primary flow only" is then a recorded decision, never an omission.
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
|
|
126
|
-
## Layer 2 — Gates: entry, exit, sequencing
|
|
127
|
-
|
|
128
|
-
The case, each stage, and each task move through gates driven by **rules** in disjunctive normal form: the outer rule array is OR, each inner array is AND. **Edges are retired** — flow is condition-driven: each destination stage declares its own entries, and the case starts at the first stage's `case-entered` entry. Reachability is therefore condition-only — a missing or malformed entry condition is the only thing that can orphan a stage.
|
|
129
|
-
|
|
130
|
-
### Lifecycle gates
|
|
131
|
-
|
|
132
|
-
<!-- named by case-sdd-conformance-checklist.md — do not rename this heading or reshape this table/fence; the checklist sends authors here by heading name -->
|
|
133
|
-
|
|
134
|
-
| Gate | Marks complete | Legal WHEN rules |
|
|
135
|
-
|---|---|---|
|
|
136
|
-
| Stage entry | — | `case-entered` (first stage only), `selected-stage-completed`, `selected-stage-exited`, `wait-for-connector`, `user-selected-stage`, `sla-status-change` |
|
|
137
|
-
| Stage completion | Yes | `required-tasks-completed`, `wait-for-connector` |
|
|
138
|
-
| Stage exit | No | `selected-tasks-completed`, `wait-for-connector` |
|
|
139
|
-
| Task entry | — | `current-stage-entered`, `selected-tasks-completed`, `wait-for-connector`, `sla-status-change`, `adhoc`, `runs-sequentially` |
|
|
140
|
-
| Case completion | Yes | `required-stages-completed`, `wait-for-connector` |
|
|
141
|
-
| Case exit | No | `selected-stage-completed`, `selected-stage-exited`, `wait-for-connector` |
|
|
142
|
-
|
|
143
|
-
1. Tasks have NO exit or completion conditions — a task completes when its own work finishes; downstream gates key off `required-tasks-completed` / `selected-tasks-completed`.
|
|
144
|
-
2. `Marks Complete: Yes` pairs only with `required-*` rules (or `wait-for-connector`), and `Marks Complete: No` pairs only with `selected-*` rules (or `wait-for-connector`). This is planner policy, not a platform rejection: the schema, `validate` and the Case Designer all accept the crossed pairs, so nothing downstream catches them. Never author either. Completion must track the stage's required set; a `selected-tasks-completed` completion row completes the stage as soon as its named tasks finish, including a task on a guarded branch.
|
|
145
|
-
3. `required-*` rules are vacuous without an explicit `isRequired: true` member. Required status is explicit end-to-end — the SDD declares it per stage and task, and emission writes it verbatim. An absent flag equals `false` at the validator: `Case rule '<name>' has no required stage(s) selected` / `Stage exit rule '<name>' has no task(s) marked as required`.
|
|
146
|
-
4. **Case completion is a root rule.** At least one case-exit row carries `Marks Case Complete: Yes` (normally `required-stages-completed`). A stage completing never closes the case by itself; alternate outcomes (Rejected, Withdrawn, Cancelled) are case-exit rows with `Marks Case Complete: No`. **Default:** the last primary stage completing closes the case unless the source describes another close-out.
|
|
147
|
-
5. **A gate sees case state as of its own event.** The extract of the task that fired the gate has not run yet, so an `IF` that reads a case variable that task writes is stale — read the producing output instead ([Layer 3 § Gate on the producer](#gate-on-the-producer-never-on-the-variable-it-writes)).
|
|
148
|
-
6. **Evaluation precedence: case exit/completion → stage exit → stage completion → stage entry.** Two consequences: a stage entry identical to a case-exit row (same rule, selector, IF) leaves the stage permanently unreachable — differentiate the guards; an unguarded stage exit (`No`, empty IF) sharing its WHEN with a guarded completion (`Yes` + IF) always fires first and the stage never completes — the exit carries the completion's inverse IF. Both validator-enforced.
|
|
149
|
-
|
|
150
|
-
### Exit types
|
|
151
|
-
|
|
152
|
-
| Row kind | Legal exit types |
|
|
153
|
-
|---|---|
|
|
154
|
-
| Stage completion (Yes) | `exit-only`, `return-to-origin`, `wait-for-user` |
|
|
155
|
-
| Stage exit (No) | `exit-only`, `wait-for-user` |
|
|
156
|
-
| Case completion (Yes) | `exit-only` |
|
|
157
|
-
| Case exit (No) | `exit-only`, `wait-for-user` |
|
|
158
|
-
|
|
159
|
-
- `wait-for-user` + `Marks Stage Complete: Yes` is legal and canonical for user-routed completion.
|
|
160
|
-
- `return-to-origin` is completion-only, and its lane is always interrupting.
|
|
161
|
-
|
|
162
|
-
**`wait-for-user` ↔ `user-selected-stage` pairing.** Validate enforces the pair both ways: a `wait-for-user` exit with no `user-selected-stage` entry anywhere fails with `Stage rule '<name>' has no possible stage options.`; a `user-selected-stage` entry with no `wait-for-user` exit fails with `Stage entry rule '<name>' will never be met.`. `user-selected-stage` is picker exposure — a user choosing the next stage — never deterministic routing. Deterministic rejection, approval, send-back, and SLA routing use decision facts plus guarded entries instead.
|
|
163
|
-
|
|
164
|
-
**Repairing a `user-selected-stage` lane — diagnose first; the two repairs are opposites.**
|
|
165
|
-
|
|
166
|
-
| The source says | Defect | Repair |
|
|
167
|
-
|---|---|---|
|
|
168
|
-
| Pulled aside by hand, picked from the stage picker, nothing triggers it | The lane is correct; its other half is missing | Person-launched |
|
|
169
|
-
| Entry is automatic from a decision, event, or SLA | The picker rule itself | Decision-routed |
|
|
170
|
-
| Nothing either way | Assume person-launched — re-keying on an unstated fact invents a business rule | Person-launched |
|
|
171
|
-
|
|
172
|
-
**Person-launched.** Give every eligible upstream primary stage a completing `required-tasks-completed` / `wait-for-user` / `Marks Stage Complete: Yes` exit ("any active case" means every primary stage). This REPLACES that stage's existing `required-tasks-completed | exit-only | Yes` row — never a second completion row, never a `Marks Stage Complete: No` row. Add no event, SLA, or decision trigger.
|
|
173
|
-
|
|
174
|
-
**Decision-routed.** All four edits, or the branch dual-fires or deadlocks:
|
|
175
|
-
|
|
176
|
-
1. **Lane entry** — REPLACE the `user-selected-stage` row (never keep it alongside) with `selected-stage-completed("<origin stage>")` (or `selected-stage-exited(...)`), `IF` the affirmative guard on the deciding variable — `=js:(vars.<decisionVar> === "<Value>")` — and `Interrupting: Yes`.
|
|
177
|
-
2. **Origin diverting exit** — ADD a row carrying that same affirmative guard with `Marks Stage Complete: No`, so taking the branch does not also complete the stage. Its WHEN is `selected-tasks-completed("<deciding task>")` or `wait-for-connector`: `Marks Complete: No` pairs with nothing else, and the planner never writes `required-tasks-completed | No` (§ Lifecycle gates: a planner rule, since nothing downstream rejects it). Stage exit evaluates before stage completion, so an UNguarded diverting row would fire first and the stage would never complete.
|
|
178
|
-
3. **Origin completion exit** — its guard becomes the COMPLEMENT, `=js:(vars.<decisionVar> !== "<Value>")`. Unguarded, it fires on the diverted case too; repeating the affirmative guard on both rows fires both. With more than one diverted outcome the complement excludes every diverted value.
|
|
179
|
-
4. **Orphaned picker exposure** — once no `user-selected-stage` entry remains anywhere, DROP any upstream `wait-for-user` exit that existed only to expose this lane; the pairing above fails a `wait-for-user` with no picker entry.
|
|
180
|
-
|
|
181
|
-
Copy a sibling outcome of the same decision already keyed this way verbatim — usually the approve branch.
|
|
182
|
-
|
|
183
|
-
### Secondary-lane entry shapes
|
|
184
|
-
|
|
185
|
-
Entry shape follows the lane's trigger source:
|
|
186
|
-
|
|
187
|
-
| Lane trigger | Entry shape |
|
|
188
|
-
|---|---|
|
|
189
|
-
| A person launches it | `user-selected-stage`, paired with an upstream `wait-for-user` exit |
|
|
190
|
-
| External / global event | ONE `wait-for-connector` entry on the destination lane — never duplicated per origin stage |
|
|
191
|
-
| SLA response | ONE `sla-status-change` entry ([Layer 4](#layer-4--time-slas--escalations)) |
|
|
192
|
-
| Decision / signal divert | The origin stage carries a gated diverting exit — `Marks Stage Complete: No`, WHEN `selected-tasks-completed("<decider task>")`, `IF` on the signal, exit target → the lane — and the origin's completion exit carries the exact inverse `IF`. The lane enters via `selected-stage-exited("<origin>")` + the same `IF`. |
|
|
193
|
-
|
|
194
|
-
Omitting the diverting exit makes a decision path dual-fire (ungated completion → the next stage AND the lane both enter) or deadlock (gated completion with no alternative exit). Only a `selected-stage-exited` lane entry needs a diverting exit; a `selected-stage-completed("<origin>")` + `IF` lane keys off the origin's normal completion — guard only.
|
|
195
|
-
|
|
196
|
-
Two lanes with identical entry rules (same rule, selectors, and expression) are ambiguous routing — give each a distinct selector or guard. This is a design requirement; validate does not reject the duplicate.
|
|
197
|
-
|
|
198
|
-
### Sequencing & activation
|
|
199
|
-
|
|
200
|
-
Task-entry mode is exclusive — one mode, one rule, never combined:
|
|
201
|
-
|
|
202
|
-
| Described timing | Activation Mode token | Entry rule |
|
|
203
|
-
|---|---|---|
|
|
204
|
-
| Ordered run (`then`, `after`, `before`, a dependency) | `sequential` | One `runs-sequentially` row — on EVERY task in the run, including the first |
|
|
205
|
-
| Independent, starts with the stage | `parallel` | `current-stage-entered` |
|
|
206
|
-
| Independent siblings after one predecessor | `parallel-after-predecessor` | `runs-sequentially`; the siblings share the next task set |
|
|
207
|
-
| External callback | `event-triggered` | `wait-for-connector` (or `sla-status-change` for an SLA-started task) |
|
|
208
|
-
| User launches it from the Case App | `adhoc` | One `adhoc` row + `Required: No` |
|
|
209
|
-
| Fan-in, convergence, conditional gate | `fan-in` / `conditional-gate` | `selected-tasks-completed("<tasks>")` |
|
|
210
|
-
|
|
211
|
-
- Structure mirrors the mode in the stage's task sets: a strict chain is consecutive single-task sets; parallel-after-predecessor siblings share one set. Never duplicate `selected-tasks-completed("<previous>")` to express simple order.
|
|
212
|
-
- `selected-tasks-completed` selects only non-`adhoc` tasks in the SAME stage.
|
|
213
|
-
- A task with no entry condition never starts — validate accepts the omission silently.
|
|
214
|
-
- Race (confirmation vs timeout/cancel/withdrawal) → listener + clock armed while the obligation is pending; downstream work gated on the winning fact.
|
|
215
|
-
- Conditional-branch stages (mutually-exclusive tasks, one per outcome, all `Required: No`): add ONE required convergence task whose entry is an OR over every branch — one `selected-tasks-completed("<branch>")` row each — plus a `current-stage-entered` + inverse-guard row for the no-branch path. `required-tasks-completed` then resolves on every path.
|
|
216
|
-
|
|
217
|
-
**Producer rule:** every non-start stage/task entry names its concrete producer before the confirmation — a source stage exit/completion, a task completion, a connector event, a paired `wait-for-user` exit, or a declared SLA reference. A schema-valid rule without a producer is a design defect.
|
|
218
|
-
|
|
219
|
-
**Re-entry (`return-to-origin` loops)** — classify before setting `Run Only Once`:
|
|
220
|
-
|
|
221
|
-
| Loop kind | Signal | Handling |
|
|
222
|
-
|---|---|---|
|
|
223
|
-
| New attempt | corrected, resubmitted, retry, appeal | Producers rerunnable (`Run Only Once: No`); reset or attempt-scope the live routing variables |
|
|
224
|
-
| Re-evaluate an existing fact | the lane changes a fact and the origin re-reads it | `Run Only Once: Yes` on preserved producers; state which rule re-reads the fact |
|
|
225
|
-
| Optional repeat | the user may repeat work nothing depends on | `adhoc`, not required |
|
|
226
|
-
|
|
227
|
-
### XOR terminal stages
|
|
228
|
-
|
|
229
|
-
Mutually-exclusive happy-path terminals ("Funding on approve, Adverse Action Notice on decline"): case completion accepts only `required-stages-completed`, so the XOR lives at stage entry. Two sanctioned patterns — when detected at sketch time (multiple terminal candidates plus an earlier branching decision), surface both in one question before drafting rows:
|
|
230
|
-
|
|
231
|
-
**Gated entry + required terminals (default — works on every tenant):**
|
|
232
|
-
|
|
233
|
-
1. Both terminal stages `Required for case completion: Yes`.
|
|
234
|
-
2. Each terminal's entry: `selected-stage-completed("<DecisionStage>")` + its lane guard `IF` (`=js:vars.decision === "Approve"` / `!== "Approve"` — exact inverses).
|
|
235
|
-
3. Each terminal completes normally: `required-tasks-completed`, `Marks Stage Complete: Yes`.
|
|
236
|
-
4. Runtime stage-skip: entry `IF` is evaluated at activation; a terminal whose `IF` is false auto-completes with status `Skipped` and still counts toward `required-stages-completed` closure.
|
|
237
|
-
5. Case exit: ONE row, `required-stages-completed`, `Marks Case Complete: Yes`, `IF: —`.
|
|
238
|
-
|
|
239
|
-
**Connector-event close** (only when both terminals genuinely emit a shared case-done event): terminals `Required: No`; entries as above; each terminal's last task emits the shared event; the case exit is ONE `wait-for-connector` row keyed on it.
|
|
240
|
-
|
|
241
|
-
---
|
|
242
|
-
|
|
243
|
-
## Layer 3 — Data: variables & expressions
|
|
244
|
-
|
|
245
|
-
### Grammar — pick the shape from the need
|
|
246
|
-
|
|
247
|
-
Every data pattern is one row of this table. Mechanism sections below state the rules each cell obeys.
|
|
248
|
-
|
|
249
|
-
| What the case needs | Category | Declared in | Operator |
|
|
250
|
-
|---|---|---|---|
|
|
251
|
-
| Caller supplies a value at start | `In` | Case Variables row | — |
|
|
252
|
-
| Same, but the start is an event/timer (no caller) | `In` + `Default` | Case Variables row | — |
|
|
253
|
-
| A value returned to the caller | `Out` | Case Variables row + the producer's Outputs | `->` (or `Default` as fallback) |
|
|
254
|
-
| A trigger payload field readable as `=vars.X` | `Variable` + `sourceTriggers` + `sourceFields` | Case Variables row | — |
|
|
255
|
-
| The same slot filled by several triggers | `Variable`, CSV `sourceTriggers`, keyed `sourceFields` | Case Variables row | — |
|
|
256
|
-
| A task's response field captured into case state | any | the producer's Outputs row | `->` |
|
|
257
|
-
| A literal or computed value written to an existing variable | any | the producer's Outputs row | `=` |
|
|
258
|
-
| One consumer reading one upstream output | **no row** | reference the producer directly | — |
|
|
259
|
-
| A sub-field of structured state | `jsonSchema` (+ `body`) | Case Variables row, read `=vars.X.sub` | — |
|
|
260
|
-
| A document the caller pre-uploads | `In`, `Type: file` | Case Variables row | — |
|
|
261
|
-
| A document a connector fetches mid-case | `Variable`, `Type: file` | the producer's Outputs row | `->` |
|
|
262
|
-
| A stored document sent back out | — | task Inputs, whole-record bind | — |
|
|
263
|
-
| Only the link or document id, not the bytes | `string` (URL) / `jsonSchema` (metadata) | Case Variables row | — |
|
|
264
|
-
|
|
265
|
-
**Files.** A connector activity whose spec returns `type: "file"` extracts with `response -> <fileVar>`; the runtime writes the JobAttachment record `{ID, FullName, MimeType, Metadata}`, and downstream reads `=vars.<fileVar>` or a sub-field (`.FullName`). A file **input** binds the whole record — `=vars.<fileVar>`; a sub-field (`.ID`), a path, or a URL is rejected by the picker. A file `In` argument carries the caller pre-upload obligation.
|
|
266
|
-
|
|
267
|
-
**No `InOut`.** Declare separate `In` and `Out` names; copy with `<outVar> = =vars.<inVar>` on the first task, or produce the Out via `->`.
|
|
268
|
-
|
|
269
|
-
### Reference producers directly
|
|
270
|
-
|
|
271
|
-
A downstream input or condition that consumes one upstream task's output references the output directly — the emitting task's output entry is its own declaration, and no Case Variables row exists:
|
|
272
|
-
|
|
273
|
-
| Where the value is used | SDD spelling |
|
|
274
|
-
|---|---|
|
|
275
|
-
| The output IS the whole input value | `<- "Stage"."Task".out` — the bare `"<Stage>"."<Task>".<outputName>` cell form is equivalent |
|
|
276
|
-
| One term inside a larger `=js:` expression | `vars.$xref('Stage','Task','out')` |
|
|
277
|
-
|
|
278
|
-
The build resolves both spellings to the output's reference id. Direct references close lineage by ordering alone (producer task before consumer).
|
|
279
|
-
|
|
280
|
-
### When to declare a Case Variables row
|
|
281
|
-
|
|
282
|
-
Declare a row ONLY when one of these holds:
|
|
283
|
-
|
|
284
|
-
1. `In` / `Out` argument (the case boundary).
|
|
285
|
-
2. Trigger-payload extraction (below — the only way a trigger field becomes referenceable).
|
|
286
|
-
3. Case-level state read by a condition (`IF`) or by ≥ 2 consumers.
|
|
287
|
-
4. The value needs a rename or a custom `Default` / `Type` / `Description`.
|
|
288
|
-
|
|
289
|
-
A row that relays one task's output to one consumer is the relay anti-pattern — flagged as `rev_relay_var` (§ Layer closure, advisory lens). Declaring a row does not make the value readable earlier — see next.
|
|
290
|
-
|
|
291
|
-
### Gate on the producer, never on the variable it writes
|
|
292
|
-
|
|
293
|
-
A rule is evaluated **before** the extract of the task that triggered it. So a gate keyed on a task's completion that reads the case variable that task's Outputs row feeds sees the value from the previous pass — `null` on the first one. The branch silently never fires, the stage stalls, and nothing errors.
|
|
294
|
-
|
|
295
|
-
| Gate | `IF` reads | At gate time |
|
|
296
|
-
|---|---|---|
|
|
297
|
-
| `selected-tasks-completed("Decide")` + `=js:vars.decision === "reject"`, where `Decide` declares `Action -> decision` | the case variable `Decide` writes | ✗ stale / `null` |
|
|
298
|
-
| `selected-tasks-completed("Decide")` + `=js:vars.action === "reject"`, where `action` is `Decide`'s own output | the producing output | ✓ populated |
|
|
299
|
-
|
|
300
|
-
**Rule:** when a condition's WHEN names a task, its `IF` MUST read that task's own output. Keep the `->` extract whenever the value must persist (Case App, audit, a later stage reads it) — the extract is not what the gate reads. Applies wherever the WHEN names the producer: stage-exit `selected-tasks-completed`, task-entry `selected-tasks-completed`, and the `selected-stage-exited` lane entry paired with a diverting exit — that entry repeats the origin exit's guard, so it repeats the producer reference too. Guard pairs stay exact inverses of each other.
|
|
301
|
-
|
|
302
|
-
### Trigger payloads
|
|
303
|
-
|
|
304
|
-
Validation never reads trigger-node outputs. A trigger payload field is referenceable as `=vars.<name>` ONLY through a Case Variables `Variable` row carrying `sourceTriggers` (the trigger's T-number) + `sourceFields` (the payload path).
|
|
305
|
-
|
|
306
|
-
### Category semantics
|
|
307
|
-
|
|
308
|
-
| Category | Meaning | sourceTriggers | sourceFields | Closure |
|
|
309
|
-
|---|---|---|---|---|
|
|
310
|
-
| `In` | Caller-supplied at start; `Default`-initialized for event/timer triggers (no caller) | blank = primary trigger; a single `T<N>` selects another — never CSV | always empty (an In-arg selects a trigger, extracts nothing) | closed at case start |
|
|
311
|
-
| `Out` | Returned to the caller | forbidden | empty | needs a producer Outputs row or a `Default` |
|
|
312
|
-
| `Variable` | Internal state | single `T<N>`, or CSV for multi-trigger | bare path for one trigger; keyed `T<N>: <path>; T<M>: <path>` for CSV — one entry per listed T-number | producer or `Default` |
|
|
313
|
-
|
|
314
|
-
**Types:** `string`, `integer`, `float`, `double`, `boolean`, `date`, `datetime`, `jsonSchema`, `file`. `json` is not a type. Use `jsonSchema` (with `body`) when downstream picks sub-fields; `string` for opaque JSON blobs nothing dereferences. `file` is a JobAttachment record (§ Grammar — Files); the lane's confirmation surfaces the caller pre-upload obligation.
|
|
315
|
-
|
|
316
|
-
**Config-as-In:** runtime business rules (priority bands, thresholds, taxonomies) ride ONE `In` variable — `string` with a JSON `Default` for opaque rule-sets; `jsonSchema` + `body` when the picker must navigate sub-fields.
|
|
317
|
-
|
|
318
|
-
### Outputs rows
|
|
319
|
-
|
|
320
|
-
| Operator | Cell form | `Field` cell | Purpose |
|
|
321
|
-
|---|---|---|---|
|
|
322
|
-
| Extract | `-> caseVar` | Non-empty runtime path (`response.status`, `Action`, `Error.code`) — emitted as the source verbatim | Capture a response field into a declared variable |
|
|
323
|
-
| Set / compute / copy | `caseVar = <expr>` | `—` | Assign a literal, `=js:(...)`, or `=vars.X.Y` copy at task completion |
|
|
324
|
-
|
|
325
|
-
1. The target variable is already declared per the rules above; a `->` to a new name is valid only as the task's own self-declaring output.
|
|
326
|
-
2. One row per target per task; never mix `->` and `=` on the same target in one task.
|
|
327
|
-
3. Self-binding no-ops (`x = =vars.x`) are forbidden — they mask a missing producer. Computed self-references (`x = =js:(vars.x + 1)`) are fine.
|
|
328
|
-
4. Never alias a produced datum into an unrelated existing variable to close lineage — declare a dedicated row or confirm the reuse.
|
|
329
|
-
|
|
330
|
-
### Lineage closure
|
|
331
|
-
|
|
332
|
-
Every consumer of `vars.X` needs a producer that fires earlier — stage order first, then task order within the stage: a trigger extraction, a task Outputs row, an action button's `Maps To`, `Category: In`, or a non-empty `Default`. Checked at [§ Layer closure](#layer-closure--the-design-checklist) and by the validator.
|
|
333
|
-
|
|
334
|
-
### Expressions
|
|
335
|
-
|
|
336
|
-
- `=js:`-prefixed JavaScript. Namespaces available to `=js:` evaluation: `vars`, `response`, `bindings`, `iterator`, `metadata`. Assignment operators are forbidden in every case expression.
|
|
337
|
-
- A rule's condition expression gates CASE STATE only (`vars.*`, `metadata.*`) — there is no `event` namespace. In-rule extract-then-gate does not work at runtime (the gate evaluates before the extract writes): extract `response.field -> caseVar` on the connector rule and gate a DOWNSTREAM condition instead.
|
|
338
|
-
- Use strict equality (`===` / `!==`); write mutually exclusive branch guards as exact inverses so completion and divert rows cannot dual-fire.
|
|
339
|
-
- Thresholded policy ("Credit Analyst only over $5M") lands in an executable cell — owner/recipient, WHEN/IF, or a task input — with the numeral written out (`5000000`), actor and attribute on one line. Prose or a persona-table mention alone is a render failure.
|
|
340
|
-
|
|
341
|
-
### External names — schema fields are lookup keys
|
|
342
|
-
|
|
343
|
-
A schema field name is an **external lookup key**, not a label: the runtime matches it byte-for-byte, so `request_body`, `requestBody`, and `RequestBody` are three different fields and only one of them exists. This covers every place a design names a field it did not invent — `Input`/`Output Schema` cells, `response.<field>`, `=vars.<id>.<sub>`, `=trigger.<field>`, `<- "Stage"."Task".<out>`, and the Section 4 Output Fields list.
|
|
344
|
-
|
|
345
|
-
- **Carry the spelling, never derive it.** Copy the name from the user, the source document, or (at build time) the resource's own schema. Never re-case it, never convert between conventions, never make it match the case name or a neighbouring variable.
|
|
346
|
-
- **Never read names off a `--output json` envelope.** `case spec` and `registry search` PascalCase object **keys** recursively (`request_body` → `RequestBody`, `poText` → `PoText`); the true names are the **values** under `Outputs.ResponseFields[].Name`. Wiring against the keys binds to fields the resource does not have and fails only after build — Studio Web reports *"RequestBody not found, did you mean request_body"*. Canonical statement of the trap, build side: the `uipath-maestro-case` skill, its registry-discovery reference, § "Do NOT read I/O field names from `Resource.{Inputs,Outputs}`".
|
|
347
|
-
- **Unsourced casing is `<UNRESOLVED>`, not a guess.** Schema discovery is build work (§ lane guide § Tenant grounding) — so when a design needs a field whose exact spelling nothing in the conversation supplies, render the field as `<UNRESOLVED>` and pair it with a review item. A plausible-looking guess is the one outcome that cannot be caught downstream.
|
|
348
|
-
|
|
349
|
-
### Binding-cell forms (task Inputs)
|
|
350
|
-
|
|
351
|
-
| Form | Meaning |
|
|
352
|
-
|---|---|
|
|
353
|
-
| `<literal>` | Plain string / number / boolean |
|
|
354
|
-
| `=vars.<id>` / `=vars.<id>.<sub>` | Declared variable or upstream output; dot-path into structured values |
|
|
355
|
-
| `<- "Stage"."Task".out` / `vars.$xref('Stage','Task','out')` | Direct output references (above) |
|
|
356
|
-
| `=bindings.<id>` | Registered resource (app, process, connection) |
|
|
357
|
-
| `=metadata.<key>` | Case metadata |
|
|
358
|
-
| `=metadata.ExternalId` | The platform-minted case identity — the canonical `caseId` binding; NOT a task output, never a `->` extraction |
|
|
359
|
-
| `=trigger.<field>` | Trigger payload field |
|
|
360
|
-
| `=js:<expr>` | Inline JavaScript (required when operators are involved) |
|
|
361
|
-
| `=jsonString:<json>` | JSON-as-string — connector `Operation Configuration` carry-through only |
|
|
362
|
-
| `=datafabric.<path>` | Data Fabric reference |
|
|
363
|
-
| `=orchestrator.JobAttachments` | File slot |
|
|
364
|
-
| `=response` / `=result` / `=Error` | Conventional response handles |
|
|
365
|
-
|
|
366
|
-
Bare field-name lists (`**Inputs:** a, b, c`) are forbidden — use the table with one form per cell.
|
|
367
|
-
|
|
368
|
-
---
|
|
369
|
-
|
|
370
|
-
## Layer 4 — Time: SLAs & escalations
|
|
371
|
-
|
|
372
|
-
> **Canonical + twin.** This layer owns the case SLA response model. The build skill `uipath-maestro-case` carries an operational twin of it (its SLA response-shapes reference), because skills here must work with siblings absent and a brownfield edit runs with no SDD and no planner in the loop. Twin, not a second source of truth: a change to the model lands here first, then there, in the same PR — parity is pinned by `tests/tasks/uipath-planner/_shared/test_case_twin_parity.py`.
|
|
373
|
-
|
|
374
|
-
### Where SLAs live
|
|
375
|
-
|
|
376
|
-
| Surface | Location | Notes |
|
|
377
|
-
|---|---|---|
|
|
378
|
-
| Case | root SLA rules | |
|
|
379
|
-
| Stage | stage SLA rules | Secondary stages included |
|
|
380
|
-
| `action` task | The task's own timer/SLA fields | NOT an SLA-rules entry. Add case behavior only when the missed task must change the case graph |
|
|
381
|
-
|
|
382
|
-
No SLA cells on any other task type.
|
|
383
|
-
|
|
384
|
-
### SLA rule entries
|
|
385
|
-
|
|
386
|
-
Conditional overrides first (priority order), then a trailing default entry with expression `=js:true`; the first truthy expression wins.
|
|
387
|
-
|
|
388
|
-
1. Every entry requires an id AND a non-empty target-unique display name without `:` — validate rejects a missing name (`SLA name is missing`) and a missing id (schema error).
|
|
389
|
-
2. `count`/`unit` may be omitted only as a pair, on a bare escalation-only entry. Units: `min | h | d | w | m`; minute counts bounded 15–1000.
|
|
390
|
-
3. Non-default entries require a non-empty expression.
|
|
391
|
-
4. Escalations: id + non-empty element-unique display name + ≥ 1 recipient (scope `User` / `UserGroup`); an at-risk percentage is required exactly when the trigger type is `at-risk`.
|
|
392
|
-
|
|
393
|
-
### Breached vs at-risk — how status is selected
|
|
394
|
-
|
|
395
|
-
| Status | The `sla-status-change` rule references | Requires |
|
|
396
|
-
|---|---|---|
|
|
397
|
-
| Breached | The SLA alone — an absent escalation reference IS the persisted breached shape | Nothing else. Never "complete" a breach rule with an escalation: that converts it to at-risk |
|
|
398
|
-
| At-risk | The SLA + one concrete at-risk escalation declared on that same SLA | That escalation must exist on that SLA |
|
|
399
|
-
|
|
400
|
-
Never the designer's `any` escalation sentinel. Borrowed and dangling references fail validate: `The escalation referenced by rule … no longer exists` / `The SLA referenced by rule … no longer exists`.
|
|
401
|
-
|
|
402
|
-
### Choosing the response
|
|
403
|
-
|
|
404
|
-
Pick from the source's words — WHERE the work lives, never whether it interrupts. A named task never justifies a new stage.
|
|
405
|
-
|
|
406
|
-
| Response | Source says | What you author | Interrupting cell |
|
|
407
|
-
|---|---|---|---|
|
|
408
|
-
| `notify-only` | notify / alert / page someone, nothing more | An escalation on the target's SLA rules — no stage, task, or condition | `n/a` |
|
|
409
|
-
| `start-task` | Follow-up work inside the SAME breached stage ("as part of the review", a named task for a manager or peer) | One task in the breached stage carrying `sla-status-change` as its OWN task-entry row, against that stage's (or the case's) SLA | `—` — a task entry interrupts nothing; never `Yes`/`No` |
|
|
410
|
-
| `enter-stage` | A separate lane owns it ("hand it to", "escalate into <Lane>") | A separate stage carrying the `sla-status-change` entry row | `Yes` when the source says **interrupt**, **global interrupt**, **take over**, **stop** or **pause** the work, or when the lane must be cleared **before the case or stage can close**; `No` ONLY for parallel oversight that leaves the work running |
|
|
411
|
-
| `exit-stage` | The breached stage should end or route away | A stage-exit row | Per exit semantics |
|
|
412
|
-
| `exit-case` | The case should close, cancel, or reach an alternate terminal | A case-exit row | Per exit semantics |
|
|
413
|
-
|
|
414
|
-
Never author `start-task` as a stage-entry row on the breached stage: it validates, but stage re-entry re-runs every task whose `Run Only Once` is `No` — a breach meant to add one manager check silently re-runs the whole stage.
|
|
415
|
-
|
|
416
|
-
Read the Interrupting cell off the SOURCE's words, exactly like the Response cell — it is not a judgement call you make after choosing the lane. A source that says "globally interrupt into <Lane>" has already said `Yes`; treating it as parallel oversight contradicts the sentence you are modelling. A case-scope breach that must be resolved before the case can close is a takeover, never oversight.
|
|
417
|
-
|
|
418
|
-
### Defaults when the source is silent
|
|
419
|
-
|
|
420
|
-
- SLA exists only where the source mentions timing, read literally ("about a day" → 1 day). No timing → `—`, no SLA rule. Scope, status, and response are chosen separately (§ Choosing the response).
|
|
421
|
-
- Every (scope, SLA) authors BOTH statuses, always. The rule is per status, not per SLA: a stated
|
|
422
|
-
response for one status never removes the other status's row, and a status the source is silent on is
|
|
423
|
-
`notify-only` with Target and Interrupting `—` — an omitted row is an unauthored response, not a way to
|
|
424
|
-
write "nothing happens". Never invent a stage, task, or routing change.
|
|
425
|
-
- At-risk threshold: SLA ≤ 3 days → 75%; 3–10 days → 70%; > 10 days → 80%.
|
|
426
|
-
- Recipients: at-risk → the owner persona's user group; breached → the leadership tier (Compliance for regulation-driven cases). Record substituted defaults with provenance.
|
|
427
|
-
|
|
428
|
-
### SLA reference legality
|
|
429
|
-
|
|
430
|
-
| Shape | Result |
|
|
431
|
-
|---|---|
|
|
432
|
-
| Breach entry on a separate stage, either interrupting value | valid |
|
|
433
|
-
| Breach / at-risk on a task's entry conditions (stage or case SLA) | valid |
|
|
434
|
-
| At-risk with a same-SLA escalation | valid |
|
|
435
|
-
| At-risk borrowing another SLA's escalation | invalid |
|
|
436
|
-
| `any` escalation reference | invalid |
|
|
437
|
-
| Dangling SLA reference | invalid |
|
|
438
|
-
| Task with empty or absent entry conditions | valid — and the task never starts |
|
|
439
|
-
|
|
440
|
-
---
|
|
441
|
-
|
|
442
|
-
### Naming rules
|
|
443
|
-
|
|
444
|
-
<!-- named by case-sdd-conformance-checklist.md — do not rename this heading or reshape this table/fence; the checklist sends authors here by heading name -->
|
|
445
|
-
|
|
446
|
-
Safe display characters for stage labels, task display names, and condition/SLA/escalation titles:
|
|
447
|
-
|
|
448
|
-
```
|
|
449
|
-
^[A-Za-z0-9 _-]+$
|
|
450
|
-
```
|
|
451
|
-
|
|
452
|
-
**`:` is the hard ban** — case-execution events are colon-delimited, so a colon in a name breaks routing. It is the one character the conformance checklist (item 11) gates on, in every mode, including names read from a draft: surface and ask, never silently keep or repair.
|
|
453
|
-
|
|
454
|
-
Everything else in that set is a **minting preference, not a platform limit** — the auditor reports it as an advisory that does not gate. Apply it to names YOU mint: replace disallowed runs with one space, collapse, trim; on an empty result or a collision add a safe qualifier and disclose. **A name the user, the source document, or a draft supplied is kept verbatim, punctuation included** (`Credit & Document Verification` stays). Rewriting one to fit the charset is the domain-fidelity defect the lane's authoring policy forbids, and it costs repair rounds for a display preference.
|
|
455
|
-
|
|
456
|
-
**Default:** case name = PascalCase from the domain noun; case ID prefix = a 2–4 letter mechanical derivation of it.
|
|
457
|
-
|
|
458
|
-
| Name | Unique across |
|
|
459
|
-
|---|---|
|
|
460
|
-
| Task display name | The whole case — every stage, one pool |
|
|
461
|
-
| Stage label | All node labels; never the reserved Case Manager stage label |
|
|
462
|
-
| SLA rule title | Its target (root or that stage) |
|
|
463
|
-
| Escalation title | All SLAs on the element |
|
|
464
|
-
|
|
465
|
-
Comparison exact — case-sensitive, untrimmed. Never normalize external lookup names (Action App titles, process/connector names, and schema field names — all matching keys; § External names); keep a separate safe display name. Never silently clamp a numeric violation (e.g. out-of-range SLA duration) — surface and ask.
|
|
466
|
-
|
|
467
|
-
---
|
|
468
|
-
|
|
469
|
-
## Layer closure — the design checklist
|
|
470
|
-
|
|
471
|
-
ONE checklist. Settle every item by assumption during Sketch; re-walk at Confirm — and when the request is save-a-draft-and-stop there IS no Confirm, so re-walk it immediately BEFORE the write instead; a draft skips the confirmation, never the closure walk (fix failures silently — authoring defects, not user decisions; unfixable → Review Flags). Mechanical shape/contract checks are NOT here — [case-sdd-conformance-checklist.md](case-sdd-conformance-checklist.md) owns them; walk it against the written file.
|
|
472
|
-
|
|
473
|
-
**Blocking — the design is unbuildable or unreviewable until fixed:**
|
|
474
|
-
|
|
475
|
-
1. **Other-path trigger source** — every modeled path's entry shape matches its trigger source (§ Secondary-lane entry shapes); interrupting flags set on the stage AND on every entry row; terminal `exit-only` vs returning `return-to-origin` chosen; a warning-only escalation stays a notification; an SLA response needing case work carries ONE `sla-status-change` entry with declared target + titles; never duplicate a global-event entry or exit across primary stages.
|
|
476
|
-
2. **Reachability walk** — every stage reachable from a trigger or SLA source: walk entries forward, and walk every conditional entry's FALSE branch too. A stage that does not enter never completes, so a downstream stage keying solely off its completion is unreachable on that branch — when a rule SKIPS a stage and the case continues, the bypass is an explicit extra entry row on the downstream stage (its own condition, negated); when the rule ENDS the case, that branch needs a terminal lane. Never write that a skipped stage "auto-completes" or "counts as complete" — that is an assertion, not a route, and the path stays dead. Every primary stage's completion consumed downstream, referenced by another entry, or feeding a lane; ≥ 1 primary stage `Required: Yes`; `adhoc` never a stage entry. Decision-reachable lanes and duplicate-entry ambiguity per § Secondary-lane entry shapes.
|
|
477
|
-
3. **Entry producer** — every non-start entry names its concrete producer (source stage/task, connector event, paired `wait-for-user` exit, declared SLA reference); at-risk rows name the escalation, breach rows the SLA alone.
|
|
478
|
-
4. **Decision-routing closure** — every decision outcome routes somewhere: no dead-end status values; an outcome targeting a lane keys that lane's entry; every routing button's variable+value is consumed downstream or a declared terminal; a fully-orphaned decision variable on a decision task is blocking.
|
|
479
|
-
5. **Gate reads the producer** — no condition whose WHEN names a task reads a case variable that task writes (§ Gate on the producer).
|
|
480
|
-
6. **Data closure** — every configure/decide output lands in a variable or direct reference; every send/connector/agent required input maps to variables/literals/upstream outputs as far as knowable without schemas (rest resolves at build); thresholded policy in executable cells (§ Expressions).
|
|
481
|
-
7. **Task-surface classification** — human-performed required work `action`, optional user-launched `adhoc`; no compliance trigger phrase paired with a non-`action` type without explicit user reconciliation (§ Task-type override priority).
|
|
482
|
-
8. **Required-task presence** — a `required-tasks-completed` completion over a stage with zero `Required: Yes` tasks fails validate: `Stage exit rule '<name>' has no task(s) marked as required`; offer marking the terminal task required.
|
|
483
|
-
9. **Resources** — intended names concrete everywhere (`Resolved Resource`, Action App title, `Child Case` — never `<UNRESOLVED>`); identities per the lane's tenant grounding, unresolved only with a paired high review item; when a live contract is in memory: required inputs bound, extract fields exist verbatim, declared action-app fields ⊆ app schema.
|
|
484
|
-
10. **Durable rationale** — every stage (kind + routing), task (type + activation, incl. why sequential/parallel/shared-set), and configured SLA (thresholds, recipients, response) carries Design Rationale; provenance on every non-user-stated value ([lane § Authoring policy](case-design-lane-guide.md#authoring-policy)).
|
|
485
|
-
11. **Alt dispositions & obligations** — ≥ 1 secondary stage ⟹ non-completing case-exit rows exist (or an open high item); `In` + `file` row ⟹ the Caller-obligation block; SLA Response Map closes both ways with agreeing Interrupting cells (template § SLA Response Map); re-entry loops classified (§ Sequencing & activation).
|
|
486
|
-
12. **Domain fidelity** — verbatim-captured entities render exactly; drift → re-edit with the phrase pre-filled.
|
|
487
|
-
|
|
488
|
-
**Advisory — architect's lens** (emit medium review items; HIGH variants gate like any high item):
|
|
489
|
-
|
|
490
|
-
| Check | Trigger | Review item |
|
|
491
|
-
|---|---|---|
|
|
492
|
-
| Single-recipient bottleneck | `action` recipient is one `User:`/`Email:` AND the stage runs on every case AND no documented volume limit | `rev_bottleneck_<task>`: confirm volume or use UserGroup/Role |
|
|
493
|
-
| No escalation on SLA | Stage SLA set, escalation absent | `rev_escalation_<stage>`: no one is paged on breach |
|
|
494
|
-
| Escalation loops to the breacher | Escalation recipient = the stage's primary recipient | `rev_escalation_loop_<stage>`: pick a tier-up recipient |
|
|
495
|
-
| Sync child case in the critical path | `Wait for Completion: Yes` + parent SLA + no timeout cover | `rev_childcase_<task>`: consider async + completion event, or an exception path |
|
|
496
|
-
| All-human stage | 100% `action` tasks, > 2 tasks | `rev_human_only_<stage>`: consider agent/process pre-screening |
|
|
497
|
-
| No happy path on the first stage | Only `No` exits, no `required-tasks-completed` completion | `rev_no_happy_path_<stage>` |
|
|
498
|
-
| Decision outcome unread | Decision task writes a variable no downstream rule reads | `rev_orphan_decision_<task>`: consume it or drop decision status |
|
|
499
|
-
| Connector failure uncovered | Connector task in a primary stage, no failure lane (HIGH when ≥ 2 connector tasks share a critical path, zero cover) | `rev_no_failure_path_<task>` |
|
|
500
|
-
| Substitute app (HIGH) | One Action App on ≥ 2 tasks WITHOUT a distinct `actionType` each, or declared fields outside the app schema (code-switched reuse exempt) | `rev_substitute_app_<app>`: code-switch or deploy task-specific apps |
|
|
501
|
-
| Parallel bottleneck fan-in | ≥ 2 bottleneck stages fan into one downstream stage | `rev_multi_bottleneck_<stages>` |
|
|
502
|
-
| Relay variable | A §1.5 `Variable` with one producing task output and one consuming binding (§ When to declare) | `rev_relay_var_<name>`: reference the output directly, drop the row |
|
|
503
|
-
| Aliased output | An Outputs `->` row whose `Field` leaf has no matching §1.5 row and lands in a differently-named variable | `rev_aliased_output_<task>`: declare a dedicated variable or confirm the reuse |
|