[Fiware-tech-help] FIWARE CEP: Question about project configuration in Proton

Tali Yatzkar-Haham TALI at il.ibm.com
Thu Mar 19 18:08:24 CET 2015


Dear Lorenzo,

The user guide is the best source for the kind of patterns (EPA) you can 
define with the CEP. You define the project in the Authoring tool (as you 
did), then export the definition to the engine and update the engine to 
use the new definition (with the REST api) 
As for the format of the input event, currently the CEP support a flat 
JSON format, tag delimited format, or NGSI  format as in the REST api 
example 

You may want to watch the webinar and tutorial to see the stages of 
building and running a CEP application.
I cc the fiware-tech-help in order to have our correspondence documented 
in the FIWARE tracker system.

Regards,
Tali

Tali Yatzkar Haham
Event-based Middleware & Solutions
IBM Haifa Research Lab, Israel
tali at il.ibm.com 972-4-8296320
 



From:   Lorenzo Eccher <leccher at eng.it>
To:     Tali Yatzkar-Haham/Haifa/IBM at IBMIL
Date:   18/03/2015 05:51 PM
Subject:        FIWARE CEP: Question about project configuration in Proton



Hallo Mrs Tali,
my name is Lorenzo and I started working using FI WARE few days ago.

I'd like to use Proton as CEP GE in my FI-WARE architecture.

I ask your help because I have an event that has a complex structure and I 
would like to understand how can I define it and the EPA that should use 
it.

I check in documents you provide in this wiki
https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/CEP_GE_-_IBM_Proactive_Technology_Online_User_and_Programmer_Guide

and then
forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Complex_Event_Processing_Open_RESTful_API_Specification
and
http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/FIWARE.ArchitectureDescription.Data.CEP


but I don't find anything about attributes of type object in event 
configuration or EPA configuration or how set up the event description 
using REST api.

the json structure of incoming event is this (I know that name attribute 
here is missing)

{"contextElements":[
    {"type":"ADD",
    "isPattern":false,
    
"id":"ADD_MESSAGE_com.liferay.portlet.messageboards.model.MBMessage_111516",
    "attributes":[
        {"name":"id_","type":"long","value":"32302"},
        {"name":"companyId","type":"long","value":"10157"},
        {"name":"groupId","type":"long","value":"10184"},
        {"name":"userId","type":"long","value":"10201"},
        {"name":"date","type":"date","value":"12-mar-2015"},
        {"name":"type","type":"string","value":"ADD_MESSAGE"},
        
{"name":"className","type":"string","value":"com.liferay.portlet.messageboards.model.MBMessage"},
        {"name":"classPK","type":"string","value":"111516"},
        
{"name":"classUuid","type":"string","value":"9cd599c5-e01e-417d-9118-a636beed7145"},
        {"name":"model","type":"string","value":"{32302}"}
        ]}
    ],
"updateAction":"APPEND"}

The EPA should then check the "value" of "name":"groupId" "attributes" 
field.
I don't think is easy to do it using Proton UI (
http://130.206.81.23:8080/AuthoringTool/Main.html). I created there a new 
project named is3_like_eng_test.

Could you address me to a resource that deeply explain how create the 
proton project json file I need also.

Thank you in advance.
Best regards

Lorenzo
-- 

Lorenzo Eccher
lorenzo.eccher at eng.it
   (+39) 0461 312 306
Engineering Ingegneria informatica s.p.a
www.eng.it

ENGINEERING Society and Territory Trento Research Office
EIT-ITC Labs, Trento node

ESTRO Lab at FBK building
via Sommarive, 18
Povo - 38123 Trento

  Le informazioni trasmesse sono destinate esclusivamente alla persona o 
alla società in indirizzo e sono da intendersi confidenziali e riservate. 
Ogni trasmissione, inoltro, diffusione o altro uso di queste informazioni 
a persone o società differenti dal destinatario è proibita. Se ricevete 
questa comunicazione per errore, contattate il mittente e cancellate le 
informazioni da ogni computer.
  The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of, or 
taking of any action in reliance upon, this information by persons or 
entities other than the intended recipient is prohibited. If you received 
this in error, please contact the sender and delete the material from any 
computer.
  Die Informationen in dieser E-Mail-Mitteilung sind vertraulich und deren 
Verbreitung in jeglicher Art oder Form ist untersagt. Sollten Sie diese 
Nachricht irrtümlich erhalten haben, ersuchen wir Sie, sofort den Absender 
darüber zu informieren und die Mail zu löschen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150319/bf106b07/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