[Fiware-tech-help] Questions about CEP usage scenario

Altug Guner altugguner90 at gmail.com
Wed Apr 15 17:37:25 CEST 2015


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

On Wed, Apr 15, 2015 at 4:27 PM, Tali Yatzkar-Haham <TALI at il.ibm.com> wrote:

> 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 at il.ibm.com 972-4-8296320
>
>
>
>
> From:        Ahmed Sadek <Ahmed.Sadek at acreo.se>
> To:        Tali Yatzkar-Haham/Haifa/IBM at IBMIL
> Cc:        "altugguner90 at gmail.com" <altugguner90 at gmail.com>, Mikhail
> Popov <Mikhail.Popov at 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 ->
> {"Name":"TrafficReport", "patientId":"1","HeartRate":"120"}
> {"Name":"TrafficReport", "patientId":"2","HeartRate":"120"}
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150415/0c8029d7/attachment.html>


More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy