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 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@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help
[Created via e-mail received from: Ahmed Sadek <asadek@kth.se>]
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Daniele Pavia [ danielepavia ] |
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Assignee | Daniele Pavia [ danielepavia ] | Manuel Escriche [ mev ] |
Assignee | Manuel Escriche [ mev ] | Tali Yatzkar Haham [ tali ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Summary | [Fiware-tech-help] Regarding CEP assertion If condition | FIWARE.Request.Lab.Data.CEP.If condition |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Summary | FIWARE.Request.Lab.Data.CEP.If condition | FIWARE.Request.Tech.Data.CEP.If condition |
Sender Email | asadek@kth.se |
HD-Enabler | CEP [ 10869 ] | |
HD-Chapter | Data [ 10838 ] |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
1d 20h 32m | 1 | Fabiana Fournier | 04/Jul/15 9:01 AM | |||||
|
8s | 1 | Fabiana Fournier | 04/Jul/15 9:01 AM | |||||
|
23d 3h 17m | 1 | Fabiana Fournier | 27/Jul/15 12:19 PM |
Dear Ahmed,
I just passed the case to the Ge owner.
Regards,
Miguel
El 02/07/2015 a las 12:28, Ahmed Sadek escribió:
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