Skip to content

Commit

Permalink
Merge pull request #4571 from telefonicaid/task/add-jexl-attr-name-li…
Browse files Browse the repository at this point in the history
…mitation

[Doc] Add know JEXL limitation based on attributes names
  • Loading branch information
fgalan authored Jun 5, 2024
2 parents 7dc7f88 + c10e83c commit 28c9226
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/manuals/orion-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3097,6 +3097,7 @@ As failsafe behaviour, evaluation returns `null` in the following cases:

- The unitary minus operator is not working properly, e.g. the following expression doesn't work (it failsafes to `null`): `A||-1`. However, the following alternatives are working: `A||0-1` and `A||'-1'|parseInt)`
- Negation operator `!` (supported in original JavaScript JEXL) is not supported
- Attribute names and entity identifiers using JEXL operators (eg. `:` or `-`) may lead to undesired expression results. For example, an attribute named `temperature-basic`, when you use it as part of an expression, it would be the result of subtracting the value of the attribute `basic` to the value of the attribute `temperature` (or `null`, if `temperature` or `basic` don't exist) instead the value of the attribute `temperature-basic`.

## Oneshot Subscriptions

Expand Down

0 comments on commit 28c9226

Please sign in to comment.