Skip to content

Commit

Permalink
Merge pull request #379 from telefonicaid/AlvaroVega-patch-2
Browse files Browse the repository at this point in the history
Update plain_rules.md
  • Loading branch information
fgalan committed Oct 3, 2019
2 parents 7c3b215 + 63134d0 commit 0ef6b5f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions documentation/plain_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,19 @@ NGSIv2 example:
"name":"abnormal",
"type":"Number",
"value": 7
}
},
{
"name": "locationCopy",
"type": "MyCustomTypo",
"value": "{\"type\":\"Point\",\"coordinates\":[${Lat},${Lon}]}"
}
]
}
}
```

When using NGSIv2 in the update actions, the value field perform [string substitution](#string-substitution-syntax). If
`value` is a String, Perseo will parse the value taking into account the `type` field, this only applies to _`Number`_,
`value` is a String, Perseo will try cast value to number, boolean or null (without paying attention to the attribute type). If the casting fails then String is used.
_`Boolean`_ and _`None`_ types.

**Data Types for NGSIv2:**
Expand Down

0 comments on commit 0ef6b5f

Please sign in to comment.