Skip to content

Commit

Permalink
Merge 2fed1b2 into f116528
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Oct 21, 2021
2 parents f116528 + 2fed1b2 commit e50cf1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion documentation/plain_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ The used entity's attributes must be cast to `float` in case of being numeric (l
must be cast to `String`. Nested cast to string and to float is something we are analyzing, and could be unnecessary in
a future version. Use it by now. All the attributes in the notification from Orion are available in the event object,
**ev**, like _ev.BlodPressure?_ and _ev.id?_. A question mark is _necessary_ for EPL referring ‘dynamic’ values.
Metadata is also available as explained in [Metadata and object values](#metadata-and-object-values).
Metadata is also available as explained in [Metadata and object values](#metadata-and-object-values).
Moreover under _ev.stripped are in JSON format all the notification fields (like id, type, attrs, etc.), so you can access to it in an EPL text using

```sql
cast(stripped?, java.util.Map).get("id")
```

Please, be careful with using non-ASCII characters in the EPL syntax. It will provoke an error. You can find information
on how to scape characters at
Expand Down

0 comments on commit e50cf1b

Please sign in to comment.