Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Data
-
HD-Enabler:CEP
Description
Dear Ahmed,
1. In your definition you define Event Type. Event type has a name and
list of attributes (each with a name and a type). In run time, many event
instances can be of the same type (have the same name and the same list of
attribute names). For example, you can define event type E1 with attribute
patientID. At run time, you can have many E1 event instances with
different values of patientID.
2. The Post supports sending one event only.
3. Arrays are not supported for input event attributes (they were
supported in a previous version, so we do have array functions, and those
functions can be used in our current version over derived events only)
Best Regards,
Tali
Tali Yatzkar Haham
Event-based Middleware & Solutions
IBM Haifa Research Lab, Israel
tali@il.ibm.com 972-4-8296320
From: Ahmed Sadek <Ahmed.Sadek@acreo.se>
To: Tali Yatzkar-Haham/Haifa/IBM@IBMIL
Cc: "altugguner90@gmail.com" <altugguner90@gmail.com>, Mikhail Popov
<Mikhail.Popov@acreo.se>
Date: 14/04/2015 05:32 PM
Subject: Questions about CEP usage scenario
Dear Tali,
I have few questions regarding the usage of CEP in our project.
1- In the project we are dealing with patient data and need to have
different rules for different patient data, where the CEP will generate
events based on this rules. So how we can implement this:
patientID=1 and Hear rate data=[100,120,140,...etc]
patientID=2 and Hear rate data=[100,120,140,...etc]
Do we need multiple EPN or single EPN with different events ?, can we have
multiple conditions ?
2- When we try to send Post with two lines, we notice the CEP only check
the first line.
for example:
Post ->
The CEP only report for the first line in the output file !
3- How to input the heart rate data, it's an array of measurements
[100,120,140,...etc] and we would like to check if some elements are above
or below certain threshold or have certain pattern , can we input it as
attribute of event of type object ?
I noticed in the implemented functions there is:
ArrayHasGreaterThan ? ArrayHasGreaterThan(a,v) checks whether the array a
contains an element with a value greater than v. Returns a Boolean value.
?
ArrayHasLessThan ? ArrayHasLessThan(a,v checks whether the array a
contains an element with a value less than v. Returns a Boolean value.
How we can use those functions ?
CC in the email, my college in the project Altug.Guner
Best,
Ahmed Sadek
Acreo
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help
Dear Tali,
For point number 3; correct me if I am wrong, if I have 30 readings for
heart rate for a patient that I want to send to CEP, I have two options;
1- I will have an event type: e1.patientId and e1.heartRate and will send
30 POST messages
2- I will have an event type e1.patientId,, e1.heartRate1, ...
e1.heartRate30 and will send it in POST.
Did I understand correctly?
Best Regards,
Altug
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help