Details
-
Type: extRequest
-
Status: Closed
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Data
-
HD-Enabler:CEP
Description
Dear Tali,
A quick question regarding posting events to CEP, I know that the format
for input events is :
But, the Orion context broker do generate JSON objects in this format:
{
"subscriptionId" : "51c04a21d714fb3b37d7d5a7",
"originator" : "localhost",
"contextResponses" : [
{
"contextElement" : {
"attributes" : [
{
"name" : "temperature",
"type" : "float",
"value" : "26.5"
}
],
"type" : "Room",
"isPattern" : "false",
"id" : "Room1"
},
"statusCode" : {
"code" : "200",
"reasonPhrase" : "OK"
}
}
]
}
So is there a way to make CEP accept this input event and check that the
temperature value is between certain threshold this condition:
TR1.value>0 AND TR1.value<30
Currently, I am getting this error :
Could not parse json event org.apache.wink.json4j.JSONException: The
key [Name] was not in the map, reason: The key [Name] was not in the
map
Since there is no Name of course.
Please let me know if you have a solution or suggestions.
Best,
Ahmed Sadek
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help
[Created via e-mail received from: Ahmed Sadek <don1559@gmail.com>]
Activity
- All
- Comments
- History
- Activity
- Transitions