The earlier durchstich-gewo-14.yaml used the templated
${{ inputs.x }} syntax and rich input declarations
(type / required / description). chain 0.16 expects the
simpler $inputs.x form and flat 'inputs: { name: type }'
maps — see flows/hello.yaml in fai/chain. Rewritten to match.
Adds two siblings:
- test-cohort.yaml: trivial stats.cohort_size-only smoke
test. Confirms a Recl∆Im module loads, instantiates against
the chain:platform/invoke@1.0.0 ABI, and writes a clean
flow.completed event. Useful as the first test you run
when wiring a fresh hub.
- durchstich-from-file.yaml: end-to-end demo without the
http.request permission dance. Takes the source XML as a
bytes input (--input content=@./norm.xml), runs through
text.akoma_normalize, stats.cohort_size and the
system.approval gate, and writes the norm + cohort bag to
the audit log. First end-to-end Recl∆Im flow that survives
a hub restart with audit-trail intact.
Verified locally: chain run flows/test-cohort.yaml → flow.completed
in 5 ms; chain run flows/durchstich-from-file.yaml + approve →
flow.completed in 6 s, output bag carries normalized GewO §14
with paragraphs + source_sha256.
Signed-off-by: flemming-it <sf@flemming.it>
16 lines
300 B
YAML
16 lines
300 B
YAML
# Minimal-Test: nur stats.cohort_size, ohne externe Calls.
|
|
# Beweist, dass meine Module mit dem Hub-ABI kompatibel sind.
|
|
|
|
name: test-cohort
|
|
|
|
inputs:
|
|
cohort_id: text
|
|
|
|
steps:
|
|
- id: cohort
|
|
use: stats.cohort_size@^0
|
|
with:
|
|
cohort_id: $inputs.cohort_id
|
|
|
|
outputs:
|
|
cohort: $cohort.cohort
|