Dear Haritz, Your application definition seems to be fine, except of one issue with the EPA's count computed variable "alert Expr". Instead of True you should put there the value to be counted, which is 1 in your case (we expect to get number there since in the general case, it allows to add and subtract or give weight to different event types). Please tell me if this fix solve your problem. If not, please send me both the updated definition file and the log file (catalina.out under tomcat log directory). Best regards, Tali Tali Yatzkar Haham Smart Decision Solutions IBM Haifa Research Lab, Israel tali at il.ibm.com 972-4-8296320 From: MIGUEL CARRILLO PACHECO <miguel.carrillopacheco at telefonica.com> To: Haritz Puerto <haritzpuerto94 at gmail.com>, <fiware-tech-help at lists.fi-ware.org>, Tali Yatzkar-Haham/Haifa/IBM at IBMIL Date: 29/04/2015 12:38 PM Subject: Re: [Fiware-tech-help] CEP proton EPA type aggregate question Dear Haritz, I add Tali to the loop Regards, Miguel El 27/04/2015 a las 17:37, Haritz Puerto escribió: Dear Tali, I am learning how to use proton but I have some problems. I want to write a CEP application which reports a warning event if it detects at least 3 alert events. In order to do that, I have an EPA of type aggregate. Please, find attached the definition file. After sending 3 alert events, the file consumer does not have written any warning event. If it is possible, could you help me? I do not know what I am doing wrong. I am sending these events: {"Name":"alert", "entityId":"1"} {"Name":"alert", "entityId":"2"} {"Name":"alert", "entityId":"3"} Thank you very much. Best regards, Haritz Puerto _______________________________________________ Fiware-tech-help mailing list Fiware-tech-help at lists.fi-ware.org https://lists.fi-ware.org/listinfo/fiware-tech-help -- Please update your address book with my new e-mail address: miguel.carrillopacheco at telefonica.com ---------------------------------------------------------------------- _/ _/_/ Miguel Carrillo Pacheco _/ _/ _/ _/ Telefónica Distrito Telefónica _/ _/_/_/ _/ _/ Investigación y Edifico Oeste 1, Planta 6 _/ _/ _/ _/ Desarrollo Ronda de la Comunicación S/N _/ _/_/ 28050 Madrid (Spain) Tel: (+34) 91 483 26 77 e-mail: miguel.carrillopacheco at telefonica.com Follow FIWARE on the net Website: http://www.fiware.org Facebook: https://www.facebook.com/eu.fiware Twitter: http://twitter.com/Fiware LinkedIn: https://www.linkedin.com/groups/FIWARE-4239932 ---------------------------------------------------------------------- Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150504/5a7cb583/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy