From 40f9185b27cfe73161a7829122668a0d7fe18784 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:04:23 +0100 Subject: [PATCH] Fixing Listen to example I guess there is a typo. Data should be an expression to filter base on the input event data field. However, looking at the schema, I cannot find data in EventProperties (but since there is additionalproperties true there, we can include data) --- dsl-reference.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dsl-reference.md b/dsl-reference.md index a16b68dc..7b76cb2e 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -667,12 +667,10 @@ do: any: - with: type: com.fake-hospital.vitals.measurements.temperature - data: - temperature: ${ .temperature > 38 } + data: ${ .temperature > 38 } - with: type: com.fake-hospital.vitals.measurements.bpm - data: - temperature: ${ .bpm < 60 or .bpm > 100 } + data: ${ .bpm < 60 or .bpm > 100 } ``` #### Raise @@ -2145,4 +2143,4 @@ do: until: '${ ($context.messages | length) == 5 }' for: seconds: 10 -``` \ No newline at end of file +```