Yes.. +1.. On Tue, May 17, 2016 at 2:48 PM, Sajith Perera <[email protected]> wrote:
> +1,Yes this can be done, as we can read the annotation keys and values. > > On Tue, May 17, 2016 at 2:42 PM, Sriskandarajah Suhothayan <[email protected]> > wrote: > >> How about >> >> @Import('loganalyzer:1.0.0', includeArbitraryData='true') >> define stream loganalyzer (logstream string, arbitraryDataMap object); >> >> @Export('loganalyzer:1.0.0', includeArbitraryData ='true') >> define stream loganalyzer (logstream string, arbitraryDataMap object); >> >> >> >> >> >> >> >> On Tue, May 17, 2016 at 1:26 PM, Sajith Perera <[email protected]> wrote: >> >>> Hi, >>> >>> While adding arbitrary mapping thing and doing execution plan >>> validation, "EventProcessorHelper" validate whether user given siddhi >>> stream definition attribute count with the actual stream definition >>> attribute count. >>> >>> Since if the user added new attribute for the siddhi stream definition >>> "define stream loganalyzer (logstream string, mapData Object);" >>> exception occurred. >>> >>> As a solution we can adding annotation "@Arbitrary" above the stream >>> definition and check whether user allow to have more than attributes define >>> in the stream. >>> >>> >>> /* Enter a unique ExecutionPlan */ >>> @Plan:name('Loganalyzer') >>> >>> /* Enter a unique description for ExecutionPlan */ >>> -- @Plan:description('ExecutionPlan') >>> >>> /* define streams/tables and write queries here ... */ >>> >>> @Plan:statistics('false') >>> >>> @Plan:trace('true') >>> >>> @Import('loganalyzer:1.0.0')@Arbitrary >>> define stream loganalyzer (logstream string, mapData Object); >>> @Export('outputStream:1.0.0') >>> define stream cepOutput (outputValue string); >>> >>> from loganalyzer >>> select cast(map:get(mapData , 'content') , 'string') as outputValue >>> insert into cepOutput; >>> >>> WDYT? >>> >>> >>> Thanks, >>> SajithD >>> >>> -- >>> Sajith Dimal >>> Software Engineer >>> Mobile : +94783101496 >>> WSO2 Inc. | http://wso2.com >>> lean.enterprise.middleware >>> >> >> >> >> -- >> >> *S. Suhothayan* >> Technical Lead & Team Lead of WSO2 Complex Event Processor >> *WSO2 Inc. *http://wso2.com >> * <http://wso2.com/>* >> lean . enterprise . middleware >> >> >> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: >> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: >> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: >> http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>* >> > > > > -- > Sajith Dimal > Software Engineer > Mobile : +94783101496 > WSO2 Inc. | http://wso2.com > lean.enterprise.middleware > -- *V. Mohanadarshan* *Senior Software Engineer,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com <http://wso2.com> * *lean.enterprise.middleware.* email: [email protected] phone:(+94) 771117673
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
