Skip to content

Commit e9d90ab

Browse files
author
Tihomir Surdilovic
authored
fixing onevents example (#258)
Signed-off-by: Tihomir Surdilovic <[email protected]>
1 parent 94e9c13 commit e9d90ab

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

specification.md

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,32 +1251,26 @@ Let's look at the following JSON definition of 'onEvents' to show this:
12511251

12521252
```json
12531253
{
1254-
"eventsActions": [
1255-
{
1256-
"eventRefs": [
1257-
"HighBodyTemperature",
1258-
"HighBloodPressure"
1259-
],
1260-
"actions": [
1261-
{
1262-
"functionRef": {
1263-
"refName": "SendTylenolOrder",
1264-
"parameters": {
1265-
"patient": "{{ $.patientId }}"
1266-
}
1267-
}
1268-
},
1269-
{
1270-
"functionRef": {
1271-
"refName": "CallNurse",
1272-
"parameters": {
1273-
"patient": "{{ $.patientId }}"
1274-
}
1275-
}
1276-
}
1277-
]
1278-
}
1279-
]
1254+
"onEvents": [{
1255+
"eventRefs": ["HighBodyTemperature", "HighBloodPressure"],
1256+
"actions": [{
1257+
"functionRef": {
1258+
"refName": "SendTylenolOrder",
1259+
"parameters": {
1260+
"patient": "{{ $.patientId }}"
1261+
}
1262+
}
1263+
},
1264+
{
1265+
"functionRef": {
1266+
"refName": "CallNurse",
1267+
"parameters": {
1268+
"patient": "{{ $.patientId }}"
1269+
}
1270+
}
1271+
}
1272+
]
1273+
}]
12801274
}
12811275
```
12821276

0 commit comments

Comments
 (0)