Hi all,

For CEP 3.0.0 we are keeping separate configuration files for the event
builder component which will be saved as an XML file. The event builder
component will basically subscribe to a Transport Adaptor and map from a
supported format like XML, Event, JSON or Text to an event stream/Siddhi
stream. We came up with a sample configuration syntax below [1].

Please give your comments, suggestions on the syntax ( readability, easy to
understand, generic enough to support future extensions etc.)

[1]

<?xml version="1.0" encoding="UTF-8"?>
<builder:eventBuilder xmlns:builder="http://wso2.org/carbon/eventbuilder";>
    <builder:from transportAdaptortype="wso2event"
transportAdaptorName="wso2eventadaptor">
        <builder:property
name="streamName">analytics_Statistics</builder:property>
        <builder:property name="version">1.3.0</builder:property>
    </builder:from>
    <builder:mapping type="wso2event">
        <builder:property>
            <builder:from name="price" type="payload"/>
            <builder:to name="stockPrice" type="double"/>
        </builder:property>
        <builder:property>
            <builder:from name="symbol" type="metadata"/>
            <builder:to name="symbol" type="string"/>
        </builder:property>
    </builder:mapping>
    <builder:to streamName="stockStream" version="1.0.0"/>
</builder:eventBuilder>

Thanks,
Lasantha

-- 
*Lasantha Fernando*
Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: [email protected]
mobile: (+94) 71 5247551
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to