[Fiware-tech-help] [FI-WARE-JIRA] (HELP-3482) Regarding CEP assertion If condition

Ahmed Sadek asadek at kth.se
Sat Jul 4 10:14:18 CEST 2015


Dear Fabiana,

No I have only 1 event as an input, it's medical data measurements that
contain heart rate, respiration rates ...and other bio vitals. I want to
check if heart rate exceeds certain value then generate alarm 1, if
respiration rate exceeds certain limit then generate alarm 2 ..etc and for
that I am using event 2 as an output to consumers where it will be sent
using rest calls.

Is there are a better way to implement this logic than this ?

Best,
Ahmed

On Sat, Jul 4, 2015 at 9:02 AM, Help-Desk <jira-help-desk at fi-ware.org>
wrote:

>  Dear Ahmed,
>
> Before getting into the error in the authoring tool let me check with you
> the logic of your application.
> 1. first, I believe you have 2 incoming events (event1 and event2), and
> not just event1, otherwise you cannot relate to event2 in the derivation.
> Is this correct?
> 2. are you forcing any sequence between these two, i.e., event1 must come
> before event2? if not, the EPA type shouldn't be sequence but ALL
> 3. regarding context, I understand you are not limiting any window length,
> i.e., you are using the "always" temporal context?
>
> Thank you
> Fabiana
>       FW External User
> <https://jira.fiware.org/secure/ViewProfile.jspa?name=fw.ext.user>
> *created* an issue           Help-Desk
> <https://jira.fiware.org/browse/HELP> / [image: extRequest]
> <https://jira.fiware.org/browse/HELP-3482> HELP-3482
> <https://jira.fiware.org/browse/HELP-3482>   [Fiware-tech-help] Regarding
> CEP assertion If condition <https://jira.fiware.org/browse/HELP-3482>      Issue
> Type:  [image: extRequest] extRequest   Assignee:  Tali Yatzkar Haham
> <https://jira.fiware.org/secure/ViewProfile.jspa?name=TALI>   Components:
> FIWARE-TECH-HELP   Created:  02/Jul/15 1:29 PM   Priority:  [image: Major]
> Major   Reporter:  FW External User
> <https://jira.fiware.org/secure/ViewProfile.jspa?name=fw.ext.user>
> Status:  [image: Open] Open
>
> Dear All,
>
> I am trying to use If condition in the assertion part in CEP, I was
> wondering if someone can provide an example. I am trying to do this logic:
>
> Incoming event1
>
> If event1.x>1 then event2.y=2 else event2.y=3 endif
>
> Derived event
> event2
>
> I have tried to write it but getting error in the authoring tool. Attached
> the definition file.
>
> Also if you can provide an example for the :
> Crosses – Crosses(statFunc ,Resolution, ...) checks which boundary was
> crossed by the status function, while considering the resolution of the
> boundary.
>
> Assuming it's working.
>
> Best,
> Ahmed Sadek
>
> _______________________________________________
> Fiware-tech-help mailing list
> Fiware-tech-help at lists.fi-ware.org
> https://lists.fi-ware.org/listinfo/fiware-tech-help
>
> [Created via e-mail received from: Ahmed Sadek <asadek at kth.se>]
>        [image: Add Comment]
> <https://jira.fiware.org/browse/HELP-3482#add-comment>  Add Comment
> <https://jira.fiware.org/browse/HELP-3482#add-comment>             This
> email was generated by the FIWARE JIRA <http://jira.fiware.org>.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150704/a6864563/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image-6873202798316854646
Type: image/png
Size: 1331 bytes
Desc: not available
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150704/a6864563/attachment.png>


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