Dear Fabiana, 1- What is the format for writing If statement in this assertion so I can generate event x when condition 1 is satisfied and event y when condition 2 satisfied. 2- When I choose basic EPA, I can not input assertion as it says " No condition attributes for this EPA type. You may want to change the EPA type " Best, Ahmed On Sat, Jul 4, 2015 at 10:44 AM, Help-Desk <jira-help-desk at fi-ware.org> wrote: > Dear Ahmed, > > Thanks for the clarification. Seems to me that the easiest way to > implement this logic is to write the assertions in the derivation part of > the EPA. Actually you are not performing any kind of pattern matching and > you don't have any temporal windows, so basically you have "an open > Filter/Basic EPA" with no constraints (as you are not filtering out events) > except the assertions in the derivation. > I hope this helps > 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: Answered] Answered > > 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/7a0a5034/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image1118576481477796095 Type: image/png Size: 1331 bytes Desc: not available URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150704/7a0a5034/attachment.png>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy