Skip to content

Commit 82237fe

Browse files
committed
[Fix_#1071] Incorporating comments
Signed-off-by: Francisco Javier Tirado Sarti <[email protected]>
1 parent 04c0d90 commit 82237fe

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

dsl-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,9 +1591,9 @@ Represents the configuration of an event consumption strategy.
15911591
| Property | Type | Required | Description |
15921592
|----------|:----:|:--------:|-------------|
15931593
| all | [`eventFilter[]`](#event-filter) | `no` | Configures the workflow to wait for all defined events before resuming execution.<br>*Required if `any` and `one` have not been set.* |
1594-
| any | [`eventFilter[]`](#event-filter) | `no` | Configures the workflow to wait for any of the defined events before resuming execution.<br>*Required if `all` and `one` have not been set.*<br>*If empty, listens to all incoming events, and requires `until` to be set.* |
1594+
| any | [`eventFilter[]`](#event-filter) | `no` | Configures the workflow to wait for any of the defined events before resuming execution.<br>*Required if `all` and `one` have not been set.*<br>*If empty, listens to all incoming events* |
15951595
| one | [`eventFilter`](#event-filter) | `no` | Configures the workflow to wait for the defined event before resuming execution.<br>*Required if `all` and `any` have not been set.* |
1596-
| until | `string`<br>[`eventConsumptionStrategy`](#event-consumption-strategy) | `no` | Configures the [runtime expression](dsl.md#runtime-expressions) condition or the events that must be consumed to stop listening.<br>*Only applies if `any` has been set, otherwise ignored.* |
1596+
| until | `string`<br>[`eventConsumptionStrategy`](#event-consumption-strategy) | `no` | Configures the [runtime expression](dsl.md#runtime-expressions) condition or the events that must be consumed to stop listening.<br>*Only applies if `any` has been set, otherwise ignored. If not present, once any event is received, it proceeds to the next task* |
15971597

15981598
### Event Properties
15991599

examples/listen-to-any-filter.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
document:
2+
dsl: '1.0.0-alpha5'
3+
namespace: test
4+
name: listen-to-any-filter
5+
version: '0.1.0'
6+
do:
7+
- callDoctor:
8+
listen:
9+
to:
10+
any:
11+
- with:
12+
type: com.fake-hospital.vitals.measurements.temperature
13+
data: ${ .temperature > 38 }
14+
- with:
15+
type: com.fake-hospital.vitals.measurements.bpm
16+
data: ${ .bpm < 60 or .bpm > 100 }

examples/listen-to-any.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
document:
2-
dsl: '1.0.0-alpha5'
2+
dsl: '1.0.0-alpha1'
33
namespace: test
44
name: listen-to-any
55
version: '0.1.0'
66
do:
77
- callDoctor:
88
listen:
99
to:
10-
any:
11-
- with:
12-
type: com.fake-hospital.vitals.measurements.temperature
13-
data: ${ .temperature > 38 }
14-
- with:
15-
type: com.fake-hospital.vitals.measurements.bpm
16-
data: ${ .bpm < 60 or .bpm > 100 }
10+
any: []

0 commit comments

Comments
 (0)