Files
osmedeus/test/testdata/workflows/test-event-envelope.yaml
T
j3ssie 777fb7c2bf chore: update ui build artifacts and refactor event trigger input syntax
- Update Next.js build IDs and chunk hashes in workflow upload static files
- Replace deprecated 'input' field syntax with new exports-style variables in event triggers (e.g., 'Target: event_data.value' instead of type/field/name)
- Simplify parameter override syntax in test workflows (remove nested 'default' structure)
2026-01-24 16:24:50 +08:00

44 lines
1.1 KiB
YAML

name: test-event-envelope
kind: module
description: Test workflow that prints EventEnvelope variable
triggers:
- name: on-test-event
on: event
event:
topic: "test.envelope"
enabled: true
params:
- name: target
required: true
steps:
- name: echo-envelope
type: bash
commands:
- 'echo "Full envelope: {{EventEnvelope}}"'
- 'echo "Topic: {{EventTopic}}"'
- 'echo "Source: {{EventSource}}"'
- 'echo "DataType: {{EventDataType}}"'
- 'echo "Timestamp: {{EventTimestamp}}"'
- 'echo "Data: {{EventData}}"'
- name: print-envelope
type: function
functions:
- 'print_green("=== EventEnvelope Test ===")'
- 'log_info("Full envelope: {{EventEnvelope}}")'
- 'log_info("Topic: {{EventTopic}}")'
- 'log_info("Source: {{EventSource}}")'
- 'log_info("DataType: {{EventDataType}}")'
- 'log_info("Timestamp: {{EventTimestamp}}")'
- 'log_info("Data: {{EventData}}")'
- name: save-envelope
type: bash
command: |
echo '{{EventEnvelope}}' > {{Output}}/event-envelope.json
cat {{Output}}/event-envelope.json