document:
  dsl: '1.0.0'
  namespace: test
  name: listen-to-any-filter
  version: '0.1.0'
do:
  - callDoctor:
      listen:
        to:
          any:
            - with:
                type: com.fake-hospital.vitals.measurements.temperature
                data: "${ .temperature > 38 }"
            - with:
                type: com.fake-hospital.vitals.measurements.bpm
                data: "${ .bpm < 60 or .bpm > 100 }"
      foreach:
        item: event
        do:
          - isSick:
              set:
                temperature: "${$event.temperature}"
                isSick: true
