Open mapedraza opened 1 year ago
There are 3 cases when provisioning a service group using the parameter entityNameExp
entityNameExp
"entityNameExp":true
{ "id": "true", "type": "Light", "TimeInstant": { "type": "DateTime", "value": "2023-04-24T16:23:55.352Z", "metadata": {} } },
"entityNameExp":false
{ "id": "Light:gps1", "type": "Light", "TimeInstant": { "type": "DateTime", "value": "2023-04-24T16:25:32.707Z", "metadata": {} } },
"entityNameExp":"patata"
{ "id": "Light:gps1", "type": "Light", "TimeInstant": { "type": "DateTime", "value": "2023-04-24T16:27:54.134Z", "metadata": {} } },
"entityNameExp":42
{ "id": "42", "type": "Light", "TimeInstant": { "type": "DateTime", "value": "2023-04-25T07:50:11.067Z", "metadata": {} } },
Test also:
"entityNameExp": 0 "entityNameExp": null "entityNameExp": "'patata'"
Seems to be coherent with JEXL parsing heaviours. In this case, this issue is just explaining these special cases in documentation.
There are 3 cases when provisioning a service group using the parameter
entityNameExp
When
"entityNameExp":true
When
"entityNameExp":false
When
"entityNameExp":"patata"
When
"entityNameExp":42