Re: [Dev] ETL processes using Files

2019-10-31 Thread Sriskandarajah Suhothayan
Added some comments in the doc

On Thu, Oct 31, 2019 at 10:11, Ramindu De Silva  wrote:

> Hi all,
>
> Currently there are few customer requirements to do ETL processes using
> files.
> I have documented use-cases in gdoc[1].
> The high-level requirements are as follows.
>
>1. A user needs to be Alerted when a file is done processing
>2. A user needs to Stop file processing and rollback at a failure
>which can be detected using siddhi
>3. A user needs to Stop file processing and rollback at a failure when
>there’s a failure at the source/ mapper level.
>
> The solutions proposed are documented in gdoc other than the 3rd use-case
> which is a bit complex. Please add any suggestions or changes if any.
>
> 1.
> https://docs.google.com/document/d/1j4EgQKq4Zihm09Be1PvO1DYFCML9ugx7Py1O-2jJLw4/edit
>
> Best Regards,
> Ramindu.
>
>
> --
> *Ramindu De Silva* | Associate Technical Lead | WSO2 Inc.
> (m) 94719678895 | (e) ramin...@wso2.com
> 
>
-- 
*S. Suhothayan* | Senior Director | WSO2 Inc. 
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Siddhi support for JDK 11

2019-02-13 Thread Sriskandarajah Suhothayan
Can you also make sure we have Jenkins build for Java 8 and Java 11 to make
sure we are compatible on them?
I think it will be good if we can build with Oracle JDK 8, Open JDK 8 and
Open JDK 11.

WDYT?

Regards
Suho

On Wed, Feb 13, 2019 at 6:48 PM Chiran Fernando  wrote:

> Hi all,
>
> Siddhi [1] now supports *JDK 11 !*
>
> I made few minor changes removing the *javax.annotation* dependency since
> Commons Annotation in the package *javax.annotation *is removed in *JDK
> 11.*
> I verified building the source with both *Oracle JDK 11* and *Open JDK 11*
> .
>
> Furthermore, *Java 8* should be used for building in order to support
> both Java 8 and Java 11 at run-time.
>
> [1] https://github.com/siddhi-io/siddhi/tree/master
> --
> *Chiran Fernando*
> Senior Software Engineer | WSO2
>
> Email : chi...@wso2.com
> Mobile : +94716007376
>
> 
>


-- 
*S. Suhothayan* | Director | WSO2 Inc. 
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Siddhi-IO-http authentication failure test case

2019-02-06 Thread Sriskandarajah Suhothayan
Please create a mock service

On Wed, Feb 6, 2019 at 1:37 PM Thushanthan Amalanathan 
wrote:

> Hi all,
> I am writing test cases for Siddhi-IO-Http authentication failure cases.
> For that, I want to connect with API end-points and token end-point and
> need to get a response. Is there any default API end-points and token
> end-point available for testing purpose? Or else can I Mock the responses?
>
> --
> *Thanks and Regards,*
>
> Thushanthan Amalanathan
> Software Engineer
> WSO2, Inc.
> lean . enterprise . middleware
>
> Mobile : +94752239868
>
>
>

-- 
*S. Suhothayan* | Director | WSO2 Inc. 
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Avro mapper not working with SP

2019-01-14 Thread Sriskandarajah Suhothayan
Any update on this?


On Fri, Jan 4, 2019 at 5:02 PM Sriskandarajah Suhothayan 
wrote:

> Thanks a lot.
>
> On Fri, Jan 4, 2019 at 4:21 PM Shafana Safwan  wrote:
>
>> Hi Suho,
>>
>> I will get the avro mapper sample ready by next week.
>>
>> Thank you.
>>
>> On Fri, Jan 4, 2019 at 2:21 PM Sriskandarajah Suhothayan 
>> wrote:
>>
>>> Please inform the team get this done, and continue the team's work!
>>>
>>> Suho
>>>
>>> On Fri, Jan 4, 2019 at 1:46 PM Shafana Safwan  wrote:
>>>
>>>> Hi,
>>>>
>>>> I am in working in Installation Experience team.
>>>>
>>>> On Fri, Jan 4, 2019 at 1:14 PM Sriskandarajah Suhothayan 
>>>> wrote:
>>>>
>>>>> Can you finish this first and move to the development as it has
>>>>> delayed for a long time already.
>>>>> This might need only about 2 days, is it?
>>>>> What team are you working on?
>>>>>
>>>>> On Fri, Jan 4, 2019 at 1:12 PM Shafana Safwan 
>>>>> wrote:
>>>>>
>>>>>> Hi Suho,
>>>>>>
>>>>>> I have fixed the above issue and made sure it will not occur again.
>>>>>> Now Avro mapper can be used without any problem.
>>>>>> No additional jars are need to be added.
>>>>>>
>>>>>> I have started working on writing a sample on avro mapper for SP. But
>>>>>> I would need some time, since I am currently working on some developments
>>>>>> in my team as well.
>>>>>>
>>>>>> Thank you.
>>>>>> Regards,
>>>>>> --
>>>>>> *Shafana Safwan*
>>>>>> Software Engineer
>>>>>> WSO2
>>>>>> lean . enterprise . middleware
>>>>>> Mobile : +94(0) 754515687
>>>>>> <https://wso2.com/signature>
>>>>>>
>>>>>>
>>>>>> On Mon, Dec 10, 2018 at 10:28 AM Shafana Safwan 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Suho,
>>>>>>>
>>>>>>> Will do ASAP.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Shafana
>>>>>>>
>>>>>>> On Sun, Dec 9, 2018 at 8:08 PM Sriskandarajah Suhothayan <
>>>>>>> s...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Please share the doc how to use SP with Kafka and avro registry.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Suho
>>>>>>>>
>>>>>>>> On Sun, Dec 9, 2018 at 12:07 PM Sriskandarajah Suhothayan <
>>>>>>>> s...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Shafana
>>>>>>>>>
>>>>>>>>> When I add the latest Avro mapper it's throwing the following
>>>>>>>>> exception:
>>>>>>>>>
>>>>>>>>> org.osgi.framework.BundleException: Could not resolve module:
>>>>>>>>> siddhi-map-avro [146]
>>>>>>>>>   Unresolved requirement: Import-Package: org.apache.tapestry5.json
>>>>>>>>> at org.eclipse.osgi.container.Module.start(Module.java:444)
>>>>>>>>> at
>>>>>>>>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
>>>>>>>>> at
>>>>>>>>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
>>>>>>>>> at
>>>>>>>>> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:453)
>>>>>>>>> at
>>>>>>>>> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
>>>>>>>>> at
>>>>>>>>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
>>>>>>>>> at
>>>>>>>>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
>>>>>>>>> at
>>>>>>>>> 

Re: [Dev] Avro mapper not working with SP

2019-01-04 Thread Sriskandarajah Suhothayan
Thanks a lot.

On Fri, Jan 4, 2019 at 4:21 PM Shafana Safwan  wrote:

> Hi Suho,
>
> I will get the avro mapper sample ready by next week.
>
> Thank you.
>
> On Fri, Jan 4, 2019 at 2:21 PM Sriskandarajah Suhothayan 
> wrote:
>
>> Please inform the team get this done, and continue the team's work!
>>
>> Suho
>>
>> On Fri, Jan 4, 2019 at 1:46 PM Shafana Safwan  wrote:
>>
>>> Hi,
>>>
>>> I am in working in Installation Experience team.
>>>
>>> On Fri, Jan 4, 2019 at 1:14 PM Sriskandarajah Suhothayan 
>>> wrote:
>>>
>>>> Can you finish this first and move to the development as it has delayed
>>>> for a long time already.
>>>> This might need only about 2 days, is it?
>>>> What team are you working on?
>>>>
>>>> On Fri, Jan 4, 2019 at 1:12 PM Shafana Safwan  wrote:
>>>>
>>>>> Hi Suho,
>>>>>
>>>>> I have fixed the above issue and made sure it will not occur again.
>>>>> Now Avro mapper can be used without any problem.
>>>>> No additional jars are need to be added.
>>>>>
>>>>> I have started working on writing a sample on avro mapper for SP. But
>>>>> I would need some time, since I am currently working on some developments
>>>>> in my team as well.
>>>>>
>>>>> Thank you.
>>>>> Regards,
>>>>> --
>>>>> *Shafana Safwan*
>>>>> Software Engineer
>>>>> WSO2
>>>>> lean . enterprise . middleware
>>>>> Mobile : +94(0) 754515687
>>>>> <https://wso2.com/signature>
>>>>>
>>>>>
>>>>> On Mon, Dec 10, 2018 at 10:28 AM Shafana Safwan 
>>>>> wrote:
>>>>>
>>>>>> Hi Suho,
>>>>>>
>>>>>> Will do ASAP.
>>>>>>
>>>>>> Regards,
>>>>>> Shafana
>>>>>>
>>>>>> On Sun, Dec 9, 2018 at 8:08 PM Sriskandarajah Suhothayan <
>>>>>> s...@wso2.com> wrote:
>>>>>>
>>>>>>> Please share the doc how to use SP with Kafka and avro registry.
>>>>>>>
>>>>>>> Regards
>>>>>>> Suho
>>>>>>>
>>>>>>> On Sun, Dec 9, 2018 at 12:07 PM Sriskandarajah Suhothayan <
>>>>>>> s...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Shafana
>>>>>>>>
>>>>>>>> When I add the latest Avro mapper it's throwing the following
>>>>>>>> exception:
>>>>>>>>
>>>>>>>> org.osgi.framework.BundleException: Could not resolve module:
>>>>>>>> siddhi-map-avro [146]
>>>>>>>>   Unresolved requirement: Import-Package: org.apache.tapestry5.json
>>>>>>>> at org.eclipse.osgi.container.Module.start(Module.java:444)
>>>>>>>> at
>>>>>>>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
>>>>>>>> at
>>>>>>>> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
>>>>>>>> at
>>>>>>>> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:453)
>>>>>>>> at
>>>>>>>> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
>>>>>>>> at
>>>>>>>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
>>>>>>>> at
>>>>>>>> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
>>>>>>>> at
>>>>>>>> org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:60)
>>>>>>>> at
>>>>>>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:774)
>>>>>>>> at
>>>>>>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>>>>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>>&g

Re: [Dev] Avro mapper not working with SP

2018-12-09 Thread Sriskandarajah Suhothayan
Please share the doc how to use SP with Kafka and avro registry.

Regards
Suho

On Sun, Dec 9, 2018 at 12:07 PM Sriskandarajah Suhothayan 
wrote:

> Hi Shafana
>
> When I add the latest Avro mapper it's throwing the following exception:
>
> org.osgi.framework.BundleException: Could not resolve module:
> siddhi-map-avro [146]
>   Unresolved requirement: Import-Package: org.apache.tapestry5.json
> at org.eclipse.osgi.container.Module.start(Module.java:444)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
> at
> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:453)
> at
> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
> at
> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
> at
> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
> at
> org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:60)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:774)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:767)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:724)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:932)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
> at org.eclipse.osgi.container.Module.doStart(Module.java:581)
> at org.eclipse.osgi.container.Module.start(Module.java:449)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
> at
> org.wso2.carbon.launcher.CarbonServer.loadInitialBundles(CarbonServer.java:242)
> at org.wso2.carbon.launcher.CarbonServer.start(CarbonServer.java:83)
> at org.wso2.carbon.launcher.Main.main(Main.java:84)
>
> Can you please update the Avro documentation home page with the
> relevant other jars we need to add with this to make it work on SP.
>
> Regards
> Suho
> --
> *S. Suhothayan* | Director | WSO2 Inc. <https://wso2.com/>
> (m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan
> <https://twitter.com/suhothayan>
> GET INTEGRATION AGILE
> Integration Agility for Digitally Driven Business
>
-- 
*S. Suhothayan* | Director | WSO2 Inc. <https://wso2.com/>
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan
<https://twitter.com/suhothayan>
GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Avro mapper not working with SP

2018-12-08 Thread Sriskandarajah Suhothayan
Hi Shafana

When I add the latest Avro mapper it's throwing the following exception:

org.osgi.framework.BundleException: Could not resolve module:
siddhi-map-avro [146]
  Unresolved requirement: Import-Package: org.apache.tapestry5.json
at org.eclipse.osgi.container.Module.start(Module.java:444)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
at
org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:453)
at
org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:111)
at
org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:191)
at
org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:205)
at
org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:60)
at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:774)
at
org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:767)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:724)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:932)
at
org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
at
org.wso2.carbon.launcher.CarbonServer.loadInitialBundles(CarbonServer.java:242)
at org.wso2.carbon.launcher.CarbonServer.start(CarbonServer.java:83)
at org.wso2.carbon.launcher.Main.main(Main.java:84)

Can you please update the Avro documentation home page with the
relevant other jars we need to add with this to make it work on SP.

Regards
Suho
-- 
*S. Suhothayan* | Director | WSO2 Inc. 
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [SP] Lots of logs getting printed when matrices are enabled

2018-11-15 Thread Sriskandarajah Suhothayan
Yes, Can we just print just one log for all the JMX reporters.

Suho

On Thu, Nov 15, 2018 at 11:39 AM Isuru Perera  wrote:

> Do you mean the following log?
>
> Started JMX reporter for Metrics
>
> It's supposed to be logged only at initialization time. However when
> changing the metric levels, the listening reporters are restarted (due to
> the way it's implemented). For example, the default JMX Reporter will not
> detect new metrics (when a metric is changing the status to enabled). We
> need to fix the code (to avoid printing many logs).
>
>
>
> On Tue, Nov 13, 2018 at 8:15 PM Ramindu De Silva 
> wrote:
>
>> Hi All,
>>
>> Regarding the "Lots of log printed when matrices are enabled" issue [1].
>> When each an every metrics is starting[2], the log is getting printed when
>> setting the metrics level. Should we make these logs [3] to debug logs?
>>
>>
>> 1. https://github.com/wso2/product-sp/issues/873
>> 2.
>> https://github.com/wso2/carbon-analytics/blob/b4a2bcf444d25031775a679bad76798d70ce7d5b/components/org.wso2.carbon.siddhi.metrics.core/src/main/java/org/wso2/carbon/siddhi/metrics/core/SiddhiThroughputMetric.java#L41
>> 3.
>> https://github.com/ramindu90/carbon-metrics/blob/61c87c5360859c64217bcfa63f56b1c3fff32279/components/org.wso2.carbon.metrics.core/src/main/java/org/wso2/carbon/metrics/core/reporter/impl/AbstractReporter.java#L59
>>
>> Best Regards,
>> Ramindu.
>>
>> --
>> *Ramindu De Silva*
>> Senior Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94 719678895
>>
>
>
> --
> Isuru Perera | Technical Lead | WSO2 Inc.
> Contact: +IsuruPereraWSO2 
> GET INTEGRATION AGILE
> Integration Agility for Digitally Driven Business
>
-- 
*S. Suhothayan* | Director | WSO2 Inc. 
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] siddhi-io-http access token expired solution

2018-11-14 Thread Sriskandarajah Suhothayan
you have to use "carbon-messages" and get it done, dont introduce another
dependency

On Wed, Nov 14, 2018 at 11:09 AM Thushanthan Amalanathan <
thushant...@wso2.com> wrote:

> Hi all,
> Currently, I am working on Stream Processor Siddi-io-http access token
> expired related project. In http-sink, we are passing the access token in
> the header for accessing API. Sometimes we got an authentication failure
> error because of the access token expired.
> I wrote a method for renewing access token by using refresh token. I wrote
> this method using Apache http-response library. but in siddi-io-http they
> use "carbon messages" method for getting request and response.
> do I continue with Apache http-response or do I need to change the way as
> "carbon-messages" for getting http request and response?
>
> Appreciate your comments.
>
> --
> *Thanks and Regards,*
>
> Thushanthan Amalanathan
> Associate Software Engineer
> WSO2, Inc.
> lean . enterprise . middleware
>
> Mobile : +94752239868
>
>
>

-- 
*S. Suhothayan* | Director | WSO2 Inc. 
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Allowing Siddhi Aggregations to run independently in different data centers

2018-11-04 Thread Sriskandarajah Suhothayan
On Sun, Nov 4, 2018 at 8:10 PM Niveathika Rajendran 
wrote:

> Hi Suho,
>
> As per the offline discussion with @Shehan Panditharatne
> , the aggregation was run independently, however with
> the same data source. The issue we faced was that when in-memory buckets
> were calculated from the database, there were overlaps.
> For instance when "SP1" node has already stored the second data, then only
> the SP2 node gets the first message, it had loaded "SP1" nodes aggregation
> from the database,  thus we faced duplicate key exceptions.
>
> AFAIK, this shouldn't occur if we use different data centres.
>
Even in that case if we are sharing the DB this will be a problem is it?
How about using the node ID and filtering the data when loading the
messages from DB. Will that solve the problem?

Regards
Suho


> Best Regards,
> *Niveathika Rajendran,*
> *Senior Software Engineer.*
> *Mobile : +94 077 903 7536*
>
>
>
>
>
> On Sun, Nov 4, 2018 at 5:01 PM Sriskandarajah Suhothayan 
> wrote:
>
>> Hi Nivedika
>>
>> This seems not to be possible, can you explain reason for failure?
>>
>> Regards
>> Suho
>>
>> On Sat, Nov 3, 2018 at 5:56 PM Shehan Panditharatne 
>> wrote:
>>
>>> Hi,
>>>
>>> I have attached the modified siddhi app for two parallel worker nodes.
>>> I have added the attribute node to PreProcessedESBStatStream and
>>> PreProcessedMediatorStatStream. It will be "sp1" in the first instance and
>>> "sp2" in thee second instance.
>>>
>>> Best regards
>>>
>>> --
>>> Shehan Panditharatne
>>> Software Engineer Intern | WSO2, Inc
>>> Mobile: +94771554990
>>>
>>
>>
>> --
>> *S. Suhothayan* | Director | WSO2 Inc. <https://wso2.com/>
>> (m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan
>> <https://twitter.com/suhothayan>
>> GET INTEGRATION AGILE
>> Integration Agility for Digitally Driven Business
>>
>

-- 
*S. Suhothayan* | Director | WSO2 Inc. <https://wso2.com/>
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan
<https://twitter.com/suhothayan>
GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Allowing Siddhi Aggregations to run independently in different data centers

2018-11-04 Thread Sriskandarajah Suhothayan
Hi Nivedika

This seems not to be possible, can you explain reason for failure?

Regards
Suho

On Sat, Nov 3, 2018 at 5:56 PM Shehan Panditharatne 
wrote:

> Hi,
>
> I have attached the modified siddhi app for two parallel worker nodes.
> I have added the attribute node to PreProcessedESBStatStream and
> PreProcessedMediatorStatStream. It will be "sp1" in the first instance and
> "sp2" in thee second instance.
>
> Best regards
>
> --
> Shehan Panditharatne
> Software Engineer Intern | WSO2, Inc
> Mobile: +94771554990
>


-- 
*S. Suhothayan* | Director | WSO2 Inc. 
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] Incorrect results when having two window joins with sums

2018-10-27 Thread Sriskandarajah Suhothayan
On Wed, Oct 17, 2018 at 11:59 PM Tishan Dahanayakage 
wrote:

> Hi Ramindu,
>
> Each time a join happens s.amount is populated as 100 and it is a current
> event. When that current event reach the sum attribute aggregator it will
> keep on adding. In other words sum(s.amount) represent the sum of amounts
> that joined with consumptions stream not sum of amount came within last
> hour.
>
> If we are to accurately achieve this requirement we should take below
> approach.
> 1) Window query to calculate running sum of last hour of supply stream
> 2)  Window query to calculate running sum of last hour of consumption
> stream
> 3) Pattern query to compare each supply with proceeding consumptions which
> fulfills the conditions.
>
> +1
#3 can also be a join with window.length(1) of each stream, just to join
and compare .

Thanks,
> /Tishan
>
> On Wed, Oct 17, 2018 at 10:46 PM Ramindu De Silva 
> wrote:
>
>> Hi all,
>>
>> In tutorial[1] which we are using for our labkit as well has the siddhi
>> app as follows.
>>
>> @App:name('MaterialThresholdAlertApp')
>>
>> @source(type = 'http', @map(type = 'json'))
>> define stream MaterialConsumptionStream(name string, user string, amount 
>> double);
>>
>> @source(type = 'http', @map(type = 'json'))
>> define stream MaterialSupplyStream(name string, supplier string, amount 
>> double);
>>
>> @sink(type='log', prefix='Materials that go beyond sustainability 
>> threshold:')
>> define stream MaterialThresholdAlertStream(name string, supplyAmount double, 
>> consumptionAmount double, user string, supplier string);
>>
>> from MaterialConsumptionStream#window.time(1 hour) as c
>>  join MaterialSupplyStream#window.time(1 hour) as s
>>  on c.name == s.name
>> select s.name, s.amount as supplyAmount, c.amount as consumptionAmount, 
>> user, supplier
>> group by s.name
>> having s.amount * 0.95 < c.amount
>> insert into MaterialThresholdAlertStream;
>>
>>
>> But in-order to check the total consumed amount is greater than 95% of
>> supplied amount, we should have the query as follows.
>>
>> select s.name, sum(s.amount) as supplyAmount, sum(c.amount) as 
>> consumptionAmount, user, supplier
>>
>>
>> But the results gets printed as follows when we simulate using the
>> following steps,
>>
>>1. Simulate "*MaterialSupplyStream*" with "sugar, yyy, 100"
>>2. Simulate "*MaterialConsumptionStream*" with "sugar, xxx, 97"
>>   1. Materials that go beyond sustainability threshold: :
>>   Event{timestamp=1539794935863, data=[sugar, *100.0*, 97.0, yyy,
>>   xxx], isExpired=false}
>>   3. Simulate "*MaterialConsumptionStream*" with "sugar, xxx, 97"
>>   1. Materials that go beyond sustainability threshold: :
>>   Event{timestamp=1539794936733, data=[sugar, *200.0*, 194.0, yyy,
>>   xxx], isExpired=false}
>>   4. Simulate "*MaterialConsumptionStream*" with "sugar, xxx, 97"
>>   1. Materials that go beyond sustainability threshold: :
>>   Event{timestamp=1539794937643, data=[sugar, *300.0*, 291.0, yyy,
>>   xxx], isExpired=false}
>>
>> Even though we dont send event to the *MaterialSupplyStream,* the
>> summation adds 100 each at each join. It should be resulted with the
>> initial 100 that we sent. Is it? Please correct me if I'm wrong.
>>
>> Best Regards,
>> Ramindu.
>>
>> 1. https://docs.wso2.com/display/SP430/Correlating+Simple+Events
>>
>>
>> --
>> *Ramindu De Silva*
>> Senior Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94 719678895
>>
>
>
> --
> *Tishan Dahanayakage* | Associate Technical Lead | WSO2 Inc.
> (m) +94716481328 | (w) +94112145345 | (e) tis...@wso2.com
> GET INTEGRATION AGILE
> Integration Agility for Digitally Driven Business
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>


-- 
*S. Suhothayan* | Director | WSO2 Inc. 
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [SP] All user input in a business rules template is option

2018-10-20 Thread Sriskandarajah Suhothayan
Have we created an issue on this ?

On Tue, Oct 16, 2018 at 12:09 PM Minudika Malshan  wrote:

> I think instead of introducing another new property, it's better to make 
> *default
> **value * property optional.
> If there is no default value in the template, then that field becomes
> mandatory for the user.
>
> On Tue, Oct 16, 2018 at 11:07 AM Niveathika Rajendran 
> wrote:
>
>> Hi All,
>>
>> As of the current implementation, we have assumed that the user input of
>> the templated field is optional, i.e, always a default value should be
>> provided in the template.
>>
>> However, in some cases, it is not possible to give default values such,
>> 1. Latitude, longitude field templated siddhi apps used for Geofencing
>> 2. App Id in twitter source
>>
>> IMO, we should have another property added to the template field such as
>> "isUserInputMandatory". In this case, we should validate that all
>> properties should have non-empty values(Default values is not applicable).
>>
>> *Workaround Tried:*
>> I tried to add a script to validate that the input is non-empty. However,
>> then the default values will be validated at the template loading thus the
>> template becomes broken.
>>
>> Your thoughts on the matter are much appreciated.
>>
>> Github Issue: https://github.com/wso2/carbon-analytics/issues/1465
>>
>> Best Regards,
>> *Niveathika Rajendran,*
>> *Software Engineer.*
>> *Mobile : +94 077 903 7536*
>>
>>
>>
>>
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887
> Web :  http://wso2.com
>
>  
>
-- 
*S. Suhothayan* | Director | WSO2 Inc. 
(m) (+94) 779 756 757 | (e) s...@wso2.com | (t) @suhothayan

GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Message Broker support for partitions

2018-08-02 Thread Sriskandarajah Suhothayan
Can't we mimic multiple topics e.g. foo_1, foo_2, etc as petitions of foo?

On Thu, Aug 2, 2018 at 6:53 PM Ketharan Suntharam  wrote:

> Hi all,
>  I am working on replacing Kafka with WSO2 MB in the fully distributed
> deployment pattern of Stream Processor.
>  When it comes to handling the transport strategy FIELD_GROUPING,
> Kafka uses partition keys to make sure that data from same endpoint eg:
> device_id always consumed by same consumer even though multiple partitions
> used. Kafka always add the data from same id, to same partition where a
> single consumer subscribed to.
>
> How can we achieve the support for partitions using WSO2 MB?
>


-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Review & Merge the Pull Request

2018-07-10 Thread Sriskandarajah Suhothayan
Thanks for your contribution

On Wed, Jul 11, 2018 at 12:22 AM Minudika Malshan  wrote:

> Hi Senthuran,
>
> Thanks for your contribution.
> We have merged the PR.
>
>
>
>
> On Wed, Jul 11, 2018 at 12:15 AM, Senthuran Ambalavanar <
> senthuranr...@gmail.com> wrote:
>
>> Hi,
>>
>> Please review & merge the Pull Request [1]
>> , in which I have
>> fixed issue [2] .
>> [1]https://github.com/wso2/carbon-analytics/pull/1363
>> [2]https://github.com/wso2/product-sp/issues/695
>>
>> Thanks & Regards,
>> Senthuran.
>>
>
>
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887
> Web :  http://wso2.com
>
>  
>
-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need info on IS-Analytivs event streams

2018-06-18 Thread Sriskandarajah Suhothayan
You can find them from the "Receivers" section on the IS analytics pack

On Mon, Jun 18, 2018 at 11:04 AM Thisaru Guruge  wrote:

> Hi,
>
> I am working on a project to migrate IS-Analytics from DAS to SP, and need
> some help on identifying the event streams published to DAS from Identity
> Server.
>
> How can I find, what are the event streams published to the DAS server for
> analytics, from Identity Server ?
>
> (I am a beginner to the Identity Server and Analytics)
>
> --
> Thanks and Best Regards
> ​,
> Thisaru Guruge​
>


-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 Stream Processor 4.1.0 RC1

2018-03-14 Thread Sriskandarajah Suhothayan
-1
In Mac, the graphics of the editor event flow is not rendering correctly.

Please check the attached image.

On Thu, Mar 15, 2018 at 12:46 AM, Damith Wickramasinghe 
wrote:

> - sup dev
> + dev
>
> On Thu, Mar 15, 2018 at 12:05 AM, Damith Wickramasinghe 
> wrote:
>
>> Hi Devs,
>>
>> We are pleased to announce the release candidate of WSO2 Stream Processor
>> 4.1.0.
>>
>> This is the Release Candidate version 1 of the WSO2 Stream Processor 4.1.
>> 0
>>
>> Please download, test the product and vote. Vote will be open for 72
>> hours or as needed.
>>
>> Known issues: https://github.com/wso2/product-sp/issues
>>
>> Source and binary distribution files: https://github.com/wso2/produc
>> t-sp/releases/tag/v4.1.0-RC1
>>
>> The tag to be voted upon: https://github.com/wso2/product-sp/tree/v4.1.0-
>> RC1
>>
>> Please vote as follows.
>> [+] Stable - go ahead and release
>> [-] Broken - do not release (explain why)
>>
>> ~ The WSO2 Analytics Team ~
>> Thanks.
>>
>>
>> --
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315 <+94%2072%20867%201315>*
>>
>>
>
>
> --
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <072%20867%201315>*
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot find the Doc Site for siddhi-map-csv

2018-02-06 Thread Sriskandarajah Suhothayan
Thanks, Mahesika and Kalaiyarasi.

@Kalaiyarasi can you also add a sample to SP using CSV.

Regards
Suho

On Tue, Feb 6, 2018 at 11:00 AM, Kalaiyarasi Ganeshalingam <
kalaiyar...@wso2.com> wrote:

> Thanks Maheshika, Now It's working.
>
> Kalaiyarasi Ganeshalingam
> Associate Software Engineer| WSO2
> WSO2 Inc : http://wso2.org
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
> Tel:+94 076 6792895 <076%20679%202895>
> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>
> On Tue, Feb 6, 2018 at 8:44 AM, Maheshika Goonetilleke <mahesh...@wso2.com
> > wrote:
>
>> Hi Suho
>>
>> My mistake, I have pointed to /docs. Amended it to point to gh-pages.
>> Please check now.
>>
>> On Tue, Feb 6, 2018 at 12:38 AM, Sriskandarajah Suhothayan <s...@wso2.com
>> > wrote:
>>
>>> @Maheshika Can you cross check if the siddhi-map-csv[1] is properly
>>> enabled with gh-pages site?
>>>
>>> [1] https://github.com/wso2-extensions/siddhi-map-csv/
>>>
>>> On Sat, Feb 3, 2018 at 8:53 PM, Sriskandarajah Suhothayan <s...@wso2.com
>>> > wrote:
>>>
>>>> I still don’t see the site being fixed !
>>>>
>>>> This is sloppy!  Please fix ASAP
>>>>
>>>> On Tue, Jan 30, 2018 at 5:35 PM Kalaiyarasi Ganeshalingam <
>>>> kalaiyar...@wso2.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> Please find the PR [1][2] for this.
>>>>>
>>>>> [1] https://github.com/wso2-extensions/siddhi-map-csv/pull/5
>>>>> [2] https://github.com/wso2-extensions/siddhi-map-csv/pull/4
>>>>>
>>>>> Regards,
>>>>>
>>>>> Kalaiyarasi Ganeshalingam
>>>>> Associate Software Engineer| WSO2
>>>>> WSO2 Inc : http://wso2.org
>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>> Tel:+94 076 6792895 <076%20679%202895>
>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>> <http://kalai4.blogspot.com/>
>>>>>
>>>>> On Mon, Jan 29, 2018 at 11:01 PM, Sriskandarajah Suhothayan <
>>>>> s...@wso2.com> wrote:
>>>>>
>>>>>> Why this does not use Siddhi theme like other extensions?
>>>>>>
>>>>>> On Thu, Jan 25, 2018 at 11:09 AM Kalaiyarasi Ganeshalingam <
>>>>>> kalaiyar...@wso2.com> wrote:
>>>>>>
>>>>>>>
>>>>>>> Thanks Maheshika. I will check.
>>>>>>>
>>>>>>> Kalaiyarasi Ganeshalingam
>>>>>>> Associate Software Engineer| WSO2
>>>>>>> WSO2 Inc : http://wso2.org
>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>>>> <http://kalai4.blogspot.com/>
>>>>>>>
>>>>>>> On Wed, Jan 24, 2018 at 11:05 PM, Maheshika Goonetilleke <
>>>>>>> mahesh...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Kalaiyarasi
>>>>>>>>
>>>>>>>> I add the /docs to gh-pages. Please check.
>>>>>>>>
>>>>>>>> On Wed, Jan 24, 2018 at 9:26 PM, Kalaiyarasi Ganeshalingam <
>>>>>>>> kalaiyar...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> + Maheshika.
>>>>>>>>>
>>>>>>>>> Kalaiyarasi Ganeshalingam
>>>>>>>>> Associate Software Engineer| WSO2
>>>>>>>>> WSO2 Inc : http://wso2.org
>>>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>&g

Re: [Dev] Cannot find the Doc Site for siddhi-map-csv

2018-02-05 Thread Sriskandarajah Suhothayan
@Maheshika Can you cross check if the siddhi-map-csv[1] is properly enabled
with gh-pages site?

[1] https://github.com/wso2-extensions/siddhi-map-csv/

On Sat, Feb 3, 2018 at 8:53 PM, Sriskandarajah Suhothayan <s...@wso2.com>
wrote:

> I still don’t see the site being fixed !
>
> This is sloppy!  Please fix ASAP
>
> On Tue, Jan 30, 2018 at 5:35 PM Kalaiyarasi Ganeshalingam <
> kalaiyar...@wso2.com> wrote:
>
>> Hi all,
>>
>> Please find the PR [1][2] for this.
>>
>> [1] https://github.com/wso2-extensions/siddhi-map-csv/pull/5
>> [2] https://github.com/wso2-extensions/siddhi-map-csv/pull/4
>>
>> Regards,
>>
>> Kalaiyarasi Ganeshalingam
>> Associate Software Engineer| WSO2
>> WSO2 Inc : http://wso2.org
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>> Tel:+94 076 6792895 <076%20679%202895>
>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>>
>> On Mon, Jan 29, 2018 at 11:01 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> Why this does not use Siddhi theme like other extensions?
>>>
>>> On Thu, Jan 25, 2018 at 11:09 AM Kalaiyarasi Ganeshalingam <
>>> kalaiyar...@wso2.com> wrote:
>>>
>>>>
>>>> Thanks Maheshika. I will check.
>>>>
>>>> Kalaiyarasi Ganeshalingam
>>>> Associate Software Engineer| WSO2
>>>> WSO2 Inc : http://wso2.org
>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>> <http://kalai4.blogspot.com/>
>>>>
>>>> On Wed, Jan 24, 2018 at 11:05 PM, Maheshika Goonetilleke <
>>>> mahesh...@wso2.com> wrote:
>>>>
>>>>> Hi Kalaiyarasi
>>>>>
>>>>> I add the /docs to gh-pages. Please check.
>>>>>
>>>>> On Wed, Jan 24, 2018 at 9:26 PM, Kalaiyarasi Ganeshalingam <
>>>>> kalaiyar...@wso2.com> wrote:
>>>>>
>>>>>> + Maheshika.
>>>>>>
>>>>>> Kalaiyarasi Ganeshalingam
>>>>>> Associate Software Engineer| WSO2
>>>>>> WSO2 Inc : http://wso2.org
>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>>> <http://kalai4.blogspot.com/>
>>>>>>
>>>>>> On Wed, Jan 24, 2018 at 9:06 PM, Kalaiyarasi Ganeshalingam <
>>>>>> kalaiyar...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Mahesika,
>>>>>>>
>>>>>>> Can you generate the gh-page branch for the repo[1].
>>>>>>>
>>>>>>> [1] https://github.com/wso2-extensions/siddhi-map-csv
>>>>>>>
>>>>>>> Regards,
>>>>>>> Kalai
>>>>>>>
>>>>>>> Kalaiyarasi Ganeshalingam
>>>>>>> Associate Software Engineer| WSO2
>>>>>>> WSO2 Inc : http://wso2.org
>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>>>> <http://kalai4.blogspot.com/>
>>>>>>>
>>>>>>> On Wed, Jan 24, 2018 at 9:00 PM, Kalaiyarasi Ganeshalingam <
>>>>>>> kalaiyar...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Noted.
>>>>>>>>
>>>>>>>> Kalaiyarasi Ganeshalingam
>>>>>>>> Associate Software Engineer| WSO2
>>>>>>>> WSO2 Inc : http://wso2.org
>>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>>>> Tel:+94 076 679289

Re: [Dev] Add info on docs how to create and deploy custom extensions/UDFs to WSO2 SP

2018-02-04 Thread Sriskandarajah Suhothayan
"save the build extension jar " it's not save it should be add/place

On Mon, Feb 5, 2018 at 10:00 AM, Rukshani Weerasinha <ruksh...@wso2.com>
wrote:

> Hello Suho,
>
> Now I have updated the Wiki document with what you mentioned. It is now
> the last step of each procedure. I will update the Siddhi Guide as well and
> inform you once it is done.
>
> [1] https://docs.wso2.com/display/SP400/Writing+Custom+Siddhi+Extensions
>
> Best Regards,
> Rukshani.
>
> On Fri, Feb 2, 2018 at 5:16 PM, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> When we do all the given steps, it will create a skeleton source code
>> which the user can then fill in extension logic.
>> They have to then build that source code using maven and copy the built
>> extension jar to the /lib directory.
>>
>> Can you add this info to the product wiki and also to the siddhi doc
>> site.
>>
>>
>> On Fri, Feb 2, 2018 at 12:38 PM, Rukshani Weerasinha <ruksh...@wso2.com>
>> wrote:
>>
>>> Hello Suho,
>>>
>>> Now I have added this information in [1]
>>>
>>> Is there anything that the extension implementer needs to do afterwards
>>> if he presses *N* to indicate that the property values are not correct
>>> (step 3 in each procedure)?
>>>
>>> [1] https://docs.wso2.com/display/SP400/Writing+Custom+Siddhi+Extensions
>>>
>>> Best Regards,
>>> Rukshani.
>>>
>>> On Thu, Feb 1, 2018 at 12:50 PM, Rukshani Weerasinha <ruksh...@wso2.com>
>>> wrote:
>>>
>>>> Hi Suho,
>>>>
>>>> I will work on this and update this thread once it is done.
>>>>
>>>> Best Regards,
>>>> Rukshani.
>>>>
>>>> On Thu, Feb 1, 2018 at 12:18 PM, Sriskandarajah Suhothayan <
>>>> s...@wso2.com> wrote:
>>>>
>>>>> @Rukshani
>>>>>
>>>>> Can you do $Subject? Refer Siddhi site for info[1]. We have to also
>>>>> say how/where to deploy those jars too.
>>>>> After the ongoing build, the info in [1] will be available in [2]
>>>>>
>>>>> [1]https://github.com/wso2/siddhi/blob/master/docs/documenta
>>>>> tion/siddhi-4.0.md#writing-custom-extensions
>>>>> [2] https://wso2.github.io/siddhi/documentation/siddhi-4.0/#
>>>>> writing-custom-extensions
>>>>>
>>>>> Regards
>>>>> Suho
>>>>>
>>>>> --
>>>>>
>>>>> *S. Suhothayan*
>>>>> Director
>>>>> *WSO2 Inc. *
>>>>> http://wso2.com  <http://wso2.com/>
>>>>>
>>>>>
>>>>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | 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>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Rukshani Weerasinha
>>>>
>>>> WSO2 Inc.
>>>> Web:http://wso2.com
>>>> Mobile: 0777 683 738 <077%20768%203738>
>>>>
>>>>
>>>
>>>
>>> --
>>> Rukshani Weerasinha
>>>
>>> WSO2 Inc.
>>> Web:http://wso2.com
>>> Mobile: 0777 683 738 <077%20768%203738>
>>>
>>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Director
>> *WSO2 Inc. *
>> http://wso2.com  <http://wso2.com/>
>>
>>
>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | 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>*
>>
>
>
>
> --
> Rukshani Weerasinha
>
> WSO2 Inc.
> Web:http://wso2.com
> Mobile: 0777 683 738 <077%20768%203738>
>
>


-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  <http://wso2.com/>


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot find the Doc Site for siddhi-map-csv

2018-02-03 Thread Sriskandarajah Suhothayan
I still don’t see the site being fixed !

This is sloppy!  Please fix ASAP

On Tue, Jan 30, 2018 at 5:35 PM Kalaiyarasi Ganeshalingam <
kalaiyar...@wso2.com> wrote:

> Hi all,
>
> Please find the PR [1][2] for this.
>
> [1] https://github.com/wso2-extensions/siddhi-map-csv/pull/5
> [2] https://github.com/wso2-extensions/siddhi-map-csv/pull/4
>
> Regards,
>
> Kalaiyarasi Ganeshalingam
> Associate Software Engineer| WSO2
> WSO2 Inc : http://wso2.org
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
> Tel:+94 076 6792895
> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>
> On Mon, Jan 29, 2018 at 11:01 PM, Sriskandarajah Suhothayan <s...@wso2.com
> > wrote:
>
>> Why this does not use Siddhi theme like other extensions?
>>
>> On Thu, Jan 25, 2018 at 11:09 AM Kalaiyarasi Ganeshalingam <
>> kalaiyar...@wso2.com> wrote:
>>
>>>
>>> Thanks Maheshika. I will check.
>>>
>>> Kalaiyarasi Ganeshalingam
>>> Associate Software Engineer| WSO2
>>> WSO2 Inc : http://wso2.org
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>>>
>>> On Wed, Jan 24, 2018 at 11:05 PM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
>>>> Hi Kalaiyarasi
>>>>
>>>> I add the /docs to gh-pages. Please check.
>>>>
>>>> On Wed, Jan 24, 2018 at 9:26 PM, Kalaiyarasi Ganeshalingam <
>>>> kalaiyar...@wso2.com> wrote:
>>>>
>>>>> + Maheshika.
>>>>>
>>>>> Kalaiyarasi Ganeshalingam
>>>>> Associate Software Engineer| WSO2
>>>>> WSO2 Inc : http://wso2.org
>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>> <http://kalai4.blogspot.com/>
>>>>>
>>>>> On Wed, Jan 24, 2018 at 9:06 PM, Kalaiyarasi Ganeshalingam <
>>>>> kalaiyar...@wso2.com> wrote:
>>>>>
>>>>>> Hi Mahesika,
>>>>>>
>>>>>> Can you generate the gh-page branch for the repo[1].
>>>>>>
>>>>>> [1] https://github.com/wso2-extensions/siddhi-map-csv
>>>>>>
>>>>>> Regards,
>>>>>> Kalai
>>>>>>
>>>>>> Kalaiyarasi Ganeshalingam
>>>>>> Associate Software Engineer| WSO2
>>>>>> WSO2 Inc : http://wso2.org
>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>>> <http://kalai4.blogspot.com/>
>>>>>>
>>>>>> On Wed, Jan 24, 2018 at 9:00 PM, Kalaiyarasi Ganeshalingam <
>>>>>> kalaiyar...@wso2.com> wrote:
>>>>>>
>>>>>>> Noted.
>>>>>>>
>>>>>>> Kalaiyarasi Ganeshalingam
>>>>>>> Associate Software Engineer| WSO2
>>>>>>> WSO2 Inc : http://wso2.org
>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>>>> <http://kalai4.blogspot.com/>
>>>>>>>
>>>>>>> On Wed, Jan 24, 2018 at 9:27 AM, Sriskandarajah Suhothayan <
>>>>>>> s...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Kalaiyarasi
>>>>>>>>
>>>>>>>> Can you make sure the necessary things are done for the doc site
>>>>>

Re: [Dev] Add info on docs how to create and deploy custom extensions/UDFs to WSO2 SP

2018-02-02 Thread Sriskandarajah Suhothayan
When we do all the given steps, it will create a skeleton source code which
the user can then fill in extension logic.
They have to then build that source code using maven and copy the built
extension jar to the /lib directory.

Can you add this info to the product wiki and also to the siddhi doc site.


On Fri, Feb 2, 2018 at 12:38 PM, Rukshani Weerasinha <ruksh...@wso2.com>
wrote:

> Hello Suho,
>
> Now I have added this information in [1]
>
> Is there anything that the extension implementer needs to do afterwards if
> he presses *N* to indicate that the property values are not correct (step
> 3 in each procedure)?
>
> [1] https://docs.wso2.com/display/SP400/Writing+Custom+Siddhi+Extensions
>
> Best Regards,
> Rukshani.
>
> On Thu, Feb 1, 2018 at 12:50 PM, Rukshani Weerasinha <ruksh...@wso2.com>
> wrote:
>
>> Hi Suho,
>>
>> I will work on this and update this thread once it is done.
>>
>> Best Regards,
>> Rukshani.
>>
>> On Thu, Feb 1, 2018 at 12:18 PM, Sriskandarajah Suhothayan <s...@wso2.com
>> > wrote:
>>
>>> @Rukshani
>>>
>>> Can you do $Subject? Refer Siddhi site for info[1]. We have to also say
>>> how/where to deploy those jars too.
>>> After the ongoing build, the info in [1] will be available in [2]
>>>
>>> [1]https://github.com/wso2/siddhi/blob/master/docs/documenta
>>> tion/siddhi-4.0.md#writing-custom-extensions
>>> [2] https://wso2.github.io/siddhi/documentation/siddhi-4.0/#
>>> writing-custom-extensions
>>>
>>> Regards
>>> Suho
>>>
>>> --
>>>
>>> *S. Suhothayan*
>>> Director
>>> *WSO2 Inc. *
>>> http://wso2.com  <http://wso2.com/>
>>>
>>>
>>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | 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>*
>>>
>>
>>
>>
>> --
>> Rukshani Weerasinha
>>
>> WSO2 Inc.
>> Web:http://wso2.com
>> Mobile: 0777 683 738 <077%20768%203738>
>>
>>
>
>
> --
> Rukshani Weerasinha
>
> WSO2 Inc.
> Web:http://wso2.com
> Mobile: 0777 683 738 <077%20768%203738>
>
>


-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  <http://wso2.com/>


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Add info on docs how to create and deploy custom extensions/UDFs to WSO2 SP

2018-02-01 Thread Sriskandarajah Suhothayan
@Rukshani

Can you do $Subject? Refer Siddhi site for info[1]. We have to also say
how/where to deploy those jars too.
After the ongoing build, the info in [1] will be available in [2]

[1]
https://github.com/wso2/siddhi/blob/master/docs/documentation/siddhi-4.0.md#writing-custom-extensions
[2] https://wso2.github.io/siddhi/documentation/siddhi-4.0/#
writing-custom-extensions

Regards
Suho

-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][HA] Reason for using a receiver queue in HA mode

2018-01-31 Thread Sriskandarajah Suhothayan
On Wed, Jan 31, 2018 at 4:56 PM Nirmal Fernando <nir...@wso2.com> wrote:

> Suho,
>
> Thanks for the reply. What I am thinking is why we need a receiver queue,
> if we made DAS1->DAS2 async?
>
How will this fix the issue?

>
>
> On Wednesday, January 31, 2018, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> AFAIR the event queue is used for buffering the events when states are
>> being synced, else there will be back pressure on the clients.
>> I think the rationale for using the same thread with synchronous call and
>> performing operations in both DAS1 and DAS2 ( in the order DAS1 -> DAS2 ->
>> DAS2-Siddhi -> DAS1-Siddhi) is to make sure both nodes have processed the
>> same events at the same time.
>>
>> I think event processing can be made asynchronous, such that the DAS1's
>> threads send the event to DAS2 and then returns (DAS1 -> DAS2 -> DAS1), and
>> a separate thread pool can handle sending events into DAS2-Siddhi.
>> One possible option is depicted in the image attached.
>>
>> WDYT?
>>
>> On Wed, Jan 31, 2018 at 1:15 PM, Nirmal Fernando <nir...@wso2.com> wrote:
>>
>>> Thanks, Grainier. Please see my comments inline.
>>>
>>> On Wed, Jan 31, 2018 at 1:07 PM, Grainier Perera <grain...@wso2.com>
>>> wrote:
>>>
>>>> InputEventDispatcher will send the event to the callback immediately
>>>> while QueueInputEventDispatcher will queue events first and there will be
>>>> an internal worker (QueueInputEventDispatcherWorker) which send the events
>>>> to the callback.
>>>>
>>> The reason to accumulate events in a queue in HA is to be used for event
>>>> syncing. If the event duplicated in the cluster is set to false, then this
>>>> queue will be used for the event sync among other nodes in the HA
>>>> deployment.
>>>>
>>>
>>> Actually it's the same QueueInputEventDispatcherWorker which will do
>>> the event sync too, AFAIU. But why a queue? Is it because event sync is a
>>> synchronous operation (DAS1 -> DAS2 -> DAS2-Siddhi -> DAS1)? If so, then my
>>> next question is, why does the event sync has to be synchronous?
>>>
>>>
>>>> Regards,
>>>> Grainier
>>>>
>>>> On Wed, Jan 31, 2018 at 6:31 AM, Nirmal Fernando <nir...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> Can any of you remember the reason for using a receiver queue in HA
>>>>> mode?
>>>>>
>>>>> if (mode == Mode.HA) {
>>>>> HAConfiguration haConfiguration = 
>>>>> EventReceiverServiceValueHolder.getEventManagementService()
>>>>> .getManagementModeInfo().getHaConfiguration();
>>>>> Lock readLock = 
>>>>> EventReceiverServiceValueHolder.getCarbonEventReceiverManagementService().getReadLock();
>>>>> inputEventDispatcher = new QueueInputEventDispatcher(tenantId,
>>>>> EventManagementUtil.constructEventSyncId(tenantId,
>>>>> eventReceiverConfiguration.getEventReceiverName(), 
>>>>> Manager.ManagerType.Receiver),
>>>>> readLock, exportedStreamDefinition, 
>>>>> haConfiguration.getEventSyncReceiverMaxQueueSizeInMb(),
>>>>> haConfiguration.getEventSyncReceiverQueueSize());
>>>>> inputEventDispatcher.setSendToOther(!isEventDuplicatedInCluster);
>>>>> EventReceiverServiceValueHolder.getEventManagementService()
>>>>> .registerEventSync((EventSync) inputEventDispatcher, 
>>>>> Manager.ManagerType.Receiver);
>>>>> } else {
>>>>> inputEventDispatcher = new InputEventDispatcher();
>>>>> }
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Thanks & regards,
>>>>> Nirmal
>>>>>
>>>>> Technical Lead, WSO2 Inc.
>>>>> Mobile: +94715779733 <+94%2071%20577%209733>
>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Grainier Perera
>>>> Senior Software Engineer
>>>> Mobile : +94716122384 <+94%2071%20612%202384>
>>>> WSO2 Inc. | http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Technical Lead, WSO2 Inc.
>>> Mobile: +94715779733 <071%20577%209733>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Director
>> *WSO2 Inc. *
>> http://wso2.com  <http://wso2.com/>
>>
>>
>> *cell: (+94) 779 756 757 | 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>*
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Technical Lead, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
> --

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  <http://wso2.com/>


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][HA] Reason for using a receiver queue in HA mode

2018-01-31 Thread Sriskandarajah Suhothayan
AFAIR the event queue is used for buffering the events when states are
being synced, else there will be back pressure on the clients.
I think the rationale for using the same thread with synchronous call and
performing operations in both DAS1 and DAS2 ( in the order DAS1 -> DAS2 ->
DAS2-Siddhi -> DAS1-Siddhi) is to make sure both nodes have processed the
same events at the same time.

I think event processing can be made asynchronous, such that the DAS1's
threads send the event to DAS2 and then returns (DAS1 -> DAS2 -> DAS1), and
a separate thread pool can handle sending events into DAS2-Siddhi.
One possible option is depicted in the image attached.

WDYT?

On Wed, Jan 31, 2018 at 1:15 PM, Nirmal Fernando  wrote:

> Thanks, Grainier. Please see my comments inline.
>
> On Wed, Jan 31, 2018 at 1:07 PM, Grainier Perera 
> wrote:
>
>> InputEventDispatcher will send the event to the callback immediately
>> while QueueInputEventDispatcher will queue events first and there will be
>> an internal worker (QueueInputEventDispatcherWorker) which send the
>> events to the callback.
>>
> The reason to accumulate events in a queue in HA is to be used for event
>> syncing. If the event duplicated in the cluster is set to false, then this
>> queue will be used for the event sync among other nodes in the HA
>> deployment.
>>
>
> Actually it's the same QueueInputEventDispatcherWorker which will do the
> event sync too, AFAIU. But why a queue? Is it because event sync is a
> synchronous operation (DAS1 -> DAS2 -> DAS2-Siddhi -> DAS1)? If so, then my
> next question is, why does the event sync has to be synchronous?
>
>
>> Regards,
>> Grainier
>>
>> On Wed, Jan 31, 2018 at 6:31 AM, Nirmal Fernando  wrote:
>>
>>> Hi All,
>>>
>>> Can any of you remember the reason for using a receiver queue in HA mode?
>>>
>>> if (mode == Mode.HA) {
>>> HAConfiguration haConfiguration = 
>>> EventReceiverServiceValueHolder.getEventManagementService()
>>> .getManagementModeInfo().getHaConfiguration();
>>> Lock readLock = 
>>> EventReceiverServiceValueHolder.getCarbonEventReceiverManagementService().getReadLock();
>>> inputEventDispatcher = new QueueInputEventDispatcher(tenantId,
>>> EventManagementUtil.constructEventSyncId(tenantId,
>>> eventReceiverConfiguration.getEventReceiverName(), 
>>> Manager.ManagerType.Receiver),
>>> readLock, exportedStreamDefinition, 
>>> haConfiguration.getEventSyncReceiverMaxQueueSizeInMb(),
>>> haConfiguration.getEventSyncReceiverQueueSize());
>>> inputEventDispatcher.setSendToOther(!isEventDuplicatedInCluster);
>>> EventReceiverServiceValueHolder.getEventManagementService()
>>> .registerEventSync((EventSync) inputEventDispatcher, 
>>> Manager.ManagerType.Receiver);
>>> } else {
>>> inputEventDispatcher = new InputEventDispatcher();
>>> }
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Technical Lead, WSO2 Inc.
>>> Mobile: +94715779733 <+94%2071%20577%209733>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> Grainier Perera
>> Senior Software Engineer
>> Mobile : +94716122384 <+94%2071%20612%202384>
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Technical Lead, WSO2 Inc.
> Mobile: +94715779733 <071%20577%209733>
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] The location to find the jars for siddhi 4.0.0 extentions has not been properly mentioned in the docs

2018-01-30 Thread Sriskandarajah Suhothayan
Kalayarasi was working on that,
@Kalayarasi can you update the status of this?

On Wed, Jan 31, 2018 at 7:40 AM Minudika Malshan  wrote:

> Hi all,
>
> In the docs of the siddhi extensions[1][2], under how to use section[3],
> it points user to find the jar of the extension in github. But the those
> are not hosted in the github releases[4].
>
> The exact location to find those jars should be included in the docs
> (perhaps the maven repo url [5]). This is needed especially for GPL
> extensions.
>
> Also any plan to host siddhi 4.0.0 extensions in WSO2 Store[6]?
>
> [1] http://wso2.github.io/siddhi/extensions/
> [2] https://wso2-extensions.github.io/siddhi-gpl-execution-pmml
> [3]
> https://wso2-extensions.github.io/siddhi-gpl-execution-pmml/#how-to-use
> [4] https://github.com/wso2-extensions/siddhi-gpl-execution-pmml/releases
> [5]
> https://mvnrepository.com/artifact/org.wso2.extension.siddhi.gpl.execution.pmml/siddhi-gpl-execution-pmml
> [6] https://store.wso2.com/store/assets/analyticsextension/list
>
> Thanks and regards!
>
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887
> Web :  http://wso2.com
>
>  
>
-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot find the Doc Site for siddhi-map-csv

2018-01-29 Thread Sriskandarajah Suhothayan
Why this does not use Siddhi theme like other extensions?

On Thu, Jan 25, 2018 at 11:09 AM Kalaiyarasi Ganeshalingam <
kalaiyar...@wso2.com> wrote:

>
> Thanks Maheshika. I will check.
>
> Kalaiyarasi Ganeshalingam
> Associate Software Engineer| WSO2
> WSO2 Inc : http://wso2.org
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
> Tel:+94 076 6792895
> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>
> On Wed, Jan 24, 2018 at 11:05 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Kalaiyarasi
>>
>> I add the /docs to gh-pages. Please check.
>>
>> On Wed, Jan 24, 2018 at 9:26 PM, Kalaiyarasi Ganeshalingam <
>> kalaiyar...@wso2.com> wrote:
>>
>>> + Maheshika.
>>>
>>> Kalaiyarasi Ganeshalingam
>>> Associate Software Engineer| WSO2
>>> WSO2 Inc : http://wso2.org
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>>>
>>> On Wed, Jan 24, 2018 at 9:06 PM, Kalaiyarasi Ganeshalingam <
>>> kalaiyar...@wso2.com> wrote:
>>>
>>>> Hi Mahesika,
>>>>
>>>> Can you generate the gh-page branch for the repo[1].
>>>>
>>>> [1] https://github.com/wso2-extensions/siddhi-map-csv
>>>>
>>>> Regards,
>>>> Kalai
>>>>
>>>> Kalaiyarasi Ganeshalingam
>>>> Associate Software Engineer| WSO2
>>>> WSO2 Inc : http://wso2.org
>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>> <http://kalai4.blogspot.com/>
>>>>
>>>> On Wed, Jan 24, 2018 at 9:00 PM, Kalaiyarasi Ganeshalingam <
>>>> kalaiyar...@wso2.com> wrote:
>>>>
>>>>> Noted.
>>>>>
>>>>> Kalaiyarasi Ganeshalingam
>>>>> Associate Software Engineer| WSO2
>>>>> WSO2 Inc : http://wso2.org
>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>> <http://kalai4.blogspot.com/>
>>>>>
>>>>> On Wed, Jan 24, 2018 at 9:27 AM, Sriskandarajah Suhothayan <
>>>>> s...@wso2.com> wrote:
>>>>>
>>>>>> Hi Kalaiyarasi
>>>>>>
>>>>>> Can you make sure the necessary things are done for the doc site
>>>>>> too[1]?
>>>>>> Then the feature will be done done.
>>>>>>
>>>>>> [1]https://wso2-extensions.github.io/siddhi-map-csv/
>>>>>>
>>>>>> Regards
>>>>>> Suho
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *S. Suhothayan*
>>>>>> Director
>>>>>> *WSO2 Inc. *
>>>>>> http://wso2.com  <http://wso2.com/>
>>>>>>
>>>>>>
>>>>>> *cell: (+94) 779 756 757 <077%20975%206757> | 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>*
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>> --
>>
>> Thanks & Best Regards,
>>
>> Maheshika Goonetilleke
>> Senior Engineering Process Coordinator
>>
>> *WSO2 Inc*
>> *email   : mahesh...@wso2.com <mahesh...@wso2.com>*
>> *mobile : +94 773 596707 <+94%2077%20359%206707>*
>> *www: :http://wso2.com <http://wso2.com/>*lean . enterprise . middleware
>>
>>
>>
>>
>>
> --

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  <http://wso2.com/>


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Docs for how to create Siddhi Extensions using Maven Archetypes

2018-01-28 Thread Sriskandarajah Suhothayan
Can you also send a PR to siddhi docs with how to create information. This
also need to be referred from the WSO2 docs

On Mon, Jan 29, 2018 at 9:48 AM Nisala Nanayakkara <nis...@wso2.com> wrote:

> Hi,
>
> I have tested the siddhi maven archetypes and released the repository.
> Sorry for the delay in updating the mail thread. The initial update mail
> was not sent due to some connection issue. I just realized it. Sorry again
> for the inconvenience. Please find the released version here[1].
>
> [1] -
> https://github.com/wso2-extensions/siddhi-maven-archetype/releases/tag/v1.0.1
>
> Thanks,
> Nisala
>
> On Thu, Jan 11, 2018 at 12:41 PM, Nisala Nanayakkara <nis...@wso2.com>
> wrote:
>
>> Hi Mohan,
>>
>> Yes. I will look into this.
>>
>> Thanks,
>> Nisala
>>
>> On Thu, Jan 11, 2018 at 12:35 PM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>>
>>>
>>> On Thu, Jan 11, 2018 at 12:15 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
>>>>
>>>>
>>>> On Thu, Jan 11, 2018 at 12:14 PM, Sriskandarajah Suhothayan <
>>>> s...@wso2.com> wrote:
>>>>
>>>>> @mohan
>>>>> Shall we get a person to create sample extensions and validate this
>>>>> against SP-4.0
>>>>> and then release these archetypes?
>>>>>
>>>>
>>>>
>>>>
>>> @Nisala, can you please take this ?
>>>
>>> Thanks.
>>> Mohan
>>>
>>>
>>>>
>>>>
>>>>>
>>>>> Regards
>>>>> Suho
>>>>>
>>>>> On Thu, Jan 11, 2018 at 10:06 AM, Kalaiyarasi Ganeshalingam <
>>>>> kalaiyar...@wso2.com> wrote:
>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> Kalaiyarasi Ganeshalingam
>>>>>> Associate Software Engineer| WSO2
>>>>>> WSO2 Inc : http://wso2.org
>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>> Tel:+94 076 6792895 <076%20679%202895>
>>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>>> <http://kalai4.blogspot.com/>
>>>>>>
>>>>>> On Thu, Jan 11, 2018 at 10:04 AM, Mohanadarshan Vivekanandalingam <
>>>>>> mo...@wso2.com> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Jan 11, 2018 at 9:58 AM, Kalaiyarasi Ganeshalingam <
>>>>>>> kalaiyar...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> Please find the PR [1] for this.
>>>>>>>>
>>>>>>>> [1]
>>>>>>>> https://github.com/wso2-extensions/siddhi-maven-acrchetype/pull/2
>>>>>>>>
>>>>>>>
>>>>>>> merged. Thanks.
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>>
>>>>>>>> Kalaiyarasi Ganeshalingam
>>>>>>>> Associate Software Engineer| WSO2
>>>>>>>> WSO2 Inc : http://wso2.org
>>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>>>>> <http://kalai4.blogspot.com/>
>>>>>>>>
>>>>>>>> On Wed, Jan 10, 2018 at 6:25 PM, Kalaiyarasi Ganeshalingam <
>>>>>>>> kalaiyar...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Mohanadarshan,
>>>>>>>>>
>>>>>>>>> Yeah, currently I am working on this. Once I have done this, I'll
>>>>>>>>> update the thread.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>>
>>>>>>>>> Kalaiyarasi Ganeshalingam
>>>>>>

[Dev] Cannot find the Doc Site for siddhi-map-csv

2018-01-23 Thread Sriskandarajah Suhothayan
Hi Kalaiyarasi

Can you make sure the necessary things are done for the doc site too[1]?
Then the feature will be done done.

[1]https://wso2-extensions.github.io/siddhi-map-csv/

Regards
Suho

-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  


*cell: (+94) 779 756 757 <077%20975%206757> | blog:
http://suhothayan.blogspot.com/ twitter:
http://twitter.com/suhothayan  | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Docs for how to create Siddhi Extensions using Maven Archetypes

2018-01-10 Thread Sriskandarajah Suhothayan
@mohan
Shall we get a person to create sample extensions and validate this against
SP-4.0
and then release these archetypes?

Regards
Suho

On Thu, Jan 11, 2018 at 10:06 AM, Kalaiyarasi Ganeshalingam <
kalaiyar...@wso2.com> wrote:

> Thanks.
>
> Kalaiyarasi Ganeshalingam
> Associate Software Engineer| WSO2
> WSO2 Inc : http://wso2.org
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
> Tel:+94 076 6792895 <076%20679%202895>
> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>
> On Thu, Jan 11, 2018 at 10:04 AM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>>
>>
>> On Thu, Jan 11, 2018 at 9:58 AM, Kalaiyarasi Ganeshalingam <
>> kalaiyar...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> Please find the PR [1] for this.
>>>
>>> [1] https://github.com/wso2-extensions/siddhi-maven-acrchetype/pull/2
>>>
>>
>> merged. Thanks.
>>
>>
>>>
>>> Regards,
>>>
>>> Kalaiyarasi Ganeshalingam
>>> Associate Software Engineer| WSO2
>>> WSO2 Inc : http://wso2.org
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>>>
>>> On Wed, Jan 10, 2018 at 6:25 PM, Kalaiyarasi Ganeshalingam <
>>> kalaiyar...@wso2.com> wrote:
>>>
>>>> Hi Mohanadarshan,
>>>>
>>>> Yeah, currently I am working on this. Once I have done this, I'll
>>>> update the thread.
>>>>
>>>> Regards,
>>>>
>>>> Kalaiyarasi Ganeshalingam
>>>> Associate Software Engineer| WSO2
>>>> WSO2 Inc : http://wso2.org
>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>> <http://kalai4.blogspot.com/>
>>>>
>>>> On Wed, Jan 10, 2018 at 6:17 PM, Mohanadarshan Vivekanandalingam <
>>>> mo...@wso2.com> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Wed, Jan 10, 2018 at 6:17 PM, Mohanadarshan Vivekanandalingam <
>>>>> mo...@wso2.com> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Jan 10, 2018 at 5:30 PM, Kalaiyarasi Ganeshalingam <
>>>>>> kalaiyar...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Suho,
>>>>>>>
>>>>>>> Please find the docs [1] for how to create Siddhi Extensions using
>>>>>>> Maven archetypes.
>>>>>>>
>>>>>>> [1] https://github.com/wso2-extensions/siddhi-maven-acrchety
>>>>>>> pe/blob/master/siddhi-extension-archetype/setup.txt
>>>>>>>
>>>>>>
>>>>>> @Kalaiyarasi, IMO above should come to our official documentation as
>>>>>> well. Again, better to add above information which is available in
>>>>>> setup.txt to the readme file rather having a separate file.
>>>>>>
>>>>>> Thanks,
>>>>>> Mohan
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Kalaiyarasi Ganeshalingam
>>>>>>> Associate Software Engineer| WSO2
>>>>>>> WSO2 Inc : http://wso2.org
>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>>>>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>>>>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>>>>> <http://kalai4.blogspot.com/>
>>>>>>>
>>>>>>> On Wed, Jan 10, 2018 at 5:18 PM, Sriskandarajah Suhothayan <
>>>>>>> s...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Kalaiyarasi
>>>>>>>>
>>>

[Dev] Docs for how to create Siddhi Extensions using Maven Archetypes

2018-01-10 Thread Sriskandarajah Suhothayan
Hi Kalaiyarasi

Where can I find $Subject?

Regards
Suho

-- 

*S. Suhothayan*
Director
*WSO2 Inc. *
http://wso2.com  


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Vote] Release WSO2 Stream Processor (SP) 4.0.0-RC3

2017-12-22 Thread Sriskandarajah Suhothayan
Tested the editor, event simulation, dashboard creation, widget generation.

Suho


On Fri, Dec 22, 2017 at 9:24 PM, Gokul Balakrishnan  wrote:

> Hi Devs,
>
> This is the third release candidate (RC) of WSO2 Stream Processor 4.0.0
> release.
>
> New / Improvements In This Release after RC2
>
>- Bug fixes in editor and the RDBMS store
>- UI Improvements
>
> Reported Issues
>
>- https://github.com/wso2/product-sp/issues
>
> Source and distribution packages:
>
>- https://github.com/wso2/product-sp/releases/tag/v4.0.0-RC3
>
> Tag to be voted upon:
>
>- https://github.com/wso2/product-sp/releases/tag/v4.0.0-RC3
>
> Please download, test, and vote. The README file under the distribution
> contains guide and instructions on how to try it out locally.
>
> [+] Stable - Go ahead and release
> [-] Broken - Do not release (explain why)
>
> This vote will be open for 72 hours or as needed.
>
> Regards,
> The WSO2 Analytics Team.
>
> --
> Gokul Balakrishnan
> Senior Software Engineer,
> WSO2, Inc. http://wso2.com
> M +94 77 5935 789 | +44 7563 570502 <+44%207563%20570502>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 Stream Processor 4.0.0 RC2

2017-12-21 Thread Sriskandarajah Suhothayan
Hi Chandana,

We couldn’t reproduce this in windows 10 and 7. Can you please give us more
information about the environment, and also pleas make sure the pack you
have downloaded is not corrupted.

Thanks

On Fri, Dec 22, 2017 at 9:49 AM Chandana Napagoda 
wrote:

> Hi Eranga,
>
> I tested above without having the snappy jar.
>
> Regards,
> Chandana
>
> On 22 December 2017 at 14:40, Eranga Liyanage  wrote:
>
>> Hi Chandana,
>>
>> Could you please test without snappy.
>>
>> Best regards,
>> Eranga.
>>
>> On 22 Dec 2017 9:20 am, "Rukshani Weerasinha"  wrote:
>>
>>> Hello Chandana,
>>>
>>> The team mentioned that we do not need Snappy Java for SP. Therefore, I
>>> removed the section to install and add it.
>>>
>>> Best Regards,
>>> Rukshani.
>>>
>>> On Fri, Dec 22, 2017 at 9:09 AM, Rukshani Weerasinha 
>>> wrote:
>>>
 Hello Chandana,

 I will check with the team where this jar should be copied and update
 the instructions accordingly. Thank you for pointing it out.

 Best Regards,
 Rukshani.

 On Fri, Dec 22, 2017 at 8:44 AM, Chandana Napagoda  wrote:

>
>
> On 22 December 2017 at 13:30, Rukshani Weerasinha 
> wrote:
>
>> Hi Chandana,
>>
>> Instructions to install and set up Snappy Java is there in the page
>> [1] you shared under sub-heading *Installing and setting up
>> snappy-java*.
>>
>
> I can't find any folder called "repository" under the (*Copy
> the jar to \repository\components\lib*)
>
>
>> Best Regards,
>> Rukshani.
>>
>> On Fri, Dec 22, 2017 at 8:14 AM, Chandana Napagoda <
>> cnapag...@gmail.com> wrote:
>>
>>> -1, Unable to start  Stream Processor Studio in the windows
>>> machine[1][2]. It was hanging on the below step for more than 20 
>>> minutes.
>>>
>>> Also, it seems "Installing on Windows"[1] doc is outdated, I can't
>>> find any place to copy snappy-java jar file.
>>>
>>>
>>> ​
>>>
>>> [1]. https://docs.wso2.com/display/SP400/Installing+on+Windows
>>> [2]. https://docs.wso2.com/display/SP400/Running+the+Product
>>>
>>> Regards,
>>> Chandana
>>>
>>> On 22 December 2017 at 09:59, SajithAR Ariyarathna <
>>> sajit...@wso2.com> wrote:
>>>
 Hi Devs,

 We are pleased to announce the release candidate of WSO2 Stream
 Processor 4.0.0.

 This is the Release Candidate version 2 of the WSO2 Stream
 Processor 4.0.0

 Please download, test the product and vote. Vote will be open for
 72 hours or as needed.

 Known issues: https://github.com/wso2/product-sp/issues

 Source and binary distribution files:
 https://github.com/wso2/product-sp/releases/tag/v4.0.0-RC2

 The tag to be voted upon:
 https://github.com/wso2/product-sp/tree/v4.0.0-RC2

 Please vote as follows.
 [+] Stable - go ahead and release
 [-] Broken - do not release (explain why)

 ~ The WSO2 Analytics Team ~
 Thanks.

 --
 Sajith Janaprasad Ariyarathna
 Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
 

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>>
>>> Blog: http://blog.napagoda.com
>>> Linkedin: https://www.linkedin.com/in/chandananapagoda/
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshani Weerasinha
>>
>> WSO2 Inc.
>> Web:http://wso2.com
>> Mobile: 0777 683 738
>>
>>
>
>
> --
>
> Blog: http://blog.napagoda.com
> Linkedin: https://www.linkedin.com/in/chandananapagoda/
>
>


 --
 Rukshani Weerasinha

 WSO2 Inc.
 Web:http://wso2.com
 Mobile: 0777 683 738


>>>
>>>
>>> --
>>> Rukshani Weerasinha
>>>
>>> WSO2 Inc.
>>> Web:http://wso2.com
>>> Mobile: 0777 683 738
>>>
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>
>
> --
>
> Blog: http://blog.napagoda.com
> Linkedin: https://www.linkedin.com/in/chandananapagoda/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise 

Re: [Dev] Stream Processor Editor - Removing .siddhi file extension from showing on the ui

2017-12-16 Thread Sriskandarajah Suhothayan
Ok great

On Sun, Dec 17, 2017 at 11:45 AM, Damith Wickramasinghe <dami...@wso2.com>
wrote:

> @Suho yes this is fixed.
>
>
> Regards,
> Damith
>
> On Sun, Dec 17, 2017 at 9:40 AM, Eranga Liyanage <eran...@wso2.com> wrote:
>
>> Damith has already fixed this Suho.
>>
>> Best regards
>> Eranga
>>
>> On Sun, Dec 17, 2017 at 9:27 AM, Sriskandarajah Suhothayan <s...@wso2.com
>> > wrote:
>>
>>> Can we get it fixed ASAP.
>>>
>>> Regards
>>> Suho
>>>
>>> On Thu, Dec 14, 2017 at 2:03 AM Damith Wickramasinghe <dami...@wso2.com>
>>> wrote:
>>>
>>>> @Grainier . Thanks for pointing it out . yes we need to use the
>>>> substring method. we have use the same split in other areas. we need to fix
>>>> this.
>>>>
>>>> Regards,
>>>> Damith
>>>>
>>>> On Thu, Dec 14, 2017 at 1:54 AM, Grainier Perera <grain...@wso2.com>
>>>> wrote:
>>>>
>>>>> @Raveen, You have used to text.split(".")[0] to to remove .siddhi
>>>>> postfix right. But Siddhi allows having full stop ".", and ".siddhi" in 
>>>>> the
>>>>> Siddhi App name. So this might not work... Try something like
>>>>> text.substring(0, text.lastIndexOf(".siddhi"))
>>>>>
>>>>> @Others, please check whether the editor works properly when the App
>>>>> name have "." or ".siddhi" within. Cause I tried "Receive.And.Count" as 
>>>>> the
>>>>> name and the editor log gave me "Receive.siddhi - undefined".
>>>>>
>>>>> Thanks,
>>>>> Grainier
>>>>>
>>>>> On Mon, Dec 11, 2017 at 9:20 AM, Raveen Rathnayake <rav...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I have removed  displaying ".siddhi" clause from the tab and removed
>>>>>> the ".siddhi" postfix from ".siddhi" in save to file placeholder as
>>>>>> well.  This PR[1] relevant changes.
>>>>>>
>>>>>> [1] https://github.com/wso2/carbon-analytics/pull/849
>>>>>>
>>>>>> Thank you.
>>>>>> Raveen.
>>>>>>
>>>>>> On Sat, Dec 9, 2017 at 11:53 PM, Damith Wickramasinghe <
>>>>>> dami...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> Yes +1 . I will inc-operate the changes .
>>>>>>>
>>>>>>> Regards,
>>>>>>> Damith
>>>>>>>
>>>>>>> On Fri, Dec 8, 2017 at 6:57 PM, Ramindu De Silva <ramin...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> +1 for Erangas suggestion.
>>>>>>>> We may need to remove the ".siddhi" postfix from ".siddhi" in
>>>>>>>> save to file placeholder as well. Currently, we, either way, add 
>>>>>>>> .siddhi
>>>>>>>> extension when saving the file.
>>>>>>>>
>>>>>>>> Best Regards,
>>>>>>>> Ramindu.
>>>>>>>>
>>>>>>>> On Fri, Dec 8, 2017 at 11:16 AM, Eranga Liyanage <eran...@wso2.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi All,
>>>>>>>>>
>>>>>>>>> Yes, we can show the .siddhi extension on workspace tree.
>>>>>>>>>
>>>>>>>>> Users first interaction with the file is either Save, Open, or
>>>>>>>>> Import. On those interfaces also we show that it's a .siddhi
>>>>>>>>> extension file, so users won't get confused by removing it from the 
>>>>>>>>> tab.
>>>>>>>>>
>>>>>>>>> Best regards.
>>>>>>>>> Eranga
>>>>>>>>>
>>>>>>>>> On Fri, Dec 8, 2017 at 7:18 AM, Jason De Silva <jas...@wso2.com>
>>>>>>>>> wrote:
>>>>>>>>>
>

Re: [Dev] Stream Processor Editor - Removing .siddhi file extension from showing on the ui

2017-12-16 Thread Sriskandarajah Suhothayan
Can we get it fixed ASAP.

Regards
Suho

On Thu, Dec 14, 2017 at 2:03 AM Damith Wickramasinghe 
wrote:

> @Grainier . Thanks for pointing it out . yes we need to use the substring
> method. we have use the same split in other areas. we need to fix this.
>
> Regards,
> Damith
>
> On Thu, Dec 14, 2017 at 1:54 AM, Grainier Perera 
> wrote:
>
>> @Raveen, You have used to text.split(".")[0] to to remove .siddhi
>> postfix right. But Siddhi allows having full stop ".", and ".siddhi" in the
>> Siddhi App name. So this might not work... Try something like 
>> text.substring(0,
>> text.lastIndexOf(".siddhi"))
>>
>> @Others, please check whether the editor works properly when the App name
>> have "." or ".siddhi" within. Cause I tried "Receive.And.Count" as the name
>> and the editor log gave me "Receive.siddhi - undefined".
>>
>> Thanks,
>> Grainier
>>
>> On Mon, Dec 11, 2017 at 9:20 AM, Raveen Rathnayake 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have removed  displaying ".siddhi" clause from the tab and removed
>>> the ".siddhi" postfix from ".siddhi" in save to file placeholder as
>>> well.  This PR[1] relevant changes.
>>>
>>> [1] https://github.com/wso2/carbon-analytics/pull/849
>>>
>>> Thank you.
>>> Raveen.
>>>
>>> On Sat, Dec 9, 2017 at 11:53 PM, Damith Wickramasinghe >> > wrote:
>>>
 Hi All,

 Yes +1 . I will inc-operate the changes .

 Regards,
 Damith

 On Fri, Dec 8, 2017 at 6:57 PM, Ramindu De Silva 
 wrote:

> Hi all,
>
> +1 for Erangas suggestion.
> We may need to remove the ".siddhi" postfix from ".siddhi" in save
> to file placeholder as well. Currently, we, either way, add .siddhi
> extension when saving the file.
>
> Best Regards,
> Ramindu.
>
> On Fri, Dec 8, 2017 at 11:16 AM, Eranga Liyanage 
> wrote:
>
>> Hi All,
>>
>> Yes, we can show the .siddhi extension on workspace tree.
>>
>> Users first interaction with the file is either Save, Open, or
>> Import. On those interfaces also we show that it's a .siddhi
>> extension file, so users won't get confused by removing it from the tab.
>>
>> Best regards.
>> Eranga
>>
>> On Fri, Dec 8, 2017 at 7:18 AM, Jason De Silva 
>> wrote:
>>
>>> Hi Damith / Eranga,
>>>
>>> If I am the user I would like to know the extension of the file. So
>>> +1 to at least show the .siddhi extension in workspace tree/dropdown if 
>>> we
>>> are removing it from the tabs.
>>>
>>> Regards,
>>> Jason
>>>
>>> Jason De Silva
>>> *Software Engineer - QA*
>>> Mobile: +94 (0) 772 097 678
>>> Email: jas...@wso2.com
>>> WSO2 Inc. www.wso2.com
>>> 
>>>
>>> On Fri, Dec 8, 2017 at 6:19 AM, Damith Wickramasinghe <
>>> dami...@wso2.com> wrote:
>>>
 Hi Eranga,

 I understand your point but my only issue is not conveying user
 that these files use .siddhi extension. So shall we at least keep the
 .siddhi extension in workspace dropdown as we are showing the actual 
 files
 there. So that user knows it. And we can remove the .siddhi extensions 
 in
 tabs. WDYT ?

 Regards,
 Damith

 On Thu, Dec 7, 2017 at 11:42 AM, Eranga Liyanage 
 wrote:

> Hi Damith,
>
> In editors usually, we can edit multiple file types. So when the
> respective file is opened it shows the file type with it for easy
> identification.
>
> But in our case, we support only .siddhi files and we open files
> from our own workspace which contains only siddhi files. Many single 
> file
> type applications usually do not show its file type on UI.
>
> In the Stream Processor Editor, we usually open multiple siddhi
> files and in the tab area, it takes unnecessary space to show the 
> .siddhi
> extension. IMHO it's better to hide it from tab section.
>
> [image: Inline image 1]
>
> We can show the .siddhi extension on workspace tree and other file
> open/import etc. modals.
>
> WDYT?
>
> Best regards,
> Eranga
>
>
> On Thu, Dec 7, 2017 at 8:48 AM, Damith Wickramasinghe <
> dami...@wso2.com> wrote:
>
>> Hi Eranga/ All,
>>
>> In stream processor we support only files with .siddhi extension.
>> Even though it is the case IMO user needs to know that the file 
>> should have
>> .siddhi extension. Because one can just copy paste a file to 
>> workspace
>> directory of editor without adding the .siddhi extension when 

Re: [Dev] [SP][Windows] Error during startup

2017-11-24 Thread Sriskandarajah Suhothayan
@Gokul also please test and verity whether it fixes in SP.

On Fri, Nov 24, 2017 at 7:54 PM, Danesh Kuruppu  wrote:

> Hi Gokul,
>
> This Issue is fixed with PR[1]. Can you please test with new changes.
> @Kishanthan/Nira/Jayanga, please review and merge
>
> 1. https://github.com/wso2/carbon-config/pull/62
>
> Thanks
> Danesh
>
> On Fri, Nov 24, 2017 at 5:19 AM, Gokul Balakrishnan 
> wrote:
>
>> Hi,
>>
>> We're seeing the following error while starting up Stream Processor
>> Alpha2/3 in Windows. The main reason appears to be the server failing to
>> resolve the ${sys:carbon.home} properties in deployment.yaml:
>>
>> Bad pathname"; "E:wso2sp-4.0.0-Alpha3-SNAPSHOTbin../wso2/editor/database/
>> WSO2_CARBON_DB.mv.db"
>>
>> As you can see, the path delimiter ("\") is missing between the drive and
>> the initial path elements.
>>
>> Opened [1] to track this issue. Could you please take a look since this
>> is critical for us?
>>
>> [1] https://github.com/wso2/carbon-kernel/issues/1615
>>
>> Thanks,
>>
>> --
>> Gokul Balakrishnan
>> Senior Software Engineer,
>> WSO2, Inc. http://wso2.com
>> M +94 77 5935 789 | +44 7563 570502 <+44%207563%20570502>
>>
>>
>
>
> --
>
> *Danesh Kuruppu*
> Senior Software Engineer | WSO2
>
> Email: dan...@wso2.com
> Mobile: +94 (77) 1690552 <077%20169%200552>
> Web: WSO2 Inc 
>
>


-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] TensorFlow Stream Processor Extension

2017-11-10 Thread Sriskandarajah Suhothayan
Can we agree on a conversion on naming the output.
Please share what you have decided so far.

Regards
Suho

On Fri, Nov 10, 2017 at 6:48 AM Niruhan Viswarupan <niru...@wso2.com> wrote:

> I could get the extension to make predictions from the KMeans saved model
> I prepared. Please find the extension here
> <https://github.com/niruhan/siddhi-execution-streamingml/tree/master/component/src/main/java/org/wso2/extension/siddhi/execution/streamingml/tensorflow>
>  and
> the test case here
> <https://github.com/niruhan/siddhi-execution-streamingml/blob/master/component/src/test/java/org/wso2/extension/siddhi/execution/streamingml/tensorflow/TensorFlowSPExtensionTest.java>
>
> Regards,
>
>
> *Niruhan Viswarupan*
> Engineering Intern | WSO2
> Phone: +94776468013
>
> On Fri, Nov 10, 2017 at 10:42 AM, Niruhan Viswarupan <niru...@wso2.com>
> wrote:
>
>> [-Analytics-group, -engineering-group, + dev]
>>
>> The output tensor can be a single scalar value or a multidimensional
>> array. It totally *depends on the model* and how its output is
>> configured.
>>
>> For example,
>>
>>1. if we have a model for classification and its prediction is
>>configured to send a string of the class name then we will get a *scalar
>>(A Tensor of 0 dimension)* string tensor.
>>2. If we have a clustering model it can output the coordinates of the
>>closest centroid as a tensor which can be a *vector (A tensor of 1
>>dimension) *with any length (For example vector length will be 2 in
>>the case of Cartesian plane, 3 in the case of 3D coordinate system etc).
>>
>> *(Note:* The above examples have only a few values in output Tensors.
>> But it is possible for someone to build a TensorFlow model that sends out a
>> Tensor with thousands of dimensions and thousands of length per dimension.)
>>
>> *Terminology:*
>> eg. Consider a 3x4 *matrix (a tensor of 2 dimensions)* as below,
>>
>> 1 2 3 4
>> 5 6 7 8
>> 9 1 2 3
>> This has 2 dimensions and length of 1st dimension is 3 and the 2nd
>> dimension is 4.
>>
>> Also *problems identified in sending out multidimensional arrays in the
>> output stream* are,
>>
>>1. Its a *challenge to create primitive type multidimensional arrays*
>>(This is the type supported by Tensors copying method) whose *dimensions
>>are unknown at compile time* in Java (I welcome any suggestion as to
>>how this could be done)
>>2. As pointed out by Tishan *other extensions of Siddhi are not
>>configured to handle arrays*. So cannot process the output arrays of
>>this extension further in Siddhi
>>
>> Considering the above issues we decided to flatten the Tensor and send
>> all the values in a tensor one by one in primitive type. *In most cases
>> output Tensor will have a small number of values*.
>>
>> Regards,
>>
>> *Niruhan Viswarupan*
>> Engineering Intern | WSO2
>> Phone: +94776468013 <+94%2077%20646%208013>
>>
>> On Thu, Nov 9, 2017 at 11:41 PM, Sriskandarajah Suhothayan <s...@wso2.com
>> > wrote:
>>
>>> Does Tensor always output multidimensional array or only for some cases?
>>> If it returns a multidimensional array what sort of processing the user
>>> should be doing to get sense out of it?
>>>
>>> My doubt is having a way to send multidimensional array out will solve
>>> the user's problem.
>>>
>>> Regards
>>> Suho
>>>
>>> On Thu, Nov 9, 2017 at 8:45 AM, Niruhan Viswarupan <niru...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> This is regarding supporting predictions from TensorFlow saved models
>>>> using stream processor.
>>>>
>>>> The *predictions (outputs) from a TensorFlow model in Java API will be
>>>> a Tensor
>>>> <https://www.tensorflow.org/api_docs/java/reference/org/tensorflow/Tensor>
>>>> object*. This can have any number of dimensions and any shape. This
>>>> means that *we will not know the shape of the output multidimensional
>>>> array in the compile time*. This will only come to light in the run
>>>> time when the user input model is loaded. I was stuck with creating
>>>> multidimensional arrays of run time specified shape. It is solvable for
>>>> object arrays since they can be recursively built. But the copyTo()
>>>> <https://www.tensorflow.org/api_docs/java/reference/org/tensorflow/Tensor.html#copyTo(U)>
>>>>  

[Dev] [SP]Incremental processing not working with SP + RDBMS

2017-11-01 Thread Sriskandarajah Suhothayan
Hi Charini

Please look into this.

The attached Siddhi file is not compiling with RDBMS Aggregation.

Thanks
Suho

-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *


Sweet-Factory-Analytics-Usecase-3.siddhi
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unit test for siddhi-io-jms

2017-10-24 Thread Sriskandarajah Suhothayan
Then please change the code accept ByteBuffer and we don't need to support
byte[]

Regards
Suho

On Tue, Oct 24, 2017 at 4:42 PM, Kalaiyarasi Ganeshalingam <
kalaiyar...@wso2.com> wrote:

> Hi,
>
> I tried with the binary mapper, But in the BinarySinkMapper,
> getOutputEventClasses() [1] method returns ByteBuffer.class. So is it
> possible to  to convert Siddhi events to byte[] ?
> [1]https://github.com/wso2-extensions/siddhi-map-binary/
> blob/master/component/src/main/java/org/wso2/extension/
> siddhi/map/binary/sinkmapper/BinarySinkMapper.java#L76
>
> Regards,
>
> Kalaiyarasi Ganeshalingam
> Associate Software Engineer| WSO2
> WSO2 Inc : http://wso2.org
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
> Tel:+94 076 6792895 <076%20679%202895>
> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>
> On Tue, Oct 24, 2017 at 1:43 PM, Kalaiyarasi Ganeshalingam <
> kalaiyar...@wso2.com> wrote:
>
>> Hi,
>>
>> Ok. I will work on this.
>>
>> Regards,
>>
>> Kalaiyarasi Ganeshalingam
>> Associate Software Engineer| WSO2
>> WSO2 Inc : http://wso2.org
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>> Tel:+94 076 6792895 <+94%2076%20679%202895>
>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>> Blogs : https://kalaiyarasig.blogspot.com/ <http://kalai4.blogspot.com/>
>>
>> On Tue, Oct 24, 2017 at 11:10 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> First, there should be a way of sending byte[] via JMS broker.
>>> Then we can use the binary mapper to convert Siddhi events to byte[] and
>>> send that to JMS broker via JMSPublisher.java.
>>>
>>> Please let me know if this did not work.
>>>
>>> On Tue, Oct 24, 2017 at 10:58 AM, Kalaiyarasi Ganeshalingam <
>>> kalaiyar...@wso2.com> wrote:
>>>
>>>> Hi all,
>>>>  Currently I'm working on the unit testing for siddhi-io-jms.In the
>>>> handleCarbonMessage(Object payload)[1] method, I tried to write the test
>>>> case for payload instanceof Byte[] [2] condition.Can you give an idea to
>>>> solve this issue?
>>>> [1] https://github.com/wso2-extensions/siddhi-io-
>>>> jms/blob/master/component/src/main/java/org/wso2/extension/s
>>>> iddhi/io/jms/sink/JMSPublisher.java#L65
>>>> [2] https://github.com/wso2-extensions/siddhi-io-jms/blob/master
>>>> /component/src/main/java/org/wso2/extension/siddhi/io/jms/si
>>>> nk/JMSPublisher.java#L76
>>>>
>>>> Regards,
>>>> Kalaiyarasi Ganeshalingam
>>>> Associate Software Engineer| WSO2
>>>> WSO2 Inc : http://wso2.org
>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org=D=1=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>>>> Tel:+94 076 6792895 <076%20679%202895>
>>>> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
>>>> Blogs : https://kalaiyarasig.blogspot.com/
>>>> <http://kalai4.blogspot.com/>
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *S. Suhothayan*
>>> Associate Director / Architect
>>> *WSO2 Inc. *http://wso2.com
>>> * <http://wso2.com/>*
>>> lean . enterprise . middleware
>>>
>>>
>>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | 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>*
>>>
>>
>>
>


-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* <http://wso2.com/>*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unit test for siddhi-io-jms

2017-10-23 Thread Sriskandarajah Suhothayan
First, there should be a way of sending byte[] via JMS broker.
Then we can use the binary mapper to convert Siddhi events to byte[] and
send that to JMS broker via JMSPublisher.java.

Please let me know if this did not work.

On Tue, Oct 24, 2017 at 10:58 AM, Kalaiyarasi Ganeshalingam <
kalaiyar...@wso2.com> wrote:

> Hi all,
>  Currently I'm working on the unit testing for siddhi-io-jms.In the
> handleCarbonMessage(Object payload)[1] method, I tried to write the test
> case for payload instanceof Byte[] [2] condition.Can you give an idea to
> solve this issue?
> [1] https://github.com/wso2-extensions/siddhi-io-
> jms/blob/master/component/src/main/java/org/wso2/extension/
> siddhi/io/jms/sink/JMSPublisher.java#L65
> [2] https://github.com/wso2-extensions/siddhi-io-jms/blob/
> master/component/src/main/java/org/wso2/extension/siddhi/io/jms/sink/
> JMSPublisher.java#L76
>
> Regards,
> Kalaiyarasi Ganeshalingam
> Associate Software Engineer| WSO2
> WSO2 Inc : http://wso2.org
> 
> Tel:+94 076 6792895 <076%20679%202895>
> LinkedIn :www.linkedin.com/in/kalaiyarasiganeshalingam
> Blogs : https://kalaiyarasig.blogspot.com/ 
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Siddhi CEP

2017-10-12 Thread Sriskandarajah Suhothayan
You can also try Siddhi Editor that's shipped with WSO2 Stream Processor [1]
You can also download that here [2]

[1]https://docs.wso2.com/display/SP400/Quick+Start+Guide
[2]https://github.com/wso2/product-sp/releases

On Mon, Sep 11, 2017 at 8:36 AM, Charini Nanayakkara 
wrote:

> Hi Hasara,
>
> You can use any IDE such as Intellij, Eclipse, etc. No such plugins are
> needed to build the source code. Just checkout the code and play around
> with the test cases to get a basic idea.
>
> Best Regards
> Charini
>
>
>
> On Sun, Sep 10, 2017 at 9:18 PM, Hasara Maithree <
> hasaramaithreedesi...@gmail.com> wrote:
>
>> Hi,
>>
>> After having a look at the documentation of siddhi and creating a sample
>> app as described in the quick start guide, I thought of going through the
>> siddhi source code. I downloaded v4.0.0-M62 zip file from
>> https://github.com/wso2/siddhi/releases/tag/v4.0.0-M62 . Which IDE
>> should I use in order to run the source code ? If I use IDE like Intellij
>> do I have to add plugins for siddhi? Please clarify this matter.
>>
>> Thank you.
>>
>> On Wed, Sep 6, 2017 at 12:33 AM, Damith Wickramasinghe 
>> wrote:
>>
>>> Hi Hasara,
>>>
>>> Documentation is still in working progress. It need to be re-factored.
>>> In Editor mode the default saving location is the workspace folder thus not
>>> letting you to select a location to be saved . Also in Editor mode you can
>>> create any siddhi app and try it out using our event simulator , debugger
>>> which are inbuilt in the editor. Once you tested your siddhi app you can
>>> copy it to siddhi-files folder and start the SP in worker mode.(worker.sh)
>>> and try to publish events according to source you have defined. The error
>>> you have mentioned in the editor should not be appearing. We will look into
>>> it.
>>>
>>> Regards,
>>> Damith
>>>
>>>
>>> On Wed, Sep 6, 2017 at 12:00 AM, Hasara Maithree <
>>> hasaramaithreedesi...@gmail.com> wrote:
>>>
 Hi,

 In documentation of quick start guide, it is mentioned that
 SmartHomePlan.siddhi should be saved in /deployment/siddhi
 -files.But by default, it is saved in /deployment/workspace.So
 the final result of the query ends with error. But when I pasted it in
 siddhi-files folder, it works fine. I think there is an issue with the
 saving location because, in SP there is no option to select location to
 save, but by default it is saved to workspace.


 ​



 Thank you



 On Tue, Sep 5, 2017 at 10:55 PM, Hasara Maithree <
 hasaramaithreedesi...@gmail.com> wrote:

> Hi,
>
> I got it.
>
> Thank you.
>
> On Tue, Sep 5, 2017 at 10:32 PM, Minudika Malshan 
> wrote:
>
>> Hi,
>>
>> Sorry. A little correction. 4.0.0-M10 is the latest release [1]
>> [1] https://github.com/wso2/product-sp/releases/tag/v4.0.0-M10
>>
>> BR
>>
>>
>>
>> On Tue, Sep 5, 2017 at 10:28 PM, Minudika Malshan 
>> wrote:
>>
>>> Hi Hasara,
>>>
>>> Only milestone versions of *WSO2 Stream Processor *have been
>>> released yet. And yes, 4.0.0-M9 is the latest one.
>>> Note that the capabilities of WSO2 CEP and DAS are now provided
>>> thorugh WSO2 Stream Processor.
>>>
>>> BR
>>>
>>> On Tue, Sep 5, 2017 at 10:15 PM, Hasara Maithree <
>>> hasaramaithreedesi...@gmail.com> wrote:
>>>
 Hi Minudika,

 I think I figured out my problem. I downloaded the wso2 SP 4.0.0-M9
 from the link https://github.com/wso2/product-sp
 /releases/download/v4.0.0-M9/wso2sp-4.0.0-M9.zip .
 I assume this is the latest stable version of wso2 SP. I will try
 creating simple siddhi apps in order to familiarize with the
 environment.

 Thank you

 On Tue, Sep 5, 2017 at 9:23 PM, Hasara Maithree <
 hasaramaithreedesi...@gmail.com> wrote:

> Hi Minudika,
>
> Thank you very much for your reply. I have a small thing to
> clarify. Is WSO2 stream processor referred as WSO2 CEP (Complex Event
> Processor) or are they different?
> When I went through the product list, I couldn't find WSO2 SP. And
> the link given by you [2] led me to downlowad WSO2 data analytics 
> server.
> Can you please sort out this confusion ?
>
> Thank you
>
> On Mon, Sep 4, 2017 at 7:14 PM, Hasara Maithree <
> hasaramaithreedesi...@gmail.com> wrote:
>
>> Hi Minudika,
>> Thank you very much for your reply. I have a small thing to
>> clarify. Is WSO2 stream processor referred as WSO2 CEP (Complex Event
>> Processor) or are they different?
>> When I went through the product list, I couldn't find WSO2 SP.
>> And the link given by you [2] led me to 

Re: [Dev] [Siddhi] Partition with two attributes of same stream

2017-09-28 Thread Sriskandarajah Suhothayan
Apparently, it does not support multiple attributes as partition keys.
but you can use
partition with ( str: concat(srcIp,'-', dstIp) of PacketStream ) ...

or use a previous query to content and send as one data.



On Thu, Sep 28, 2017 at 10:41 PM, Gobinath  wrote:

> Hi,
>
> During my recent testing, Siddhi does not allow partition with two
> attributes of the same stream. For example, the following query throws
> *SiddhiAppValidationException* with a message partition already exists
> because the streamId is used to uniquely identify the partition [1].
>
> define stream PacketStream (srcIp string, dstIp string, packets int);
>
> partition with (srcIp of PacketStream, dstIp of PacketStream)
> begin
>   from PacketStream
>   select srcIp, dstIp, count(packets) as count
>   insert into OutputStream;
> end;
>
> I wonder whether it is not supported due to any constraints. If there is
> nothing like that, I can have a look at it.
>
> FYI: I tried to change the partition id as a combination of stream id and
> the attribute name but it does not register a PartitionReceiver for the
> later one.
>
> [1] https://github.com/slgobinath/siddhi/blob/master/modules/sid
> dhi-query-api/src/main/java/org/wso2/siddhi/query/api/
> execution/partition/Partition.java#L101
>
> Thanks & Regards,
> Gobinath
>
> --
> *Gobinath** Loganathan*
> Graduate Student,
> Electrical and Computer Engineering,
> Western University.
> Email  : slgobin...@gmail.com
> Blog: javahelps.com 
>
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 <077%20975%206757> | blog:
http://suhothayan.blogspot.com/ twitter:
http://twitter.com/suhothayan  | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] TestUtility to throw Assertion Errors from main thread

2017-09-15 Thread Sriskandarajah Suhothayan
No worries, thanks for the update!

Suho

On Sat, Sep 16, 2017 at 3:09 AM Gobinath <slgobin...@gmail.com> wrote:

> Hi,
>
> My last PR contains a check-style issue which causes to Sidhhi build
> failure. Please merge my new PR #526
> <https://github.com/wso2/siddhi/pull/526> which fixes the check-style
> issue and also includes your suggestion.
>
> Sorry for the check-style issue. I sent that PR just to make sure the
> design so I didn't check the style.
>
> Thanks & Regards,
> Gobinath
>
> On Fri, Sep 15, 2017 at 1:30 PM, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> Thanks for the improvement it looks good.
>> I have merged.
>>
>> But I think it should be called as Test*Callback *with a simple b.
>>
>> Can you fix that.
>>
>> Thanks
>> Suho
>>
>>
>> On Mon, Sep 4, 2017 at 5:18 PM, Gobinath <slgobin...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> As per my experience during my GSoC project, the assertion errors thrown
>>> by worker threads in the unit test callbacks do not interrupt the compiling
>>> process.
>>>
>>> I discussed with Suho during a code review and come up with a solution
>>> by storing the assertion errors in a java.util.List and throw them
>>> later in the main thread. I have sent a PR containing the prototype of my
>>> implementation and a sample application of it [1]. Could you please check
>>> the design, class name and the location.
>>>
>>> I am thinking about adding overloaded methods with Predicates as shown
>>> below but it can be used only in combined with Assert.assertTrue. WDYT?
>>>
>>> public static TestCallBack addQueryCallback(SiddhiAppRuntime
>>> siddhiAppRuntime, String queryName, Predicate... predicates) {
>>> // ...
>>> }
>>>
>>> [1] https://github.com/wso2/siddhi/pull/510
>>>
>>> PS: @Suho & @Nirmal please ignore my previous mail which has an
>>> incorrect dev mail address.
>>>
>>> Thanks & Regards,
>>> Gobinath
>>>
>>> --
>>> *Gobinath** Loganathan*
>>> Graduate Student,
>>> Electrical and Computer Engineering,
>>> Western University.
>>> Email  : slgobin...@gmail.com
>>> Blog: javahelps.com <http://www.javahelps.com/>
>>>
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect
>> *WSO2 Inc. *http://wso2.com
>> * <http://wso2.com/>*
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 | 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>*
>>
>
>
>
> --
> *Gobinath** Loganathan*
> Graduate Student,
> Electrical and Computer Engineering,
> Western University.
> Email  : slgobin...@gmail.com
> Blog: javahelps.com <http://www.javahelps.com/>
>
>
-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* <http://wso2.com/>*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] TestUtility to throw Assertion Errors from main thread

2017-09-15 Thread Sriskandarajah Suhothayan
Thanks for the improvement it looks good.
I have merged.

But I think it should be called as Test*Callback *with a simple b.

Can you fix that.

Thanks
Suho


On Mon, Sep 4, 2017 at 5:18 PM, Gobinath  wrote:

> Hi,
>
> As per my experience during my GSoC project, the assertion errors thrown
> by worker threads in the unit test callbacks do not interrupt the compiling
> process.
>
> I discussed with Suho during a code review and come up with a solution by
> storing the assertion errors in a java.util.List and throw them later in
> the main thread. I have sent a PR containing the prototype of my
> implementation and a sample application of it [1]. Could you please check
> the design, class name and the location.
>
> I am thinking about adding overloaded methods with Predicates as shown
> below but it can be used only in combined with Assert.assertTrue. WDYT?
>
> public static TestCallBack addQueryCallback(SiddhiAppRuntime
> siddhiAppRuntime, String queryName, Predicate... predicates) {
> // ...
> }
>
> [1] https://github.com/wso2/siddhi/pull/510
>
> PS: @Suho & @Nirmal please ignore my previous mail which has an incorrect
> dev mail address.
>
> Thanks & Regards,
> Gobinath
>
> --
> *Gobinath** Loganathan*
> Graduate Student,
> Electrical and Computer Engineering,
> Western University.
> Email  : slgobin...@gmail.com
> Blog: javahelps.com 
>
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-09-08 Thread Sriskandarajah Suhothayan
Congrats Nadun for the great work done !!
Hope you continue your contribution and become a committer :)

Thanks
Suho

On Fri, Sep 8, 2017 at 5:58 PM, Nirmal Fernando <nir...@wso2.com> wrote:

> Congratulations Nadun and thanks for all the hard work!
>
> On Thu, Sep 7, 2017 at 10:08 PM, Nadun De Silva <nadun...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I would like to use this email to thank Suho, Nirmal and everyone who
>> helped me to make this project a success in GSoC 2017.
>>
>> I was able to gain a lot of experience through this project and was able
>> to learn many new things. The project had been a great experience for me
>> and I would like to thank everyone for making it so.
>>
>> I have included with this email the link to the GSoC summary submitted
>> which could be helpful in using this plugin. [1]
>>
>> Please feel free to let me know if there are issues with the plugin. I
>> would be more than happy to contribute further.
>>
>> Thank you again for the great experience in working on this project for
>> GSoC 2017!
>>
>> Thank you!
>>
>> [1] https://gist.github.com/nadundesilva/abeac5279468c8c5f37fbd0f8c2d2091
>>
>> Regards,
>> Nadun De Silva
>>
>> On Tue, Aug 22, 2017 at 8:13 PM, Nadun De Silva <nadun...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Thank you for the feedback!
>>>
>>> Regards,
>>> Nadun De Silva
>>>
>>> On Tue, Aug 22, 2017 at 8:08 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
>>>> +1 looks good
>>>>
>>>> On Tue, Aug 22, 2017 at 8:04 PM, Nadun De Silva <nadun...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Please note that the links that are created under the predefined
>>>>> headings in the README.md using the previous bug fix will not work until
>>>>> the GitHub pages are deployed as well.
>>>>>
>>>>> *I have prepared a GitHub Gist [1] containing information about this
>>>>> project. I was thinking of submitting the same in the final evaluation as
>>>>> well. Hope this is sufficient. Any suggestions to improve it are highly
>>>>> appreciated.*
>>>>>
>>>>> Moreover, I have updated the documentation I created previously in a
>>>>> google doc [2] as well.
>>>>>
>>>>> [1] https://gist.github.com/nadundesilva/abeac5279468c8c5f37
>>>>> fbd0f8c2d2091
>>>>> [2] https://docs.google.com/document/d/1uf8crLE73_RQL3_1Sp4V
>>>>> BMyDT0AFcH2h9SXF_JTf1l0/edit?usp=sharing
>>>>>
>>>>> Thank you!
>>>>>
>>>>> Regards,
>>>>> Nadun De Silva
>>>>>
>>>>> On Mon, Aug 21, 2017 at 11:39 PM, Sriskandarajah Suhothayan <
>>>>> s...@wso2.com> wrote:
>>>>>
>>>>>> Thanks for the improvement.
>>>>>>
>>>>>> Suho
>>>>>>
>>>>>> On Mon, Aug 21, 2017 at 8:14 PM, Nadun De Silva <nadun...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have made the necessary changes to update the README.md as well as
>>>>>>> the documentation home page using the relevant headings as mentioned.
>>>>>>>
>>>>>>> Please find the changes in the PR I created. [1]
>>>>>>>
>>>>>>> This includes the following changes.
>>>>>>>
>>>>>>>- Updating the README.md file if the following headings are
>>>>>>>found. (The same changes that were done to the home page of the
>>>>>>>documentation based on the home page template)
>>>>>>>   - ## Features
>>>>>>>   - ## Latest API Docs
>>>>>>>- Committing and pushing to GitHub the changes made to the
>>>>>>>README.md file when *release:prepare* goal is run.
>>>>>>>
>>>>>>> [1] https://github.com/wso2/siddhi/pull/493
>>>>>>>
>>>>>>> Thank you!
>>>>>>>
>>>>>>> Regards,
>>>>>>> Nadun De Silva
>>>>>>>
>>>>>>> On Fri, Aug 18, 2017 at 12:11 PM, Chathurika 

Re: [Dev] [Architecture] WSO2 Stream Processor 4.0.0-M11 Released !

2017-09-07 Thread Sriskandarajah Suhothayan
On Fri, Sep 8, 2017 at 4:55 AM Anusha Jayasundara  wrote:

> Hi All,
>
>
> The WSO2 Analytics team is pleased to announce the release of *WSO2
> Stream Processor Version 4.0.0 Milestone 11*.
>
> WSO2 Smart Analytics let digital business creating real-time, intelligent,
> actionable business insights, and data products which are achieved by WSO2
> Stream Processor's real-time, incremental & intelligent data processing
> capabilities.
>
> WSO2 Stream Processor can:
>
>-
>
>Receive events from various data sources
>-
>
>Process & correlate them in real-time with the sate of the art
>high-performance real-time Siddhi Complex Event Processing Engine that
>works with easy to learn the SQL-Like query language.
>-
>
>Process analysis that spans for longer time duration with its
>incremental processing capability by achieving high performance with low
>infrastructure cost.
>-
>
>Uses Machine Learning and other models to drive intelligent
>insights from the data
>-
>
>Notifications interesting event occurrences as alerts via multiple
>types of transport & let users visualize the results via customizable
>dashboards.
>-
>
>WSO2 SP is released under Apache Software License Version 2.0, one
>of the most business-friendly licenses available today.
>
>
> You can find the product at 
> *https://github.com/wso2/product-sp/releases/download/v4.0.0-M11/wso2sp-4.0.0-M11.zip
> *
> Documentation at *https://docs.wso2.com/display/SP400/Introduction*/
> 
> Source code at *https://github.com/wso2/product-sp
> /*
>
> *WSO2 SP 4.0.0-M11 includes the following*
>
> *New Features*
>
>- Reliable message processing with kafka
>- Non occurrence of event - siddhi pattern
>- Multiple primary-key support for inmemory tables
>- Streaming ML
>   - Hoeffding classifier
>   - K-means clustering
>- Editor improvements
>
> + Static Dashboard

>
>-
>
> *Reporting Issues*
>
> Issues can be reported using the github issue tracker available at
> https://github.com/wso2/product-sp
> 
> *Contact us*
>
> WSO2 Stream Processor developers can be contacted via the mailing lists:
>
> Developer List : dev@wso2.org | Subscribe
>  | M
> 
>
>
> Alternatively, questions can also be raised in the Stackoverflow:
>
> Forum http://stackoverflow.com/questwso2/
> 
>
>
> *Support *
>
> We are committed to ensuring that your enterprise middleware deployment is
> completely supported from evaluation to production. Our unique approach
> ensures that all support leverages our open development methodology and is
> provided by the very same engineers who build the technology.
>
> For more details and to take advantage of this unique opportunity please
> visit http://wso2.com/support/.  
>
> For more information on WSO2 Smart Analytics and
> Smart Analytics Solutions, visit the WSO2 Smart Analytics Page
> .
>
>
>
> *~ The WSO2 Analytics Team ~*
> --
>
> *Anusha Jayasundara*
> Software Engineer | WSO2
>
> Email : anus...@wso2.com
> Mobile : +94772601160
> Web : http://wso2.com
> Lean.Enterprise.Middleware
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][Siddhi][PySiddhi] Sincere Thanks and Future Contributions

2017-09-06 Thread Sriskandarajah Suhothayan
Great work, looking forward to work with you.

Thanks
Suho

On Wed, Sep 6, 2017 at 11:58 PM Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Dear All,
>
> This mail is to thank everyone who helped me to successfully complete *Google
> Summer of Code 2017* with project *PySiddhi*. I was able to learn a lot
> via the project, specially on areas such as *JNI*, *Python Native
> Programming* and *developing Python Wrappers to Java.* In overall, it has
> been a great experience and I am grateful for everyone who helped me.
>
> Special thanks must go to *Grainier,* *Suho *and *Anjana*, whom helped me
> throughout as mentors of the project. Also I must thank *Mohan* and
> *Ramindu* for the help given.
>
> I would like to continue my contribution to the project in the future and
> would like to discuss on how it can be taken forward.
>
> GitHub Link: https://github.com/wso2/PySiddhi
> GSoC Work Summary:
> https://gist.github.com/madhawav/195b7dc601d94c40958d88be1d56e705
>
> Kind Regards,
>
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>
-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Request to install mkdocs and mkdocs-material in jenkins.

2017-08-23 Thread Sriskandarajah Suhothayan
Thanks Maheshika,

If you need any help from us, please let us know, we need to get this done
ASAP.

Regards
Suho

On Wed, Aug 23, 2017 at 3:03 PM, Chathurika Amarathunga <
chathuri...@wso2.com> wrote:

> Thank you Maheshika.
>
> Regards
> Chathurika.
>
> On Wed, Aug 23, 2017 at 1:58 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Chathurika
>>
>> We need to test this on staging and then install it in production. Will
>> do so and update this thread.
>>
>> On Wed, Aug 23, 2017 at 1:12 PM, Chathurika Amarathunga <
>> chathuri...@wso2.com> wrote:
>>
>>> Hi Maheshika,
>>>
>>> We are planing to use MKdocs [1] to generate the documentation site
>>> (github io site) for all repositories (siddhi,, siddhi extension and
>>> product-sp)  in Data Analytic team. It is required to install followings to
>>> ensure that site is generate at building time [2].
>>>
>>>  *- python*
>>> * - pip*
>>> * - mkdocs*
>>> * - mkdocs-material*
>>> Therefore, Could you please install mkdocs and mkdocs-material to the
>>> Jenkins.
>>>
>>> [1] http://www.mkdocs.org/
>>> [2] http://squidfunk.github.io/mkdocs-material/getting-started/
>>>
>>> Thank you.
>>> Chathurika Amarathunga.
>>> --
>>> *Chathurika Amarathunga*
>>> Software Engineer - WSO2
>>>
>>> Email: chathuri...@wso2.com
>>> Mobile: +94783886224 <+94%2078%20388%206224>
>>> 
>>>
>>
>>
>>
>> --
>>
>> Thanks & Best Regards,
>>
>> Maheshika Goonetilleke
>> Senior Engineering Process Coordinator
>>
>> *WSO2 Inc*
>> *email   : mahesh...@wso2.com *
>> *mobile : +94 773 596707 <+94%2077%20359%206707>*
>> *www: :http://wso2.com *lean . enterprise . middleware
>>
>>
>>
>>
>>
>
>
> --
> *Chathurika Amarathunga*
> Software Engineer - WSO2
>
> Email: chathuri...@wso2.com
> Mobile: +94783886224 <078%20388%206224>
> 
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-08-22 Thread Sriskandarajah Suhothayan
+1 looks good

On Tue, Aug 22, 2017 at 8:04 PM, Nadun De Silva <nadun...@gmail.com> wrote:

> Hi,
>
> Please note that the links that are created under the predefined headings
> in the README.md using the previous bug fix will not work until the GitHub
> pages are deployed as well.
>
> *I have prepared a GitHub Gist [1] containing information about this
> project. I was thinking of submitting the same in the final evaluation as
> well. Hope this is sufficient. Any suggestions to improve it are highly
> appreciated.*
>
> Moreover, I have updated the documentation I created previously in a
> google doc [2] as well.
>
> [1] https://gist.github.com/nadundesilva/abeac5279468c8c5f37fbd0f8c2d2091
> [2] https://docs.google.com/document/d/1uf8crLE73_RQL3_
> 1Sp4VBMyDT0AFcH2h9SXF_JTf1l0/edit?usp=sharing
>
> Thank you!
>
> Regards,
> Nadun De Silva
>
> On Mon, Aug 21, 2017 at 11:39 PM, Sriskandarajah Suhothayan <s...@wso2.com
> > wrote:
>
>> Thanks for the improvement.
>>
>> Suho
>>
>> On Mon, Aug 21, 2017 at 8:14 PM, Nadun De Silva <nadun...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I have made the necessary changes to update the README.md as well as the
>>> documentation home page using the relevant headings as mentioned.
>>>
>>> Please find the changes in the PR I created. [1]
>>>
>>> This includes the following changes.
>>>
>>>- Updating the README.md file if the following headings are found.
>>>(The same changes that were done to the home page of the documentation
>>>based on the home page template)
>>>   - ## Features
>>>   - ## Latest API Docs
>>>- Committing and pushing to GitHub the changes made to the
>>>README.md file when *release:prepare* goal is run.
>>>
>>> [1] https://github.com/wso2/siddhi/pull/493
>>>
>>> Thank you!
>>>
>>> Regards,
>>> Nadun De Silva
>>>
>>> On Fri, Aug 18, 2017 at 12:11 PM, Chathurika Amarathunga <
>>> chathuri...@wso2.com> wrote:
>>>
>>>> Hi Nadun,
>>>>
>>>> Currently, It is updated the descriptions under "Feature" & "latest API
>>>> docs"  headings only in site when we prepare the 'README.md' as you
>>>> mentioned. It is not updated the description in the 'README.md' under those
>>>> headings. Could you please, make it updated on both 'Index.md' and
>>>> 'README.md' files.
>>>>
>>>> Thank you.
>>>>
>>>> Regards,
>>>> Chathurika Amarathunga.
>>>>
>>>> --
>>>> *Chathurika Amarathunga*
>>>> Software Engineer - WSO2
>>>>
>>>> Email: chathuri...@wso2.com
>>>> Mobile: +94783886224 <078%20388%206224>
>>>> <https://wso2.com/signature>
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> [image: profile_pic.jpg]
>>>
>>> Nadun De Silva
>>>
>>> Undergraduate of Computer Science and Engineering
>>>
>>> University of Moratuwa
>>>
>>> [image: GitHub.png] <https://github.com/nadundesilva> [image:
>>> LinkedIn.png] <http://www.linkedin.com/in/nadundesilva> [image:
>>> Facebook.png] <https://www.facebook.com/nadunrds>
>>>
>>> Mobile:
>>>
>>> (+94) 77 8 222 607
>>>
>>> Email:
>>>
>>> nadun...@gmail.com
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect
>> *WSO2 Inc. *http://wso2.com
>> * <http://wso2.com/>*
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <077%20975%206757> | 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>*
>>
>
>
>
> --
>
> [image: profile_pic.jpg]
>
> Nadun De Silva
>
> Undergraduate of Computer Science and Engineering
>
> University of Moratuwa
>
> [image: GitHub.png] <https://github.com/nadundesilva> [image:
> LinkedIn.png] <http://www.linkedin.com/in/nadundesilva> [image:
> Facebook.png] <https://www.facebook.com/nadunrds>
>
> Mobile:
>
> (+94) 77 8 222 607
>
> Email:
>
> nadun...@gmail.com
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* <http://wso2.com/>*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-08-21 Thread Sriskandarajah Suhothayan
Thanks for the improvement.

Suho

On Mon, Aug 21, 2017 at 8:14 PM, Nadun De Silva  wrote:

> Hi,
>
> I have made the necessary changes to update the README.md as well as the
> documentation home page using the relevant headings as mentioned.
>
> Please find the changes in the PR I created. [1]
>
> This includes the following changes.
>
>- Updating the README.md file if the following headings are found.
>(The same changes that were done to the home page of the documentation
>based on the home page template)
>   - ## Features
>   - ## Latest API Docs
>- Committing and pushing to GitHub the changes made to the
>README.md file when *release:prepare* goal is run.
>
> [1] https://github.com/wso2/siddhi/pull/493
>
> Thank you!
>
> Regards,
> Nadun De Silva
>
> On Fri, Aug 18, 2017 at 12:11 PM, Chathurika Amarathunga <
> chathuri...@wso2.com> wrote:
>
>> Hi Nadun,
>>
>> Currently, It is updated the descriptions under "Feature" & "latest API
>> docs"  headings only in site when we prepare the 'README.md' as you
>> mentioned. It is not updated the description in the 'README.md' under those
>> headings. Could you please, make it updated on both 'Index.md' and
>> 'README.md' files.
>>
>> Thank you.
>>
>> Regards,
>> Chathurika Amarathunga.
>>
>> --
>> *Chathurika Amarathunga*
>> Software Engineer - WSO2
>>
>> Email: chathuri...@wso2.com
>> Mobile: +94783886224 <078%20388%206224>
>> 
>>
>
>
>
> --
>
> [image: profile_pic.jpg]
>
> Nadun De Silva
>
> Undergraduate of Computer Science and Engineering
>
> University of Moratuwa
>
> [image: GitHub.png]  [image:
> LinkedIn.png]  [image:
> Facebook.png] 
>
> Mobile:
>
> (+94) 77 8 222 607
>
> Email:
>
> nadun...@gmail.com
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [Siddhi] Accepting options as dynamic options when placeholder is placed within a string.

2017-07-17 Thread Sriskandarajah Suhothayan
I think your fix[1]  will solve this. Anything else we need to do?

[1] https://github.com/wso2/siddhi/pull/452

Regards
Suho

On Fri, Jul 14, 2017 at 3:40 PM, Minudika Malshan  wrote:

> Hi,
>
> Currently siddhi only identifies option parameter values defined only with
> a place holder. But it does not identifies option parameters as dynamic if
> the place holder is placed in the middle of a string. [1]
>
> For example :
> *@sink(type='file', uri={{symbol}}'*
> In this case, *uri* will be identified as a dynamic option.
>
> *@sink(type='file', uri='/abc/{{symbol}}.json*
> In this case, *uri* will not be taken as a dynamic parameter even we have
> registered as a supported dynamic option.
>
> I have made a fix for this issue, but need to confirm it won't be an issue
> for other implementations.
>
> Shall we accept both above types of values as dynamic options?
>
> [1] https://github.com/wso2/siddhi/blob/master/modules/
> siddhi-core/src/main/java/org/wso2/siddhi/core/util/parser/
> helper/DefinitionParserHelper.java#L670
>
> Thanks and regards!
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887 <071%20565%209887>
> Web :  http://wso2.com 
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting and resorting snapshots of a SiddhiAppRuntime

2017-07-08 Thread Sriskandarajah Suhothayan
On Sat, Jul 8, 2017 at 1:19 PM Sriskandarajah Suhothayan <s...@wso2.com>
wrote:

> On Sat, Jul 8, 2017 at 1:11 PM Minudika Malshan <minud...@wso2.com> wrote:
>
>> Hi,
>>
>> @Nirmal : It can be changed dynamically within extention. But cannot be
>> changed dynamically within the fileserver which is provided by carbon
>> transport.
>>
> We have to provide it as a property, when creating the server connector.
>>
>
> I this case you have to stop update and start back. Because changing
> during running  is also a valid case.
>

Hmm on my second thought I don't think you need to handle this. We'll fix
siddhi and make sure this case will not happen.

>
>>
>> @Suho : In that way, it works fine. I was thinking we cannot restore
>> snapshots without starting the siddhiAppRuntime. :) Thanks for the
>> suggestion.
>>
>> Thanks and regards!
>>
>>
>> On Sat, Jul 8, 2017 at 12:50 PM, Sriskandarajah Suhothayan <s...@wso2.com
>> > wrote:
>>
>>> Can't we restore and then start siddhi?
>>>
>>> Regards
>>> Suho
>>>
>>> On Sat, Jul 8, 2017 at 12:42 PM Minudika Malshan <minud...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> @Nirmal :
>>>> I am trying on this siddhi-io-file. I was referring the code of
>>>> siddi-io-kafka.
>>>>
>>>> @suho : Yes. It pause(), restoreState() and then resume(). But
>>>>
>>>> My issue is,
>>>> I if the siddhiApp is shutted down, when it get started again, the
>>>> method calls will happen in the following order.
>>>>
>>>> connect(), [when starting the runtime again]
>>>> pause() and then restoreState() [when restoring the snapshot]
>>>> and then,
>>>> resume().
>>>>
>>>> I am starting the file server within connect method. For that, I need
>>>> to give the file pointer(which is updated from snapshot) to the server, so
>>>> that it can resume the file consuming process from the point where it
>>>> stopped previously.
>>>>
>>>> Since the connect() method is called before restore() method, I cannot
>>>> find the restored file pointer before starting the file server.
>>>>
>>>> Any comment on this? Should I move to the file server starting thing to
>>>> resume() also?
>>>>
>>>> Thanks and regards!
>>>>
>>>>
>>>> On Fri, Jul 7, 2017 at 10:25 PM, Nirmal Fernando <nir...@wso2.com>
>>>> wrote:
>>>>
>>>>> @Minudika Can you elaborate a bit? What code you're referring to?
>>>>>
>>>>> On Fri, Jul 7, 2017 at 8:45 PM, Sriskandarajah Suhothayan <
>>>>> s...@wso2.com> wrote:
>>>>>
>>>>>> To my knowledge it's doing a pause() restoreState() and then resume().
>>>>>>
>>>>>> Am I wrong?
>>>>>>
>>>>>> On Fri, Jul 7, 2017 at 6:28 PM, Minudika Malshan <minud...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> When restarting a siddhiAppRuntime with restoring a snapshot of the
>>>>>>> source, it calls the connect() method in source and then restoreState()
>>>>>>> method.
>>>>>>>
>>>>>>> Since the source is supposed to do the process using previously
>>>>>>> captured state, shouldn't the order be restore() and then connect() ?
>>>>>>>
>>>>>>> Appreciate if you can help me to clarify this.
>>>>>>>
>>>>>>> Thanks and regards!
>>>>>>>
>>>>>>> --
>>>>>>> *Minudika Gammanpila*
>>>>>>> Software Engineer - WSO2
>>>>>>>
>>>>>>> Email   :  minud...@wso2.com
>>>>>>> Mobile :  +94715659887 <071%20565%209887>
>>>>>>> Web :  http://wso2.com <http://wso2.com/signature>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *S. Suhothayan*
>>>>>> Associate Director / Architect
>>>>>> *WSO2 Inc. *http://wso2.com
>>>>>> * <http://wso2.com/>*
>>>>>> lean . 

Re: [Dev] Getting and resorting snapshots of a SiddhiAppRuntime

2017-07-08 Thread Sriskandarajah Suhothayan
On Sat, Jul 8, 2017 at 1:11 PM Minudika Malshan <minud...@wso2.com> wrote:

> Hi,
>
> @Nirmal : It can be changed dynamically within extention. But cannot be
> changed dynamically within the fileserver which is provided by carbon
> transport.
> We have to provide it as a property, when creating the server connector.
>

I this case you have to stop update and start back. Because changing during
running  is also a valid case.

>
>
> @Suho : In that way, it works fine. I was thinking we cannot restore
> snapshots without starting the siddhiAppRuntime. :) Thanks for the
> suggestion.
>
> Thanks and regards!
>
>
> On Sat, Jul 8, 2017 at 12:50 PM, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> Can't we restore and then start siddhi?
>>
>> Regards
>> Suho
>>
>> On Sat, Jul 8, 2017 at 12:42 PM Minudika Malshan <minud...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> @Nirmal :
>>> I am trying on this siddhi-io-file. I was referring the code of
>>> siddi-io-kafka.
>>>
>>> @suho : Yes. It pause(), restoreState() and then resume(). But
>>>
>>> My issue is,
>>> I if the siddhiApp is shutted down, when it get started again, the
>>> method calls will happen in the following order.
>>>
>>> connect(), [when starting the runtime again]
>>> pause() and then restoreState() [when restoring the snapshot]
>>> and then,
>>> resume().
>>>
>>> I am starting the file server within connect method. For that, I need to
>>> give the file pointer(which is updated from snapshot) to the server, so
>>> that it can resume the file consuming process from the point where it
>>> stopped previously.
>>>
>>> Since the connect() method is called before restore() method, I cannot
>>> find the restored file pointer before starting the file server.
>>>
>>> Any comment on this? Should I move to the file server starting thing to
>>> resume() also?
>>>
>>> Thanks and regards!
>>>
>>>
>>> On Fri, Jul 7, 2017 at 10:25 PM, Nirmal Fernando <nir...@wso2.com>
>>> wrote:
>>>
>>>> @Minudika Can you elaborate a bit? What code you're referring to?
>>>>
>>>> On Fri, Jul 7, 2017 at 8:45 PM, Sriskandarajah Suhothayan <
>>>> s...@wso2.com> wrote:
>>>>
>>>>> To my knowledge it's doing a pause() restoreState() and then resume().
>>>>>
>>>>> Am I wrong?
>>>>>
>>>>> On Fri, Jul 7, 2017 at 6:28 PM, Minudika Malshan <minud...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> When restarting a siddhiAppRuntime with restoring a snapshot of the
>>>>>> source, it calls the connect() method in source and then restoreState()
>>>>>> method.
>>>>>>
>>>>>> Since the source is supposed to do the process using previously
>>>>>> captured state, shouldn't the order be restore() and then connect() ?
>>>>>>
>>>>>> Appreciate if you can help me to clarify this.
>>>>>>
>>>>>> Thanks and regards!
>>>>>>
>>>>>> --
>>>>>> *Minudika Gammanpila*
>>>>>> Software Engineer - WSO2
>>>>>>
>>>>>> Email   :  minud...@wso2.com
>>>>>> Mobile :  +94715659887 <071%20565%209887>
>>>>>> Web :  http://wso2.com <http://wso2.com/signature>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *S. Suhothayan*
>>>>> Associate Director / Architect
>>>>> *WSO2 Inc. *http://wso2.com
>>>>> * <http://wso2.com/>*
>>>>> lean . enterprise . middleware
>>>>>
>>>>>
>>>>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | 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>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Thanks & regards,
>>>> Nirmal

Re: [Dev] Getting and resorting snapshots of a SiddhiAppRuntime

2017-07-08 Thread Sriskandarajah Suhothayan
Can't we restore and then start siddhi?

Regards
Suho

On Sat, Jul 8, 2017 at 12:42 PM Minudika Malshan <minud...@wso2.com> wrote:

> Hi,
>
> @Nirmal :
> I am trying on this siddhi-io-file. I was referring the code of
> siddi-io-kafka.
>
> @suho : Yes. It pause(), restoreState() and then resume(). But
>
> My issue is,
> I if the siddhiApp is shutted down, when it get started again, the method
> calls will happen in the following order.
>
> connect(), [when starting the runtime again]
> pause() and then restoreState() [when restoring the snapshot]
> and then,
> resume().
>
> I am starting the file server within connect method. For that, I need to
> give the file pointer(which is updated from snapshot) to the server, so
> that it can resume the file consuming process from the point where it
> stopped previously.
>
> Since the connect() method is called before restore() method, I cannot
> find the restored file pointer before starting the file server.
>
> Any comment on this? Should I move to the file server starting thing to
> resume() also?
>
> Thanks and regards!
>
>
> On Fri, Jul 7, 2017 at 10:25 PM, Nirmal Fernando <nir...@wso2.com> wrote:
>
>> @Minudika Can you elaborate a bit? What code you're referring to?
>>
>> On Fri, Jul 7, 2017 at 8:45 PM, Sriskandarajah Suhothayan <s...@wso2.com>
>> wrote:
>>
>>> To my knowledge it's doing a pause() restoreState() and then resume().
>>>
>>> Am I wrong?
>>>
>>> On Fri, Jul 7, 2017 at 6:28 PM, Minudika Malshan <minud...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> When restarting a siddhiAppRuntime with restoring a snapshot of the
>>>> source, it calls the connect() method in source and then restoreState()
>>>> method.
>>>>
>>>> Since the source is supposed to do the process using previously
>>>> captured state, shouldn't the order be restore() and then connect() ?
>>>>
>>>> Appreciate if you can help me to clarify this.
>>>>
>>>> Thanks and regards!
>>>>
>>>> --
>>>> *Minudika Gammanpila*
>>>> Software Engineer - WSO2
>>>>
>>>> Email   :  minud...@wso2.com
>>>> Mobile :  +94715659887 <071%20565%209887>
>>>> Web :  http://wso2.com <http://wso2.com/signature>
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *S. Suhothayan*
>>> Associate Director / Architect
>>> *WSO2 Inc. *http://wso2.com
>>> * <http://wso2.com/>*
>>> lean . enterprise . middleware
>>>
>>>
>>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | 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>*
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Technical Lead, WSO2 Inc.
>> Mobile: +94715779733 <+94%2071%20577%209733>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887
> Web :  http://wso2.com <http://wso2.com/signature>
>
-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* <http://wso2.com/>*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][DAS][DEV] Python Client on DAS 4.0

2017-07-08 Thread Sriskandarajah Suhothayan
@Ramindu

Do we have a doc that has different options that we can have for
simulation. If so please share.

On Fri, Jul 7, 2017 at 11:18 PM Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> So far I've managed to implement the REST endpoints of Event Simulator
> mentioned at [1]. The code is available at repository [2].
>
> The objects passed to REST API has been mapped to Python Classes. All the
> fields mentioned in POSTMAN samples (attached) given by Ramindu has been
> added to the classes. Additionally, most of the POSTMAN samples has been
> implemented as tests in Python Code.
>
> Is their any technique I can use to identify the possible fields of any
> object that could be passed to REST API?
>
> [1] -
> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt2JHh9RJya2VdHlHOTl4/edit?usp=sharing
> [2] - https://github.com/madhawav/DASPythonClient
>
> Kind Regards,
> Madhawa
>
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>
-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting and resorting snapshots of a SiddhiAppRuntime

2017-07-07 Thread Sriskandarajah Suhothayan
To my knowledge it's doing a pause() restoreState() and then resume().

Am I wrong?

On Fri, Jul 7, 2017 at 6:28 PM, Minudika Malshan  wrote:

> Hi,
>
> When restarting a siddhiAppRuntime with restoring a snapshot of the
> source, it calls the connect() method in source and then restoreState()
> method.
>
> Since the source is supposed to do the process using previously captured
> state, shouldn't the order be restore() and then connect() ?
>
> Appreciate if you can help me to clarify this.
>
> Thanks and regards!
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887 <071%20565%209887>
> Web :  http://wso2.com 
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][DAS][DEV] Incorrect response from DAS 4.0 Event Simulator

2017-07-04 Thread Sriskandarajah Suhothayan
I don't think you can send a simulation config by calling http://
:/simulation/single/

@Mohan/Ramindu can you guide him on the API of DAS 4.0 Event Simulation

On Tue, Jul 4, 2017 at 9:48 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I am currently working on developing a Python Client for DAS 4.0 Event
> Simulator as a part of my GSOC project with WSO2.
>
> When I used the REST endpoint *GET* http://:/
> simulation/single/{simulationName}, I get a JSON response with an
> incorrect field value.
>
> The JSON response consist of two string fields "status" and "message"
> where the value of "message" is an *invalid JSON text* describing a
> Simulation Configuration. For example, the following is a message field I
> got from DAS 4.0.
>
> Simulation configuration : {"sources":[{"timeStampInterval":"5","
> simulationType":"RANDOM_DATA_SIMULATION","attributeConfiguration":[{"
> length":"10","type":"PRIMITIVE_BASED"},{"min":"3","max":"3","
> precision":"2","type":"PRIMITIVE_BASED"},{"min":"300","max":"300","type":"
> PRIMITIVE_BASED"}],"streamName":"FooStream","
> siddhiAppName":"TestSiddhiApp"}],"properties":{"timestampStartTime":"
> 1488615136958","simulationName":"simulationPrimitive","
> timeInterval":"1000","timestampEndTime":null,"noOfEvents":"8"}}
>
> In the above, Simulation configuration should be within inverted commas,
> such as "Simulation Configuration" to properly support JSON parsing.
> (tested with standard JSON parser of Python3)
>
> P.s. I am using DAS 4.0, latest version from master branch.
>
> Kind Regards,
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425 <071%20687%204425>
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC][Siddhi][CEP]: Siddhi Pattern for Absence of Events

2017-07-03 Thread Sriskandarajah Suhothayan
On Mon, Jul 3, 2017 at 5:18 PM, Gobinath <slgobin...@gmail.com> wrote:

> Hi,
>
> The following absent event cases are implemented and tested so far and now
> I am focusing on testing these patterns in the form of *Sequence*. If you
> find any cases that I missed or any improvements, please share them.
>
>
>
> A not B for 1sec
>
> After the arrival of A, wait for 1 sec & B not arrived
>
> A → not B and C
>
> When C arrive if B is not available
>
> A → (not B and C) within 1sec
>
> If B not arrived but C arrived within 1 sec from A
>
> A → (not B for 1sec  and C) within 2sec
>
> Wait for 1 sec from the arrival of A; if B not arrived and C arrived and
> both happened within 2 sec from A
>
> not A for 1sec → B
>
> Wait for 1 sec; if A not arrived but B arrived after 1sec
>
> not A and B → C
>
> When B arrive if A is not available followed by C
>
> every ( not B and  A)  → C
>
> Every combination of the previous case
>
> every ( not B for 1sec) → C
>
> Check and emit C every second, if B not arrive
>
> A → not B  for 1 sec and not C for 1 sec
>
> After A, both B and C are not received within 1 sec
>
> not A  for 1 sec and not B for 1 sec → C
>
> A and B are not received for 1 sec and then C
>
> A → not B   for 1 sec or not C for 1 sec
>
> After A, wait for 1 sec B or C not received
>
> not A  for 1 sec or not B for 1 sec → C
>
> Wait for 1 sec; A or B not received followed by C
>
> A → not B for 1 sec or C
>
> After A, if C arrives, emit it otherwise emit after 1 sec if B not arrived
>
> not A for 1 sec or B → C
>
> Same as previous but the other way around
>
> I think these will also work but better if you can check them too via
testcase.

A → C or not B for 1 sec

B or not A for 1 sec → C

every (not B  for 1 sec and not C for 1 sec ) -> A

every (not B  for 1 sec or not C for 1 sec ) -> A

every (B *and* not C for 1 sec ) -> A

every (not C for 1 sec *and* B ) -> A

every (B *or* not C for 1 sec ) -> A

every (not C for 1 sec *or* B ) -> A

every (B *and* (not C and D) ) -> A

every ( (not C and D) *and* B ) -> A

every (B *or* (not C and D) ) -> A

every ((not C and D) *or* B ) -> A


>
> Thanks & Regards,
> Gobinath
>
> On Sun, Jul 2, 2017 at 6:34 AM, Gobinath <slgobin...@gmail.com> wrote:
>
>> Thanks, Suho.
>>
>> Sure I will.
>>
>>
>> Thanks & Regards,
>> Gobinath
>>
>> On Sun, Jul 2, 2017 at 6:32 AM, Sriskandarajah Suhothayan <s...@wso2.com>
>> wrote:
>>
>>> Thanks merged the PR.
>>>
>>> Can you inform in SOF that you have fixed this issue, and this is the
>>> PR.
>>>
>>> Thanks
>>> Suho
>>>
>>> On Sun, Jul 2, 2017 at 6:21 AM, Gobinath <slgobin...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Please find the PR [1] fixing the following issues in Siddhi.
>>>>
>>>> 1. Logical pattern not obeying the '*within*' keyword
>>>>
>>>> 2. Sequence not obeying the '*every*' keyword
>>>>
>>>> 3. Logical pattern '*from* *A or B select...*' not producing the output
>>>>
>>>> With this fix, the problems asked in Stack Overflow [2] are resolved.
>>>>
>>>>
>>>> [1] https://github.com/wso2/siddhi/pull/436
>>>>
>>>> [2] https://stackoverflow.com/questions/41557227/siddhi-logi
>>>> cal-and-with-within-executes-callback-unexpectedly
>>>>
>>>>
>>>> Thanks & Regards,
>>>> Gobinath
>>>>
>>>>
>>>> On Sat, May 13, 2017 at 8:02 AM, Gobinath <slgobin...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I've fixed the duplicate output with 'OR' in the PR #354 [1].
>>>>> According to this fix, the *addState* method of
>>>>> *LogicalPreStateProcessor* treats both PATTERN and SEQUENCE in the
>>>>> same way [2]. It does not break any existing tests but please check 
>>>>> whether
>>>>> it makes sense or not.
>>>>>
>>>>>
>>>>> [1] https://github.com/wso2/siddhi/pull/354
>>>>>
>>>>> [2] https://github.com/wso2/siddhi/pull/354/commits/803e4d0f
>>>>> 486d7268af117bcfe42f4c704f98b3b5#diff-32293ae88907e099f28593
>>>>> e5496e1e67R62
>>>>>
>>>>>
>>>>> Thanks & Regards,
>>>>> Gobinath
>>>>>
>>>>> On Mon, Ma

Re: [Dev] [GSoC][Siddhi][CEP]: Siddhi Pattern for Absence of Events

2017-07-02 Thread Sriskandarajah Suhothayan
Thanks merged the PR.

Can you inform in SOF that you have fixed this issue, and this is the PR.

Thanks
Suho

On Sun, Jul 2, 2017 at 6:21 AM, Gobinath <slgobin...@gmail.com> wrote:

> Hi,
>
> Please find the PR [1] fixing the following issues in Siddhi.
>
> 1. Logical pattern not obeying the '*within*' keyword
>
> 2. Sequence not obeying the '*every*' keyword
>
> 3. Logical pattern '*from* *A or B select...*' not producing the output
>
> With this fix, the problems asked in Stack Overflow [2] are resolved.
>
>
> [1] https://github.com/wso2/siddhi/pull/436
>
> [2] https://stackoverflow.com/questions/41557227/siddhi-
> logical-and-with-within-executes-callback-unexpectedly
>
>
> Thanks & Regards,
> Gobinath
>
>
> On Sat, May 13, 2017 at 8:02 AM, Gobinath <slgobin...@gmail.com> wrote:
>
>> Hi,
>>
>> I've fixed the duplicate output with 'OR' in the PR #354 [1]. According
>> to this fix, the *addState* method of *LogicalPreStateProcessor* treats
>> both PATTERN and SEQUENCE in the same way [2]. It does not break any
>> existing tests but please check whether it makes sense or not.
>>
>>
>> [1] https://github.com/wso2/siddhi/pull/354
>>
>> [2] https://github.com/wso2/siddhi/pull/354/commits/803e4d0f
>> 486d7268af117bcfe42f4c704f98b3b5#diff-32293ae88907e099f28593e5496e1e67R62
>>
>>
>> Thanks & Regards,
>> Gobinath
>>
>> On Mon, May 8, 2017 at 1:24 AM, Sriskandarajah Suhothayan <s...@wso2.com>
>> wrote:
>>
>>> I have merged that. +1 this also should give 1 output.
>>>
>>> Thanks for the fixes.
>>>
>>> Regards
>>> Suho
>>>
>>> On Mon, May 8, 2017 at 10:18 AM, Nirmal Fernando <nir...@wso2.com>
>>> wrote:
>>>
>>>> Again, I'd only expect one o/p;
>>>> Event{timestamp=1494203709496, data=[WSO2, null, 4.7], isExpired=false}
>>>>
>>>> On Mon, May 8, 2017 at 6:25 AM, Gobinath <slgobin...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I've found a minor bug and sent the PR [1] with the fix. Similar
>>>>> behavior is noticed with *or* operator as well (Even after the fix).
>>>>> I have given the code and the output below for your concern.
>>>>>
>>>>> // Query: e1 or e2 -> e3
>>>>>
>>>>> define stream Stream1 (symbol string, price float, volume int);
>>>>> define stream Stream2 (symbol string, price float, volume int);
>>>>>
>>>>> @info(name = 'query1')
>>>>> from e1=Stream1[price > 20] or e2=Stream2[price >30] ->
>>>>> e3=Stream2['IBM' == symbol]
>>>>> select e1.symbol as symbol1, e2.price as price2, e3.price as price3
>>>>> insert into OutputStream;
>>>>>
>>>>> // Input
>>>>> Stream1.send(new Object[]{"WSO2", 55.6f, 100});
>>>>> Stream2.send(new Object[]{"GOOG", 72.7f, 100});
>>>>> Stream2.send(new Object[]{"IBM", 4.7f, 100});
>>>>>
>>>>> // Output
>>>>> Event{timestamp=1494203709496, data=[WSO2, null, 4.7], isExpired=false}
>>>>> Event{timestamp=1494203709496, data=[WSO2, null, 4.7], isExpired=false}
>>>>>
>>>>> If it is also a bug, please do let me know without merging the PR. I
>>>>> will fix it under the same PR.
>>>>>
>>>>> [1] https://github.com/wso2/siddhi/pull/345
>>>>>
>>>>>
>>>>> Thanks & Regards,
>>>>> Gobinath
>>>>>
>>>>> On Sun, May 7, 2017 at 2:06 PM, Gobinath <slgobin...@gmail.com> wrote:
>>>>>
>>>>>> Sure. I'll check the issue and send a separate PR with the fix.
>>>>>>
>>>>>>
>>>>>> Thanks & Regards,
>>>>>> Gobinath
>>>>>>
>>>>>> On Sun, May 7, 2017 at 1:51 PM, Sriskandarajah Suhothayan <
>>>>>> s...@wso2.com> wrote:
>>>>>>
>>>>>>> Yes, it looks like a bug to me, can you check why it's happening.
>>>>>>>
>>>>>>> Regards
>>>>>>> Suho
>>>>>>>
>>>>>>> On Sun, May 7, 2017 at 8:56 PM, Nirmal Fernando <nir...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Looks like a bug to me. I 

Re: [Dev] [Siddhi-file-io] Consuming multiple files in a directory with tailing enabled.

2017-07-01 Thread Sriskandarajah Suhothayan
+1, And I also like Dilini's idea of using the transport properties,
So for the behaviour you mentioned, add the trp:file.name property to
inform the user what file is currently being read.
This will be very useful for non-file tailing scenarios.

On Sat, Jul 1, 2017 at 3:12 PM, Minudika Malshan  wrote:

> Hi,
>
> For the initial implementation, we have decided to implement it as below,
> When tailing is enabled,
>
>- A single file can be pointed out using the uri and it will be
>consumed and tailed.
>
>
>- If the uri points out a directory, the first file (when files are
>sorted in alphabetical ascending order) will be consumed and tailed.
>
> Thanks and regards!
>
> On Thu, Jun 29, 2017 at 12:05 PM, Dilini Muthumala 
> wrote:
>
>> Hi,
>>
>> If the user wants to find out which file the event came from (if there is
>> a use case as such), then he can create separate sources for each file.
>>
>> Some problems with above approach would be:
>> - if the user does not know the file names before hand, above is not a
>> solution
>> - when there are many files, user will have to create many streams
>>
>> Another option I can think of is introducing a transport property to
>> contain the file name; something like *trp:file-name.*
>>
>> IMO, introducing a transport property would be better if we really have
>> this use case that user wants to know which the event came from.
>>
>> Thank you,
>> Dilini
>>
>>
>> On Thu, Jun 29, 2017 at 11:44 AM, Minudika Malshan 
>> wrote:
>>
>>> Hi all,
>>>
>>> In proposed Sindhi-io-file : source,  the user will be providing a uri
>>> of a directory mentioning that tailing enabled or not.
>>> If tailing is enabled, all the files will be consumed and the connection
>>> will be kept alive in order to check whether a new record added to the file
>>> later.
>>>
>>> In this case, files in the directory will have to be consumed in
>>> parallel and events will be created for each added record accordingly.
>>> Issue is, will it be OK to create events without a way for the user to know
>>> what file is related to that event?
>>>
>>> Thanks and regards!
>>> --
>>> *Minudika Gammanpila*
>>> Software Engineer - WSO2
>>>
>>> Email   :  minud...@wso2.com
>>> Mobile :  +94715659887 <+94%2071%20565%209887>
>>> Web :  http://wso2.com 
>>>
>>
>>
>>
>> --
>> *Dilini Muthumala*
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail :* dil...@wso2.com
>> *Mobile: *+94 713-400-029 <+94%2071%20340%200029>
>>
>
>
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887 <071%20565%209887>
> Web :  http://wso2.com 
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-24 Thread Sriskandarajah Suhothayan
Great, you can do the debugger now, he said after finishing the debugger
work, work on wrap event simulator .

Regards
Suho

On Wed, May 24, 2017 at 6:19 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I have updated the README.md file. Will let you know when I have progress
> with debugger.
>
> Thanks
> Madhawa
>
> On Mon, May 22, 2017 at 12:41 PM, Grainier Perera <grain...@wso2.com>
> wrote:
>
>> Hi Madhawa,
>>
>> I went through your impl and it works great. Try to improve the test
>> cases and documentation (README.md on git) when you get a time.
>>
>> Furthermore, I have added Event simulator REST API endpoints to the doc
>> that you shared earlier. After getting debugger to work, try to wrap event
>> simulator endpoints as well. You can refer to [1] for the documentation on
>> them.
>>
>> [1] https://docs.wso2.com/display/DAS400/Simulating+Events
>>
>> Regards,
>> Grainier.
>>
>> On Sun, May 21, 2017 at 6:00 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I started working on the native wrapper. So far, have the very basic
>>> functionality working for Siddhi 3.1 and Siddhi 4.0.
>>> I am maintaining my code at the repo [1].
>>>
>>> Next step is getting the Siddhi debugger working. I will let you know
>>> when it is done.
>>>
>>> [1] - https://github.com/madhawav/SiddhiCEPPythonAPI
>>>
>>> Thanks,
>>> Madhawa
>>>
>>>
>>> On Fri, May 19, 2017 at 12:47 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
>>>> Sure we'll look into that.
>>>>
>>>> As the immediate next step can you make finish the work on native
>>>> Siddhi working with python.
>>>> Make sure Siddhi debugger also works.
>>>>
>>>> Regards
>>>> Suho
>>>>
>>>> On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have updated the shared doc [1] by adding "List of Admin Services to
>>>>> be used for DAS 3.1". Feel free to add-in your suggestions as well.
>>>>>
>>>>> Also, are their any documentation available on specific Admin Services
>>>>> APIs I have mentioned in doc? Such as a Reference Guide describing the
>>>>> methods and parameters of individual Admin Services APIs. I am already
>>>>> aware of the general documentation on Admin Services available at [2]
>>>>>
>>>>> [1] - https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
>>>>> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>>>>> [2] - https://docs.wso2.com/display/DAS310/Calling+Admin+Services+
>>>>> from+Apps
>>>>>
>>>>> Thanks,
>>>>> Madhawa
>>>>>
>>>>> On Tue, May 9, 2017 at 11:11 AM, Sriskandarajah Suhothayan <
>>>>> s...@wso2.com> wrote:
>>>>>
>>>>>> +1 for the approach.
>>>>>> We will add the classes
>>>>>>
>>>>>> On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
>>>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I will look into REST side also then. Already found good APIs to
>>>>>>> work with Native Calls and SOAP.
>>>>>>>
>>>>>>> I am also trying to come up with a list of classes of Siddhi Java
>>>>>>> Library that should be exposed via Python API.  I don't think its 
>>>>>>> required
>>>>>>> to wrap the internal classes since their functionality is not directly 
>>>>>>> used
>>>>>>> by Siddhi Java Library users.
>>>>>>>
>>>>>>> I will update the list of classes to be wrapped at link below. Feel
>>>>>>> free to add in your suggestions as well.
>>>>>>> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
>>>>>>> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>>>>>>>
>>>>>>> Thanks and Regards,
>>>>>>> Madhawa
>>>>>>>
>>>>>>>
>>&g

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-19 Thread Sriskandarajah Suhothayan
Sure we'll look into that.

As the immediate next step can you make finish the work on native Siddhi
working with python.
Make sure Siddhi debugger also works.

Regards
Suho

On Fri, May 19, 2017 at 11:45 AM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I have updated the shared doc [1] by adding "List of Admin Services to be
> used for DAS 3.1". Feel free to add-in your suggestions as well.
>
> Also, are their any documentation available on specific Admin Services
> APIs I have mentioned in doc? Such as a Reference Guide describing the
> methods and parameters of individual Admin Services APIs. I am already
> aware of the general documentation on Admin Services available at [2]
>
> [1] - https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt2JHh9
> RJya2VdHlHOTl4/edit?usp=sharing
> [2] - https://docs.wso2.com/display/DAS310/Calling+Admin+Services+
> from+Apps
>
> Thanks,
> Madhawa
>
> On Tue, May 9, 2017 at 11:11 AM, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> +1 for the approach.
>> We will add the classes
>>
>> On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I will look into REST side also then. Already found good APIs to work
>>> with Native Calls and SOAP.
>>>
>>> I am also trying to come up with a list of classes of Siddhi Java
>>> Library that should be exposed via Python API.  I don't think its required
>>> to wrap the internal classes since their functionality is not directly used
>>> by Siddhi Java Library users.
>>>
>>> I will update the list of classes to be wrapped at link below. Feel free
>>> to add in your suggestions as well.
>>> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt
>>> 2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>>>
>>> Thanks and Regards,
>>> Madhawa
>>>
>>>
>>> On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
>>>> Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is
>>>> compatible with DAS 4.0 which we are still working on.
>>>>
>>>> Siddhi APIs does not drastically change from 3.x to 4.x,
>>>> DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs
>>>>
>>>> So apart from native APIs, if you have figured out a way to use REST
>>>> and SOAP we are good enough.
>>>>
>>>> Regards
>>>> Suho
>>>>
>>>> On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>> Need bit more clarity on what versions of products we should build on.
>>>>>
>>>>> Are we developing on DAS 3.1 (as mentioned in beginning of mail
>>>>> thread) or 4.0 (mentioned in previous mail) ?
>>>>> Also, what version of WSO2 CEP?
>>>>>
>>>>> According to my understanding so far, we are developing on Siddhi Java
>>>>> Library 4.0.
>>>>>
>>>>> Thanks and Regards,
>>>>> Madhawa
>>>>>
>>>>> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
>>>>> mo...@wso2.com> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <
>>>>>> s...@wso2.com> wrote:
>>>>>>
>>>>>>> @Mohan on DAS 4.0 do we have similar services like admin services at
>>>>>>> the worker?
>>>>>>>
>>>>>>> Shall we come up with the exact list of apis that we need to have ?
>>>>>>> So he can also incorporate them.
>>>>>>>
>>>>>>
>>>>>> Yes, I have already listed some apis in [1].. Will get the finalized
>>>>>> list soon and share with Madhawa..
>>>>>>
>>>>>> [1] https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmj
>>>>>> EXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0
>>>>>>
>>>>>> Thanks,
>>>>>> Mohan
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Regards
>>>>>>> Suho
>>>>>>>
>>>>>>> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanan

Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-05-11 Thread Sriskandarajah Suhothayan
;>>   FreeMarker.
>>>>   - Generating HTML documentation file using HandlebarsJS had been
>>>>   implemented as well since it was the recommended templating engine.
>>>>   (However, I don't think we can use this approach for markdown files 
>>>> since
>>>>   Handlebars is a JS library)
>>>>
>>>> As of now, I am saving the generated documentation files inside the
>>>> "target/" directory and I have only created simple HTML files since I am
>>>> not sure of the themes that should be used.
>>>>
>>>> Please correct me if my current approach is not what is expected.
>>>>
>>>> Also, I would be grateful if we can elaborate further on our plan for
>>>> the upcoming months; whether we should stick with my proposal [2] or
>>>> whether there should be any deviations from it (especially regarding the
>>>> method for combining multiple documentation into a single documentation. In
>>>> the proposal, I suggested my initial idea where we could retrieve the
>>>> documentation files in all the repositories using the GitHub Contents API
>>>> and combine them using a completely separate program.).
>>>>
>>>> Thank you again for accepting my proposal. Hope to have a great
>>>> experience in doing the project in the upcoming months.
>>>>
>>>> [1] https://github.com/nadundesilva/wso2-siddhi-extension-do
>>>> cumentation-generator
>>>> [2] https://docs.google.com/document/d/1amSz_YXZjCP9FYmLyG0Y
>>>> VGog7LrlSSIfferhVNN2En8/edit?usp=sharing
>>>>
>>>> Thanks,
>>>> Nadun De Silva
>>>>
>>>> On Fri, May 5, 2017 at 2:12 PM, Nadun De Silva <nadun...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Sorry. My mistake. I will resend.
>>>>>
>>>>> Thank you for pointing out.
>>>>>
>>>>> Nadun De Silva.
>>>>>
>>>>> On Fri, May 5, 2017 at 2:07 PM, Nirmal Fernando <nir...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Congratulations! Please loop dev@wso2.org always.
>>>>>>
>>>>>> On Fri, May 5, 2017 at 2:05 PM, Nadun De Silva <nadun...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Thank you for accepting my proposal for "Siddhi Extension Doc Auto
>>>>>>> Generation" GSoC project.
>>>>>>>
>>>>>>> I have already implemented the following in the prototype and it is
>>>>>>> available in a GitHub repository [1].
>>>>>>>
>>>>>>>- Retrieving annotated metadata using ClassIndex library
>>>>>>>- Generating documentation using the retrieved metadata
>>>>>>>   - Generating HTML and markdown documentation using Apache
>>>>>>>   FreeMarker.
>>>>>>>   - Generating HTML documentation file using HandlebarsJS had
>>>>>>>   been implemented as well since it was the recommended templating 
>>>>>>> engine.
>>>>>>>   (However, I don't think we can use this approach for markdown 
>>>>>>> files since
>>>>>>>   Handlebars is a JS library)
>>>>>>>
>>>>>>> As of now, I am saving the generated documentation files inside the
>>>>>>> "target/" directory and I have only created simple HTML files since I am
>>>>>>> not sure of the themes that should be used.
>>>>>>>
>>>>>>> Please correct me if my current approach is not what is expected.
>>>>>>>
>>>>>>> Also, I would be grateful if we can elaborate further on our plan
>>>>>>> for the upcoming months; whether we should stick with my proposal [2] or
>>>>>>> whether there should be any deviations from it (especially regarding the
>>>>>>> method for combining multiple documentation into a single 
>>>>>>> documentation. In
>>>>>>> the proposal, I suggested my initial idea where we could retrieve the
>>>>>>> documentation files in all the repositories using the GitHub Contents 
>>>&

Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-05-09 Thread Sriskandarajah Suhothayan
ntation files in all the repositories using the GitHub Contents API
>>>> and combine them using a completely separate program.).
>>>>
>>>> Thank you again for accepting my proposal. Hope to have a great
>>>> experience in doing the project in the upcoming months.
>>>>
>>>> [1] https://github.com/nadundesilva/wso2-siddhi-extension-do
>>>> cumentation-generator
>>>> [2] https://docs.google.com/document/d/1amSz_YXZjCP9FYmLyG0Y
>>>> VGog7LrlSSIfferhVNN2En8/edit?usp=sharing
>>>>
>>>> Thanks,
>>>> Nadun De Silva
>>>>
>>>> On Mon, Apr 3, 2017 at 8:49 PM, Nadun De Silva <nadun...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have submitted the final proposal via the GSoC web portal. Thank you
>>>>> very much for all the support given.
>>>>>
>>>>> On Sat, Apr 1, 2017 at 11:02 AM, Nadun De Silva <nadun...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Thank you for the updates. I will make the necessary changes and
>>>>>> submit.
>>>>>>
>>>>>> On Fri, Mar 31, 2017 at 2:52 PM, Sriskandarajah Suhothayan <
>>>>>> s...@wso2.com> wrote:
>>>>>>
>>>>>>> I have given some update in the proposal please fix and submit.
>>>>>>>
>>>>>>> On Mon, Mar 27, 2017 at 4:24 PM, Nadun De Silva <nadun...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I have prepared a proposal and I have shared it with WSO2 via the
>>>>>>>> GSoC web portal.
>>>>>>>>
>>>>>>>> In the proposal, I have not gone into detail about the design and
>>>>>>>> implementation of the "combination of documentation" part (deliverable
>>>>>>>> 3) since we have not completely finalised details on how we should do 
>>>>>>>> that.
>>>>>>>> Would that be enough for the proposal?
>>>>>>>>
>>>>>>>> Please let me know if there are any changes required in the
>>>>>>>> proposal. I am hoping to submit the final proposal based any 
>>>>>>>> suggestions
>>>>>>>> received from you.
>>>>>>>>
>>>>>>>> Thank you.
>>>>>>>>
>>>>>>>> On Fri, Mar 17, 2017 at 7:09 PM, Nadun De Silva <nadun...@gmail.com
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> For HTML pages we can use Handlebars JS. I'm not sure if we can do
>>>>>>>>> so for MD files.
>>>>>>>>>
>>>>>>>>> I will research further and try out both template engines.
>>>>>>>>>
>>>>>>>>> Thank you.
>>>>>>>>>
>>>>>>>>> On Fri, Mar 17, 2017 at 5:48 PM, Nirmal Fernando <nir...@wso2.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> You can try handlebars JS as well. https://github.com/wycat
>>>>>>>>>> s/handlebars.js/
>>>>>>>>>>
>>>>>>>>>> On Fri, Mar 17, 2017 at 12:44 PM, Nadun De Silva <
>>>>>>>>>> nadun...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> Thank you for the information.
>>>>>>>>>>>
>>>>>>>>>>> I have started to create a prototype for this project. My
>>>>>>>>>>> approach is as follows,
>>>>>>>>>>>
>>>>>>>>>>>- Loading the Siddhi extension classes using ClassIndex
>>>>>>>>>>>library used by siddhi annotations.
>>>>>>>>>>>- Generating a simple HTML skeleton using Apache FreeMarker
>>>>>>>>>>>[1] as the templat

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-08 Thread Sriskandarajah Suhothayan
+1 for the approach.
We will add the classes

On Tue, May 9, 2017 at 12:05 AM Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I will look into REST side also then. Already found good APIs to work with
> Native Calls and SOAP.
>
> I am also trying to come up with a list of classes of Siddhi Java Library
> that should be exposed via Python API.  I don't think its required to wrap
> the internal classes since their functionality is not directly used by
> Siddhi Java Library users.
>
> I will update the list of classes to be wrapped at link below. Feel free
> to add in your suggestions as well.
>
> https://docs.google.com/document/d/154ndex3OBoE0zNOLHatmMOvt2JHh9RJya2VdHlHOTl4/edit?usp=sharing
>
> Thanks and Regards,
> Madhawa
>
>
> On Sun, May 7, 2017 at 11:26 PM, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is compatible with
>> DAS 4.0 which we are still working on.
>>
>> Siddhi APIs does not drastically change from 3.x to 4.x,
>> DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs
>>
>> So apart from native APIs, if you have figured out a way to use REST and
>> SOAP we are good enough.
>>
>> Regards
>> Suho
>>
>> On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>> Need bit more clarity on what versions of products we should build on.
>>>
>>> Are we developing on DAS 3.1 (as mentioned in beginning of mail thread)
>>> or 4.0 (mentioned in previous mail) ?
>>> Also, what version of WSO2 CEP?
>>>
>>> According to my understanding so far, we are developing on Siddhi Java
>>> Library 4.0.
>>>
>>> Thanks and Regards,
>>> Madhawa
>>>
>>> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
>>>>
>>>>
>>>> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <
>>>> s...@wso2.com> wrote:
>>>>
>>>>> @Mohan on DAS 4.0 do we have similar services like admin services at
>>>>> the worker?
>>>>>
>>>>> Shall we come up with the exact list of apis that we need to have ? So
>>>>> he can also incorporate them.
>>>>>
>>>>
>>>> Yes, I have already listed some apis in [1].. Will get the finalized
>>>> list soon and share with Madhawa..
>>>>
>>>> [1]
>>>> https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmjEXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0
>>>>
>>>> Thanks,
>>>> Mohan
>>>>
>>>>
>>>>>
>>>>> Regards
>>>>> Suho
>>>>>
>>>>> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
>>>>> mo...@wso2.com> wrote:
>>>>>
>>>>>> [Adding other project mentors]
>>>>>>
>>>>>> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
>>>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>> Thank you for accepting my proposal for Project "Python API for
>>>>>>> Siddhi CEP" in GSoC.
>>>>>>>
>>>>>>> The original proposal submitted by myself is available at [1].
>>>>>>>
>>>>>>> Progress made so far is as follows.
>>>>>>>
>>>>>>>1. Figured out a good technique to access JAVA APIs from Python
>>>>>>>via Native Calls.
>>>>>>>- Pyjnius Framework supports both method calls and callbacks
>>>>>>>   between Python and Java.
>>>>>>>2. Has wrapped the basic functionality of Siddhi CEP Java
>>>>>>>Library using Python in prototype implementations [2].
>>>>>>>    3. Currently in the process of figuring out a good method to
>>>>>>>communicate with Admin Services from Python.
>>>>>>>   - Zeep API [3] seems to be a good solution. It supports SSL
>>>>>>>   as well. I have already managed to authenticate and invoke some 
>>>>>>> methods of
>>>>>>>   WSO2 DAS through this API.
>>>>>>>
>>>>>>> During the community bondi

Re: [Dev] [GSoC][Siddhi][CEP]: Siddhi Pattern for Absence of Events

2017-05-07 Thread Sriskandarajah Suhothayan
I have merged that. +1 this also should give 1 output.

Thanks for the fixes.

Regards
Suho

On Mon, May 8, 2017 at 10:18 AM, Nirmal Fernando <nir...@wso2.com> wrote:

> Again, I'd only expect one o/p;
> Event{timestamp=1494203709496, data=[WSO2, null, 4.7], isExpired=false}
>
> On Mon, May 8, 2017 at 6:25 AM, Gobinath <slgobin...@gmail.com> wrote:
>
>> Hi,
>>
>> I've found a minor bug and sent the PR [1] with the fix. Similar behavior
>> is noticed with *or* operator as well (Even after the fix). I have given
>> the code and the output below for your concern.
>>
>> // Query: e1 or e2 -> e3
>>
>> define stream Stream1 (symbol string, price float, volume int);
>> define stream Stream2 (symbol string, price float, volume int);
>>
>> @info(name = 'query1')
>> from e1=Stream1[price > 20] or e2=Stream2[price >30] -> e3=Stream2['IBM'
>> == symbol]
>> select e1.symbol as symbol1, e2.price as price2, e3.price as price3
>> insert into OutputStream;
>>
>> // Input
>> Stream1.send(new Object[]{"WSO2", 55.6f, 100});
>> Stream2.send(new Object[]{"GOOG", 72.7f, 100});
>> Stream2.send(new Object[]{"IBM", 4.7f, 100});
>>
>> // Output
>> Event{timestamp=1494203709496, data=[WSO2, null, 4.7], isExpired=false}
>> Event{timestamp=1494203709496, data=[WSO2, null, 4.7], isExpired=false}
>>
>> If it is also a bug, please do let me know without merging the PR. I will
>> fix it under the same PR.
>>
>> [1] https://github.com/wso2/siddhi/pull/345
>>
>>
>> Thanks & Regards,
>> Gobinath
>>
>> On Sun, May 7, 2017 at 2:06 PM, Gobinath <slgobin...@gmail.com> wrote:
>>
>>> Sure. I'll check the issue and send a separate PR with the fix.
>>>
>>>
>>> Thanks & Regards,
>>> Gobinath
>>>
>>> On Sun, May 7, 2017 at 1:51 PM, Sriskandarajah Suhothayan <s...@wso2.com
>>> > wrote:
>>>
>>>> Yes, it looks like a bug to me, can you check why it's happening.
>>>>
>>>> Regards
>>>> Suho
>>>>
>>>> On Sun, May 7, 2017 at 8:56 PM, Nirmal Fernando <nir...@wso2.com>
>>>> wrote:
>>>>
>>>>> Looks like a bug to me. I would expect only 1 event.
>>>>>
>>>>> On Sun, May 7, 2017 at 8:49 PM, Gobinath <slgobin...@gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Thanks for accepting my proposal. I have a question regarding the
>>>>>> behavior of *and* in a pattern.
>>>>>>
>>>>>> // Query: e1 and e2 -> e3
>>>>>>
>>>>>> define stream Stream1 (symbol string, price float, volume int);
>>>>>> define stream Stream2 (symbol string, price float, volume int);
>>>>>>
>>>>>> @info(name = 'query1')
>>>>>> from e1=Stream1[price > 50.0f] and e2=Stream2['IBM' == symbol] ->
>>>>>> e3=Stream2[price > 20]
>>>>>> select e1.symbol as symbol1, e2.price as price2, e3.price as price3
>>>>>> insert into OutputStream;
>>>>>>
>>>>>> // Input
>>>>>> Stream1.send(new Object[]{"GOOGLE", 72.7f, 100});
>>>>>> Stream2.send(new Object[]{"IBM", 4.7f, 100});
>>>>>> Stream2.send(new Object[]{"WSO2", 55.6f, 100});
>>>>>>
>>>>>>
>>>>>> // Output
>>>>>> Event{timestamp=1494169305631, data=[GOOGLE, 4.7, 55.6],
>>>>>> isExpired=false}
>>>>>> Event{timestamp=1494169305631, data=[GOOGLE, 4.7, 55.6],
>>>>>> isExpired=false}
>>>>>>
>>>>>> Is this the expected output?. Note that the output contains two
>>>>>> exactly similar events but the pattern *e1 -> e2 and e3* outputs a
>>>>>> single event [1].
>>>>>>
>>>>>> [1] https://github.com/wso2/siddhi/blob/master/modules/siddh
>>>>>> i-core/src/test/java/org/wso2/siddhi/core/query/pattern/Logi
>>>>>> calPatternTestCase.java#L98
>>>>>>
>>>>>>
>>>>>> Thanks & Regards,
>>>>>> Gobinath
>>>>>>
>>>>>> On Mon, Apr 17, 2017 at 7:58 AM, Gobinath <slgobin...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-07 Thread Sriskandarajah Suhothayan
Siddhi 3.x is compatible with DAS 3.1, and Siddhi 4.x is compatible with
DAS 4.0 which we are still working on.

Siddhi APIs does not drastically change from 3.x to 4.x,
DAS 3.1 uses SOAP and DAS 4.0 uses HTTP/REST APIs

So apart from native APIs, if you have figured out a way to use REST and
SOAP we are good enough.

Regards
Suho

On Sun, May 7, 2017 at 12:00 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Need bit more clarity on what versions of products we should build on.
>
> Are we developing on DAS 3.1 (as mentioned in beginning of mail thread) or
> 4.0 (mentioned in previous mail) ?
> Also, what version of WSO2 CEP?
>
> According to my understanding so far, we are developing on Siddhi Java
> Library 4.0.
>
> Thanks and Regards,
> Madhawa
>
> On Sat, May 6, 2017 at 1:27 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>>
>>
>> On Sat, May 6, 2017 at 9:06 AM, Sriskandarajah Suhothayan <s...@wso2.com>
>> wrote:
>>
>>> @Mohan on DAS 4.0 do we have similar services like admin services at the
>>> worker?
>>>
>>> Shall we come up with the exact list of apis that we need to have ? So
>>> he can also incorporate them.
>>>
>>
>> Yes, I have already listed some apis in [1].. Will get the finalized list
>> soon and share with Madhawa..
>>
>> [1] https://docs.google.com/spreadsheets/d/1m0sh4DLABCFzCBmj
>> EXtVTrRGM0Mc6lvyYQP6rI99zhQ/edit#gid=0
>>
>> Thanks,
>> Mohan
>>
>>
>>>
>>> Regards
>>> Suho
>>>
>>> On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
>>>> [Adding other project mentors]
>>>>
>>>> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>> Thank you for accepting my proposal for Project "Python API for Siddhi
>>>>> CEP" in GSoC.
>>>>>
>>>>> The original proposal submitted by myself is available at [1].
>>>>>
>>>>> Progress made so far is as follows.
>>>>>
>>>>>1. Figured out a good technique to access JAVA APIs from Python
>>>>>via Native Calls.
>>>>>- Pyjnius Framework supports both method calls and callbacks
>>>>>   between Python and Java.
>>>>>2. Has wrapped the basic functionality of Siddhi CEP Java Library
>>>>>using Python in prototype implementations [2].
>>>>>3. Currently in the process of figuring out a good method to
>>>>>communicate with Admin Services from Python.
>>>>>   - Zeep API [3] seems to be a good solution. It supports SSL as
>>>>>   well. I have already managed to authenticate and invoke some 
>>>>> methods of
>>>>>   WSO2 DAS through this API.
>>>>>
>>>>> During the community bonding period, my plan is to gain more clarity
>>>>> on expected architecture of the system such as what sort of a public
>>>>> interface would be suitable for the Python API. I also hope to learn more
>>>>> on Admin Services Interface of WSO2 DAS.
>>>>>
>>>>> Would you like to see any changes in the proposal? Shall I proceed as
>>>>> per the plan their?
>>>>>
>>>>> [1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc
>>>>> /view?usp=sharing
>>>>> [2] - https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>>>>> nius_Prototype_Wrap_Python2_3
>>>>> [3] - http://docs.python-zeep.org/en/master/
>>>>>
>>>>> Thanks and Regards,
>>>>>
>>>>> Madhawa
>>>>>
>>>>> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan <
>>>>> s...@wso2.com> wrote:
>>>>>
>>>>>> Great
>>>>>>
>>>>>> Suho
>>>>>>
>>>>>> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
>>>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Suho,
>>>>>>>
>>>>>>> I have submitted the final proposal through GSoC Dashboard. Thank
>>>>>>> you for all the support given.
>>>>>>>
>>

Re: [Dev] [GSoC][Siddhi][CEP]: Siddhi Pattern for Absence of Events

2017-05-07 Thread Sriskandarajah Suhothayan
Yes, it looks like a bug to me, can you check why it's happening.

Regards
Suho

On Sun, May 7, 2017 at 8:56 PM, Nirmal Fernando <nir...@wso2.com> wrote:

> Looks like a bug to me. I would expect only 1 event.
>
> On Sun, May 7, 2017 at 8:49 PM, Gobinath <slgobin...@gmail.com> wrote:
>
>> Hi,
>>
>> Thanks for accepting my proposal. I have a question regarding the
>> behavior of *and* in a pattern.
>>
>> // Query: e1 and e2 -> e3
>>
>> define stream Stream1 (symbol string, price float, volume int);
>> define stream Stream2 (symbol string, price float, volume int);
>>
>> @info(name = 'query1')
>> from e1=Stream1[price > 50.0f] and e2=Stream2['IBM' == symbol] ->
>> e3=Stream2[price > 20]
>> select e1.symbol as symbol1, e2.price as price2, e3.price as price3
>> insert into OutputStream;
>>
>> // Input
>> Stream1.send(new Object[]{"GOOGLE", 72.7f, 100});
>> Stream2.send(new Object[]{"IBM", 4.7f, 100});
>> Stream2.send(new Object[]{"WSO2", 55.6f, 100});
>>
>>
>> // Output
>> Event{timestamp=1494169305631, data=[GOOGLE, 4.7, 55.6], isExpired=false}
>> Event{timestamp=1494169305631, data=[GOOGLE, 4.7, 55.6], isExpired=false}
>>
>> Is this the expected output?. Note that the output contains two exactly
>> similar events but the pattern *e1 -> e2 and e3* outputs a single event
>> [1].
>>
>> [1] https://github.com/wso2/siddhi/blob/master/modules/siddh
>> i-core/src/test/java/org/wso2/siddhi/core/query/pattern/Logi
>> calPatternTestCase.java#L98
>>
>>
>> Thanks & Regards,
>> Gobinath
>>
>> On Mon, Apr 17, 2017 at 7:58 AM, Gobinath <slgobin...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Please see the PR at [1]. Please do not merge it.
>>>
>>>
>>> Thanks & Regards,
>>> Gobinath
>>>
>>> [1] https://github.com/wso2/siddhi/pull/313
>>>
>>>
>>> On Mon, Apr 17, 2017 at 7:44 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
>>>> Based on first look, it looks great.
>>>>
>>>> Can you send it as a PR so I can see the exact implementations and also
>>>> give comments.
>>>>
>>>> Regards
>>>> Suho
>>>>
>>>> On Mon, Apr 17, 2017 at 5:30 AM, Gobinath <slgobin...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> A prototype is implemented and available at [1]. Currently the query
>>>>> support for absent patterns and two simple pattern identifications (e1
>>>>> -> not e2 and not e1 -> e2) are implemented. Please have a look at
>>>>> the unit test [2] to get the idea. Class names and variable names are
>>>>> subject to change (will finalize later). I am waiting for your feedback.
>>>>>
>>>>>
>>>>> Thanks & Regards,
>>>>> Gobinath
>>>>>
>>>>>
>>>>> [1] https://github.com/lgobinath/siddhi/tree/feature-absent-
>>>>> event-pattern
>>>>> [2] https://github.com/lgobinath/siddhi/blob/feature-absent-
>>>>> event-pattern/modules/siddhi-core/src/test/java/org/wso2/sid
>>>>> dhi/core/query/pattern/EveryAbsentPatternTestCase.java
>>>>>
>>>>>
>>>>> On Fri, Mar 31, 2017 at 6:28 AM, Gobinath <slgobin...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> Thanks Suho for your feedback. I have made the changes based on your
>>>>>> suggestions and submitted the final proposal. Started working on a
>>>>>> prototype and will update you soon with the results.
>>>>>>
>>>>>>
>>>>>> Thanks & Regards,
>>>>>> Gobinath
>>>>>>
>>>>>> On Thu, Mar 30, 2017 at 12:28 PM, Sriskandarajah Suhothayan <
>>>>>> s...@wso2.com> wrote:
>>>>>>
>>>>>>> I have given some feedback on the gsoc site.
>>>>>>>
>>>>>>> Suho
>>>>>>>
>>>>>>> On Mon, Mar 27, 2017 at 9:03 PM, Gobinath <slgobin...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> Thanks. I h

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-05 Thread Sriskandarajah Suhothayan
@Mohan on DAS 4.0 do we have similar services like admin services at the
worker?

Shall we come up with the exact list of apis that we need to have ? So he
can also incorporate them.

Regards
Suho

On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> [Adding other project mentors]
>
> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>> Thank you for accepting my proposal for Project "Python API for Siddhi
>> CEP" in GSoC.
>>
>> The original proposal submitted by myself is available at [1].
>>
>> Progress made so far is as follows.
>>
>>1. Figured out a good technique to access JAVA APIs from Python via
>>Native Calls.
>>- Pyjnius Framework supports both method calls and callbacks between
>>   Python and Java.
>>2. Has wrapped the basic functionality of Siddhi CEP Java Library
>>using Python in prototype implementations [2].
>>3. Currently in the process of figuring out a good method to
>>communicate with Admin Services from Python.
>>   - Zeep API [3] seems to be a good solution. It supports SSL as
>>   well. I have already managed to authenticate and invoke some methods of
>>   WSO2 DAS through this API.
>>
>> During the community bonding period, my plan is to gain more clarity on
>> expected architecture of the system such as what sort of a public interface
>> would be suitable for the Python API. I also hope to learn more on Admin
>> Services Interface of WSO2 DAS.
>>
>> Would you like to see any changes in the proposal? Shall I proceed as per
>> the plan their?
>>
>> [1] -
>> https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc/view?usp=sharing
>> [2] -
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyjnius_Prototype_Wrap_Python2_3
>> [3] - http://docs.python-zeep.org/en/master/
>>
>> Thanks and Regards,
>>
>> Madhawa
>>
>> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan <s...@wso2.com>
>> wrote:
>>
>>> Great
>>>
>>> Suho
>>>
>>> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
>>>> Hi Suho,
>>>>
>>>> I have submitted the final proposal through GSoC Dashboard. Thank you
>>>> for all the support given.
>>>>
>>>> Looking forward for a great GSoC with WSO2.
>>>>
>>>> Regards,
>>>> Madhawa
>>>>
>>>>
>>>> On Monday, March 27, 2017, Madhawa Vidanapathirana <
>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have shared the finalized draft proposal via the Google Summer of
>>>>> Code Web Portal. Kindly let me know if any changes are required.
>>>>> Hoping to submit the final proposal with changes based on your
>>>>> feedback.
>>>>>
>>>>> Regards,
>>>>> Madhawa
>>>>>
>>>>>
>>>>> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
>>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Good news.
>>>>>>
>>>>>> Requested a release from Pyjnius Developer Team [1] and managed to
>>>>>> get a new release [2] to Python Package Index (PIP). Therefore, we no
>>>>>> longer have to develop their library from GitHub code.
>>>>>> We can simply consider it as a dependency which gets auto installed
>>>>>> when our final product is deployed.
>>>>>>
>>>>>> [1] -
>>>>>> https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
>>>>>> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>>>>>>
>>>>>> Pyjnius is a library which can be used for calling Java methods from
>>>>>> Python and obtaining callback responses. It uses native method calls.
>>>>>>
>>>>>> Regards,
>>>>>> Madhawa
>>>>>>
>>>>>> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
>>>>>> s...@wso2.com> wrote:
>>>>>>
>>>>>>> Good to know that it worked :)
>>>>>>>
>>>>

Re: [Dev] Basic Authentication will skip for publishing to HTTP endpoint

2017-05-04 Thread Sriskandarajah Suhothayan
Thanks we'll fix this in future releases.



On Thu, May 4, 2017 at 11:42 AM, Lakshman Udayakantha 
wrote:

> Hi Analytics team,
>
> I have come across the $subject while publishing data to DAS 3.1.0. I was
> publishing data to an http event receiver in DAS. It seems like
> exposedTransport "all" case, it checks for the request has been made with a
> secure channel [1]. So basic auth will work only in https case. Created an
> issue [2] for this.
>
> [1] https://github.com/wso2/carbon-analytics-common/blob/
> 5.1.x/components/event-receiver/event-input-adapters/
> org.wso2.carbon.event.input.adapter.http/src/main/java/
> org/wso2/carbon/event/input/adapter/http/HTTPMessageServlet.java#L161
> [2] https://github.com/wso2/carbon-analytics-common/issues/339
>
> Thanks,
> Lakshman.
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601 <071%20742%209601>*
>
>


-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Data Analytics Server 4.0.0-M2 Released !

2017-04-27 Thread Sriskandarajah Suhothayan
Hi All,

The WSO2 Smart Analytics  team is pleased
to announce the release of WSO2 Data Analytics Server version 4.0.0
Milestone 2.

WSO2 Smart Analytics let digital business creating real-time, intelligent,
actionable business insights, and data products which are achieved by WSO2
Data Analytics Server's real-time, incremental  & intelligent data
processing capabilities.

WSO2 DAS can:

   - Receive events from various data sources
   - Process & correlate them in real-time with the sate of the art
   high-performance real-time Siddhi Complex Event Processing Engine that
   works with easy to learn the SQL-Like query language.
   - Process analysis that spans for longer time duration with its
   incremental processing capability by achieving high performance with low
   infrastructure cost.
   - Uses Machine Learning and other models to drive intelligent insights
   from the data
   - Notifications interesting event occurrences as alerts via multiple
   transports & let users visualize the results via customizable dashboards.

WSO2 DAS is released under Apache Software License Version 2.0
, one of the most
business-friendly licenses available today.

You can find the product at
https://github.com/wso2/product-das/releases/download/v4.0.0-M2/wso2das-4.0.0-M2.zip
Documentation at https://docs.wso2.com/display/DAS400/
Source code at https://github.com/wso2/product-das/releases/tag/v4.0.0-M2

WSO2 DAS 4.0.0-M2 includes following new features.

New Features

   - XML input and output mapping support
   - Siddhi syntax highlighting and query autocompletion for Data Analytics
   Editor
   - Better support for In-Memory table indexing with @PrimaryKey and
   @Index annotations
   - Event simulator to send a single event and to simulate .csv files

Reporting *Issues*
Issues can be reported using the public JIRA available at
https://wso2.org/jira/browse/DAS
Contact usWSO2 Data Analytics Server developers can be contacted via the
mailing lists:

   Developer List : dev@wso2.org | Subscribe
 | Mail Archive


Alternatively, questions can also be raised in the stackoverflow:
*Forum* http://stackoverflow.com/questions/tagged/wso2/

Support

We are committed to ensuring that your enterprise middleware deployment is
completely supported from evaluation to production. Our unique approach
ensures that all support leverages our open development methodology and is
provided by the very same engineers who build the technology.

For more details and to take advantage of this unique opportunity please
visit http://wso2.com/support/.

For more information on WSO2 Smart Analytics and Smart Analytics Solutions,
visit the WSO2 Smart Analytics Page .
*-The WSO2 WSO2 Smart Analytics Team- *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC][Siddhi][CEP]: Siddhi Pattern for Absence of Events

2017-04-17 Thread Sriskandarajah Suhothayan
Based on first look, it looks great.

Can you send it as a PR so I can see the exact implementations and also
give comments.

Regards
Suho

On Mon, Apr 17, 2017 at 5:30 AM, Gobinath <slgobin...@gmail.com> wrote:

> Hi,
>
> A prototype is implemented and available at [1]. Currently the query
> support for absent patterns and two simple pattern identifications (e1 ->
> not e2 and not e1 -> e2) are implemented. Please have a look at the unit
> test [2] to get the idea. Class names and variable names are subject to
> change (will finalize later). I am waiting for your feedback.
>
>
> Thanks & Regards,
> Gobinath
>
>
> [1] https://github.com/lgobinath/siddhi/tree/feature-absent-event-pattern
> [2] https://github.com/lgobinath/siddhi/blob/feature-
> absent-event-pattern/modules/siddhi-core/src/test/java/org/
> wso2/siddhi/core/query/pattern/EveryAbsentPatternTestCase.java
>
>
> On Fri, Mar 31, 2017 at 6:28 AM, Gobinath <slgobin...@gmail.com> wrote:
>
>> Hi all,
>>
>> Thanks Suho for your feedback. I have made the changes based on your
>> suggestions and submitted the final proposal. Started working on a
>> prototype and will update you soon with the results.
>>
>>
>> Thanks & Regards,
>> Gobinath
>>
>> On Thu, Mar 30, 2017 at 12:28 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> I have given some feedback on the gsoc site.
>>>
>>> Suho
>>>
>>> On Mon, Mar 27, 2017 at 9:03 PM, Gobinath <slgobin...@gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> Thanks. I have shared the draft of my proposal titled "Non-Occurrence
>>>> of Events for Siddhi Patterns" with WSO2 through GSoC dashboard and
>>>> requesting your feedback on this.
>>>>
>>>>
>>>> Thanks & Regards,
>>>> Gobinath
>>>>
>>>> On Wed, Mar 15, 2017 at 1:30 PM, Sriskandarajah Suhothayan <
>>>> s...@wso2.com> wrote:
>>>>
>>>>> Thanks for the GSoC idea, I hope this will be a good way to improve
>>>>> the Siddhi language and make it more powerfull.
>>>>> If time permits we can also add other use-cases of patterns &
>>>>> sequences and improve it further.
>>>>>
>>>>> Since you are still not a commuter I hope these contributions will
>>>>> help you be a committer to Siddhi as well :)
>>>>> I'll make this as a formal idea, do work on a proposal as well.
>>>>>
>>>>> Regards
>>>>> Suho
>>>>>
>>>>>
>>>>> On Wed, Mar 15, 2017 at 6:09 PM, Gobinath <slgobin...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi team,
>>>>>>
>>>>>> This is Gobinath a former software engineer at WSO2 currently doing
>>>>>> masters at Western University. This time I plan to do GSoC with WSO2 and
>>>>>> this is the basic idea of what I have discussed with Suho.
>>>>>> Based on Suho's suggestion, I come up with a proposal to implement
>>>>>> detecting non-occurring events using Siddhi patterns. The current Siddhi
>>>>>> patterns allow identifying the patterns that present.
>>>>>>
>>>>>> See an example:
>>>>>> from every e1=Stream1[price>20] -> e2=Stream2[price>e1.price] within
>>>>>> 1 sec
>>>>>> select e1.symbol as symbol1, e2.symbol as symbol2
>>>>>> insert into OutputStream;
>>>>>>
>>>>>> Detecting the absence of a pattern is not natively supported by
>>>>>> Siddhi patterns for the moment. In other words, identifying event_a not
>>>>>> followed by event_b within 2 minutes is not possible using the current
>>>>>> patterns implementation (Note that a time frame is required otherwise we
>>>>>> have to wait for infinite time to say event_b has not arrived). The 
>>>>>> current
>>>>>> workaround [1] to detect non-delivered items is shown below:
>>>>>>
>>>>>> from arrivals_stream#window.time(2 minutes)
>>>>>> select *
>>>>>> insert expired events into overdue_deliveries_stream;
>>>>>>
>>>>>> from every arrivalEvent = arrivals_stream ->
>>>>>> deliveryEvent = deliveries_stream[arrivalEvent.trackingId ==
>>>>>

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-04-04 Thread Sriskandarajah Suhothayan
Great

Suho

On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> I have submitted the final proposal through GSoC Dashboard. Thank you for
> all the support given.
>
> Looking forward for a great GSoC with WSO2.
>
> Regards,
> Madhawa
>
>
> On Monday, March 27, 2017, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> I have shared the finalized draft proposal via the Google Summer of Code
>> Web Portal. Kindly let me know if any changes are required.
>> Hoping to submit the final proposal with changes based on your feedback.
>>
>> Regards,
>> Madhawa
>>
>>
>> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Good news.
>>>
>>> Requested a release from Pyjnius Developer Team [1] and managed to get a
>>> new release [2] to Python Package Index (PIP). Therefore, we no longer have
>>> to develop their library from GitHub code.
>>> We can simply consider it as a dependency which gets auto installed when
>>> our final product is deployed.
>>>
>>> [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
>>> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>>>
>>> Pyjnius is a library which can be used for calling Java methods from
>>> Python and obtaining callback responses. It uses native method calls.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
>>>> Good to know that it worked :)
>>>>
>>>> Regards
>>>> Suho
>>>>
>>>> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>
>>>>> Hi Suho,
>>>>>
>>>>> Got the prototype working with Python 3 as well. Refer the link below
>>>>> for sources.
>>>>>
>>>>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>>>>> nius_Prototype_Wrap_Python2_3
>>>>>
>>>>> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
>>>>> 3.5). Uses native calls via Pyjnius API.
>>>>>
>>>>> Please note: When you are installing Pyjnius from source, don't use
>>>>> the same local copy of source files for both Python2 and Python3. The
>>>>> install scripts of Pyjnius leaves temporary files that make subsequent
>>>>> installs on a different version of Python fail.
>>>>>
>>>>> Regards,
>>>>> Madhawa
>>>>>
>>>>>
>>>>> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
>>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>>
>>>>>> Hi Suho,
>>>>>>
>>>>>> Installation via PIP can be done. I will add it to Project Proposal.
>>>>>>
>>>>>> Regards,
>>>>>> Madhawa
>>>>>>
>>>>>> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
>>>>>> s...@wso2.com> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
>>>>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Suho,
>>>>>>>>
>>>>>>>> Going ahead with the proposal, few questions crossed my mind.
>>>>>>>>
>>>>>>>>1. You mentioned previously that WSO2 DAS should also be
>>>>>>>>supported. What sort of interactions are expected with WSO2 DAS?
>>>>>>>>1. Should publishing events to WSO2 DAS from Python Siddhi API
>>>>>>>>   supported?
>>>>>>>>   2. Should deploying of Siddhi Queries to WSO2 DAS through
>>>>>>>>   Python Siddhi API be supported?
>>>>>>>>   3. Any other expectations?
>>>>>>>>
>>>>>>>>
>>>>>>> For the integration with DAS we can use HTTP calls and deploy Siddhi
>>>>>>> queries an

Re: [Dev] Idea Plugin for Siddhi

2017-04-04 Thread Sriskandarajah Suhothayan
Great

Suho

On Tue, Apr 4, 2017 at 1:00 PM, Dulaj Atapattu 
wrote:

> Hi,
>
> I have submitted the final proposal to GSoC dashboard. Thank you very much
> for all the support given. Hoping to have a good experience with WSO2 at
> GSoC.
>
> Thank you
>
> On 3 Apr 2017 4:26 p.m., "Dulaj Atapattu" 
> wrote:
>
>> Hi Tishan and Suho,
>>
>> I uploaded my final proposal to the GSoC dashboard. If it's not a trouble
>> for you, can you have a look and inform me any necessary changes before the
>> deadline.
>>
>> Thank You.
>>
>> On Mon, Apr 3, 2017 at 12:00 PM, Dulaj Atapattu <
>> dulaj.r.atapa...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have some improvements to do the draft proposal. Then I will submit my
>>> final proposal to the GSoC dashboard. I kindly request your any kind of
>>> comment on my proposal before submitting the final one.
>>>
>>> Thank you.
>>>
>>> On 30 Mar 2017 2:06 a.m., "Dulaj Atapattu" 
>>> wrote:
>>>
>>> Hi Tishan,
>>>
>>> I applied the suggested changes to the draft proposal. I kindly request
>>> you to have a look and give your feedback.
>>>
>>> Thank you.
>>>
>>> On Wed, Mar 29, 2017 at 10:52 PM, Dulaj Atapattu <
>>> dulaj.r.atapa...@gmail.com> wrote:
>>>
 Hi Tishan,


 Can you made some comments on the parts needed to be improved?

 Thank you.

 On Wed, Mar 29, 2017 at 10:48 PM, Tishan Dahanayakage 
 wrote:

> Proposal reviewed.
>
> /Tishan
>
> On Tue, Mar 28, 2017 at 4:05 PM, Dulaj Atapattu <
> dulaj.r.atapa...@gmail.com> wrote:
>
>> Hi,
>>
>> I shared my draft proposal through the GSoC dashboard. Your comments
>> and feedback are highly appreciated.
>>
>> Thank you.
>>
>> On Tue, Mar 28, 2017 at 11:20 AM, Shan Mahanama 
>> wrote:
>>
>>> Hi Dulaj,
>>>
>>> Some steps are redundant. Please find my comment inline.
>>>
>>>
> *Installation instructions:*
>
>- Download the zip file
>- Copy zip file to /home/user/.IdeaIC2017.1/config/plugins
>
> You don't have to manually copy the zip file to this location. You
>>> can just download the zip file and select that downloaded zip file
>>> in the *Install plugin from disk* step.
>>>

>- Restart IntelliJ IDEA
>
> This is also not needed.
>>>

>- Go to Settings -> Plugins choose Install plugin from disk
>- Choose the zip
>- Restart IntelliJ IDEA
>- Create a file with extension .sid (Ex: sample.sid)
>
> Thanks,
>>> Shan.
>>>
>>> --
>>> Shan Mahanama
>>>
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> 
>>> Email: sh...@wso2.com
>>> Mobile: +94 71 2000 498
>>>
>>>
>>>
>>
>>
>> --
>> *Dulaj Atapattu*
>> Secretary | IEEE Computer Society
>> Undergraduate | Department of Computer Science and Engineering
>> University of Moratuwa
>> Tel: +94712481879 <+94%2071%20248%201879>
>> [image:
>> https://twitter.com/DRAtapattu] [image:
>> https://www.facebook.com/dulaj.atapattu]
>> 
>>
>
>
>
> --
> Tishan Dahanayakage
> Senior Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328 <071%20648%201328>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender 
> indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



 --
 *Dulaj Atapattu*
 Secretary | IEEE Computer Society
 Undergraduate | Department of Computer Science and Engineering
 University of Moratuwa
 Tel: +94712481879 <071%20248%201879>
 [image:
 https://twitter.com/DRAtapattu] [image:
 https://www.facebook.com/dulaj.atapattu]
 

>>>
>>>
>>>
>>> --
>>> *Dulaj Atapattu*
>>> Secretary | IEEE Computer Society
>>> Undergraduate | Department of Computer Science and Engineering
>>> University of Moratuwa
>>> Tel: +94712481879 

Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-03-31 Thread Sriskandarajah Suhothayan
I have given some update in the proposal please fix and submit.

On Mon, Mar 27, 2017 at 4:24 PM, Nadun De Silva <nadun...@gmail.com> wrote:

> Hi,
>
> I have prepared a proposal and I have shared it with WSO2 via the GSoC web
> portal.
>
> In the proposal, I have not gone into detail about the design and
> implementation of the "combination of documentation" part (deliverable
> 3) since we have not completely finalised details on how we should do that.
> Would that be enough for the proposal?
>
> Please let me know if there are any changes required in the proposal. I am
> hoping to submit the final proposal based any suggestions received from you.
>
> Thank you.
>
> On Fri, Mar 17, 2017 at 7:09 PM, Nadun De Silva <nadun...@gmail.com>
> wrote:
>
>> Hi,
>>
>> For HTML pages we can use Handlebars JS. I'm not sure if we can do so for
>> MD files.
>>
>> I will research further and try out both template engines.
>>
>> Thank you.
>>
>> On Fri, Mar 17, 2017 at 5:48 PM, Nirmal Fernando <nir...@wso2.com> wrote:
>>
>>> You can try handlebars JS as well. https://github.com/wycat
>>> s/handlebars.js/
>>>
>>> On Fri, Mar 17, 2017 at 12:44 PM, Nadun De Silva <nadun...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Thank you for the information.
>>>>
>>>> I have started to create a prototype for this project. My approach is
>>>> as follows,
>>>>
>>>>- Loading the Siddhi extension classes using ClassIndex library
>>>>used by siddhi annotations.
>>>>- Generating a simple HTML skeleton using Apache FreeMarker [1] as
>>>>the template engine.
>>>>- Running the above logic from a Mojo.
>>>>
>>>> Please correct me if my approach is not what is expected. I have pushed
>>>> the above implementation to a GitHub repository. [2]
>>>>
>>>> I will also start working on the proposal.
>>>>
>>>> [1] http://freemarker.org/
>>>> [2] https://github.com/nadundesilva/wso2-siddhi-extension-do
>>>> cumentation-generator
>>>>
>>>> Thank you.
>>>>
>>>> On Wed, Mar 15, 2017 at 1:00 AM, Sriskandarajah Suhothayan <
>>>> s...@wso2.com> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Tue, Mar 14, 2017 at 7:38 PM, Nadun De Silva <nadun...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Thank you for the response. I have researched a bit more and have few
>>>>>> more follow-up questions
>>>>>>
>>>>>> It will not be in the current Siddhi format, we are thinking of a
>>>>>>> plain HTML and MD files which can be part of Siddhi Docs in Github.
>>>>>>
>>>>>>
>>>>>> Then I think when the Mojo is executed, I should create the HTML and
>>>>>> MD files inside the maven project so that with each push, the
>>>>>> GitHub repos are updated. Is this what is expected?
>>>>>>
>>>>> Yes
>>>>>
>>>>>>
>>>>>> Can have multiple pages (one per namespace) and having index and
>>>>>>> navigation across is good. Please present your suggestion we can discuss
>>>>>>> and come to a conclusion on this.
>>>>>>>
>>>>>>
>>>>>> Since by the time the combination happens, all the documentation is
>>>>>> in GitHub repos, my suggestion would be to get the content of the 
>>>>>> generated
>>>>>> HTML files using the GitHub contents API [1] and then combine them. But
>>>>>> this will be a separate program which will be run for the combination 
>>>>>> alone.
>>>>>>
>>>>>> If we decide to use this approach, I would suggest implementing one
>>>>>> of the following or any other method for rerunning the combination 
>>>>>> process.
>>>>>>
>>>>>>- A server listening to GitHub webhooks [2]
>>>>>>- A scheduled task
>>>>>>
>>>>>> What is your opinion about this approach?
>>>>>>
>>>>>> We are moving extensions to wso2-extensions repo[5] and going to host
>>>>> all of them in the ext

Re: [Dev] [GSoC][Siddhi][CEP]: Siddhi Pattern for Absence of Events

2017-03-30 Thread Sriskandarajah Suhothayan
I have given some feedback on the gsoc site.

Suho

On Mon, Mar 27, 2017 at 9:03 PM, Gobinath <slgobin...@gmail.com> wrote:

> Hi all,
>
> Thanks. I have shared the draft of my proposal titled "Non-Occurrence of
> Events for Siddhi Patterns" with WSO2 through GSoC dashboard and requesting
> your feedback on this.
>
>
> Thanks & Regards,
> Gobinath
>
> On Wed, Mar 15, 2017 at 1:30 PM, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> Thanks for the GSoC idea, I hope this will be a good way to improve the
>> Siddhi language and make it more powerfull.
>> If time permits we can also add other use-cases of patterns & sequences
>> and improve it further.
>>
>> Since you are still not a commuter I hope these contributions will help
>> you be a committer to Siddhi as well :)
>> I'll make this as a formal idea, do work on a proposal as well.
>>
>> Regards
>> Suho
>>
>>
>> On Wed, Mar 15, 2017 at 6:09 PM, Gobinath <slgobin...@gmail.com> wrote:
>>
>>> Hi team,
>>>
>>> This is Gobinath a former software engineer at WSO2 currently doing
>>> masters at Western University. This time I plan to do GSoC with WSO2 and
>>> this is the basic idea of what I have discussed with Suho.
>>> Based on Suho's suggestion, I come up with a proposal to implement
>>> detecting non-occurring events using Siddhi patterns. The current Siddhi
>>> patterns allow identifying the patterns that present.
>>>
>>> See an example:
>>> from every e1=Stream1[price>20] -> e2=Stream2[price>e1.price] within 1
>>> sec
>>> select e1.symbol as symbol1, e2.symbol as symbol2
>>> insert into OutputStream;
>>>
>>> Detecting the absence of a pattern is not natively supported by Siddhi
>>> patterns for the moment. In other words, identifying event_a not followed
>>> by event_b within 2 minutes is not possible using the current patterns
>>> implementation (Note that a time frame is required otherwise we have to
>>> wait for infinite time to say event_b has not arrived). The current
>>> workaround [1] to detect non-delivered items is shown below:
>>>
>>> from arrivals_stream#window.time(2 minutes)
>>> select *
>>> insert expired events into overdue_deliveries_stream;
>>>
>>> from every arrivalEvent = arrivals_stream ->
>>> deliveryEvent = deliveries_stream[arrivalEvent.trackingId == trackingId]
>>> or overdue_delivery = overdue_deliveries_stream[arrivalEvent.trackingId
>>> == trackingId]
>>> select arrivalEvent.trackingId as trackingId, arrivalEvent.customerName
>>> as customerName, arrivalEvent.telephoneNo as telephoneNo,
>>> deliveryEvent.trackingId as deliveryId
>>> insert into filter_stream;
>>>
>>> from filter_stream [ (deliveryId is null)]
>>> select trackingId, customerName, telephoneNo
>>> insert into alert_stream;
>>>
>>> This solution requires a time window and it is inefficient if we are
>>> interested only on one occurrence of such a pattern (In other words same
>>> query without every keyword). Further, the query is more complex and not
>>> user-friendly.
>>>
>>> If we provide patterns to detect absence of patterns, the above query
>>> can be rewritten as below:
>>>
>>> from every arrivalEvent = arrivals_stream ->  (not
>>> deliveries_stream[arrivalEvent.trackingId == trackingId] within 2 min )
>>> select arrivalEvent.trackingId as trackingId, arrivalEvent.customerName
>>> as customerName, arrivalEvent.telephoneNo as telephoneNo
>>> insert into alert_stream;
>>>
>>> As you can see, we can use the existing language components like not &
>>> within. This can be achieved by extending the existing
>>> StreamPreStateProcessors and StreamPostStateProcessors with an internal
>>> timer so that they can expire their internal list of events based on the
>>> time limit. It is somewhat similar to time windows but the processor can
>>> turn off the timer and ignore the events if it is a one time pattern
>>> detection.
>>>
>>> I hope it gives the basic idea and I am waiting for your suggestions and
>>> feedback.
>>>
>>> [1] https://docs.wso2.com/display/CEP400/Sample+0111+-+Detec
>>> ting+non-occurrences+with+Patterns
>>>
>>>
>>> Thanks & Regards,
>>> Gobinath
>>> --
>>> *Gobinath** Loganathan*
>>> Graduate Student,
>&

Re: [Dev] about GSOC

2017-03-30 Thread Sriskandarajah Suhothayan
Your idea looks good, I have given some comments on the GSoC site.
Also please also send the message to d...@wso2.com in the future.

Suho

On Wed, Mar 29, 2017 at 6:45 AM, 정형근  wrote:

> Hello, I am a graduate student at Chungnam National University in Korea.
> Last time I asked you questions related to GSOC 2017.
> You said, "Since you are also familiar in this space, we can also bring
> your suggestions as projects if you have any."
> I've been running the WSO2 tutorial and looking at the code for siddhi.
> I have seen Siddhi's paser acting as Antlr, and I would like to talk to
> Manto about my ideas on this part.
> I also know that you are in charge of the siddhi language. I am interested
> in the optimize side, and do you have a document that allows you to use
> siddhi smartly?
>
> My previous email address was tmxhsf...@naver.com.
>
>
>


-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC] Proposal 24 : Real-Time Machine Learning Toolkit for Siddhi

2017-03-30 Thread Sriskandarajah Suhothayan
@Upul can you go through this.


On Wed, Mar 29, 2017 at 8:38 PM, Nadheesh Jihan  wrote:

> Hi,
>
> I have shared the draft proposal for the GSoC proposal - 24 via the GSoC
> web portal. Please review it and let me know if there are any changes
> required in the proposal.
>
> I have changed the proposal according to the our last discussion. Please
> check if the diagrams represent those details correctly.
>
> Thank you.
> --
> Best regards,
> *Nadheesh Jihan*
> Undergraduate | Department of Computer Science and Engineering
> Faculty of Engineering
> University of Moratuwa
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Data Analytics Server 4.0.0-M1 Released !

2017-03-29 Thread Sriskandarajah Suhothayan
Hi All,

The WSO2 Smart Analytics  team is pleased
to announce the release of WSO2 Data Analytics Server version 4.0.0-M1.

WSO2 Smart Analytics let digital business creating real-time, intelligent,
actionable business insights, and data products which are achieved by WSO2
Data Analytics Server's real-time, incremental  & intelligent data
processing capabilites.

WSO2 DAS can:

   - Receive events from various data sources
   - Process & correlate them in real-time with the sate of the art
   high-performance real-time Siddhi Complex Event Processing Engine that
   works with easy to learn the SQL-Like query language.
   - Process analysis that spans for longer time duration with its
   incremental processing capability by achieving high performance with low
   infrastructure cost.
   - Uses Machine Learning and other models to drive intelligent insights
   from the data
   - Notifications interesting event occurrences as alerts via multiple
   transports & let users visualize the results via customizable dashboards.

WSO2 DAS is released under Apache Software License Version 2.0
, one of the most
business-friendly licenses available today.

You can find the product at
https://github.com/wso2/product-das/releases/download/v4.0.0-M1/wso2das-4.0.0-M1.zip
Documentation at https://docs.wso2.com/display/DAS400/
Source code at https://github.com/wso2/product-das/releases/tag/v4.0.0-M1

WSO2 DAS 4.0.0-M1 includes following new features.

New Features

   - Receive and publish events from Siddhi with @Source and @Sink
   annotations
   - TCP sink and source
   - Kafka sink and source
   - Support for DAS Text Editor to develop Siddhi applications.

Reporting *Issues*
Issues can be reported using the public JIRA available at
https://wso2.org/jira/browse/DAS
Contact usWSO2 Data Analytics Server developers can be contacted via the
mailing lists:

   Developer List : dev@wso2.org | Subscribe
 | Mail Archive


Alternatively, questions can also be raised in the stackoverflow:
*Forum* http://stackoverflow.com/questions/tagged/wso2/

Support

We are committed to ensuring that your enterprise middleware deployment is
completely supported from evaluation to production. Our unique approach
ensures that all support leverages our open development methodology and is
provided by the very same engineers who build the technology.

For more details and to take advantage of this unique opportunity please
visit http://wso2.com/support/.

For more information on WSO2 Smart Analytics and Smart Analytics Solutions,
visit the WSO2 Smart Analytics Page .
*-The WSO2 WSO2 Smart Analytics Team- *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-22 Thread Sriskandarajah Suhothayan
Good to know that it worked :)

Regards
Suho

On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Got the prototype working with Python 3 as well. Refer the link below for
> sources.
>
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/
> Pyjnius_Prototype_Wrap_Python2_3
>
> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and 3.5).
> Uses native calls via Pyjnius API.
>
> Please note: When you are installing Pyjnius from source, don't use the
> same local copy of source files for both Python2 and Python3. The install
> scripts of Pyjnius leaves temporary files that make subsequent installs on
> a different version of Python fail.
>
> Regards,
> Madhawa
>
>
> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Installation via PIP can be done. I will add it to Project Proposal.
>>
>> Regards,
>> Madhawa
>>
>> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>>
>>>
>>> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
>>>> Hi Suho,
>>>>
>>>> Going ahead with the proposal, few questions crossed my mind.
>>>>
>>>>1. You mentioned previously that WSO2 DAS should also be supported.
>>>>What sort of interactions are expected with WSO2 DAS?
>>>>1. Should publishing events to WSO2 DAS from Python Siddhi API
>>>>   supported?
>>>>   2. Should deploying of Siddhi Queries to WSO2 DAS through Python
>>>>   Siddhi API be supported?
>>>>   3. Any other expectations?
>>>>
>>>>
>>> For the integration with DAS we can use HTTP calls and deploy Siddhi
>>> queries and send events to that, we should also start a server from the
>>> python side to receive events from DAS and print them.
>>>
>>> We can work on the details of that after the proposal.
>>>
>>> One more thing to add, can we also implement Siddhi (the project you
>>> will be creating) to be installed via pip ?
>>>
>>> Regards
>>> Suho
>>>
>>> If any of above can be considered as "optional", indicate them as well.
>>>>
>>>> Regards,
>>>> Madhawa
>>>>
>>>> On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <
>>>> s...@wso2.com> wrote:
>>>>
>>>>> For the initial cut this looks good, please go ahead with the
>>>>> proposal. Let's check some other alternatives and start the development.
>>>>>
>>>>> Regards
>>>>> Suho
>>>>>
>>>>> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
>>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>>
>>>>>> Hi Suho,
>>>>>>
>>>>>> You can find the python version of test case written using Pyjnius in
>>>>>> below link.
>>>>>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>>>>>> nius%20Prototype%20Wrap
>>>>>> Instructions on building the code is also given their.
>>>>>>
>>>>>> During development, I noticed following disadvantages of Pyjnius API
>>>>>>
>>>>>>- Not compatible with Python 3.x.
>>>>>>- There are no stable releases. However, the code available in
>>>>>>master branch is relatively stable.
>>>>>>- Difficult to configure. It is required to develop the library
>>>>>>from source. This would make it difficult to distribute an API 
>>>>>> developed on
>>>>>>Pyjnius.
>>>>>>- There are no evidence that a proper release would be done soon.
>>>>>>
>>>>>> However, Pyjnius supports callback of events from Java to Python.
>>>>>> Additionally, it is easier to develop using Pyjnius ones it is 
>>>>>> configured.
>>>>>>
>>>>>> So, I had a looked at some of the other options as well.
>>>>>>
>>>>>> Java Bridge
>>>>>>
>>>>>> *Advantages*
>>>>>>
>>>>>>- Has stable releases

Re: [Dev] Idea Plugin for Siddhi

2017-03-22 Thread Sriskandarajah Suhothayan
It would be good if you can implement a prototype of a text editor in idea
for a simple grammar (prefarably in antler).

Thanks
Suho

On Wed, Mar 22, 2017 at 11:56 PM, Dulaj Atapattu  wrote:

> Hi Suho,
>
> I am a final year Computer Science and Engineering Undergraduate of
> University of Moratuwa. I have some previous experience in IntelliJ IDEA
> plugin development. I have developed a embedded graphical designer for JSON
> files for IntelliJ IDEA. Therefore I would like to develop the Idea Plugin
> for Siddhi as my GSOC project.
>
> I have already finished setting up the development environment with
> intellij-community source code. Now I am getting familiar with ANTLR. I
> will soon start writing a proposal. Can you please mention what to do in
> first as my next steps.
>
> Thank you.
>
> --
> *Dulaj Atapattu*
> Secretary | IEEE Computer Society
> Undergraduate | Department of Computer Science and Engineering
> University of Moratuwa
> Tel: +94712481879 <071%20248%201879>
> [image:
> https://twitter.com/DRAtapattu] [image:
> https://www.facebook.com/dulaj.atapattu]
> 
>



-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-19 Thread Sriskandarajah Suhothayan
On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Going ahead with the proposal, few questions crossed my mind.
>
>1. You mentioned previously that WSO2 DAS should also be supported.
>What sort of interactions are expected with WSO2 DAS?
>1. Should publishing events to WSO2 DAS from Python Siddhi API
>   supported?
>   2. Should deploying of Siddhi Queries to WSO2 DAS through Python
>   Siddhi API be supported?
>   3. Any other expectations?
>
>
For the integration with DAS we can use HTTP calls and deploy Siddhi
queries and send events to that, we should also start a server from the
python side to receive events from DAS and print them.

We can work on the details of that after the proposal.

One more thing to add, can we also implement Siddhi (the project you will
be creating) to be installed via pip ?

Regards
Suho

If any of above can be considered as "optional", indicate them as well.
>
> Regards,
> Madhawa
>
> On Sat, Mar 18, 2017 at 9:00 PM, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> For the initial cut this looks good, please go ahead with the proposal.
>> Let's check some other alternatives and start the development.
>>
>> Regards
>> Suho
>>
>> On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> You can find the python version of test case written using Pyjnius in
>>> below link.
>>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>>> nius%20Prototype%20Wrap
>>> Instructions on building the code is also given their.
>>>
>>> During development, I noticed following disadvantages of Pyjnius API
>>>
>>>- Not compatible with Python 3.x.
>>>- There are no stable releases. However, the code available in
>>>master branch is relatively stable.
>>>- Difficult to configure. It is required to develop the library from
>>>source. This would make it difficult to distribute an API developed on
>>>Pyjnius.
>>>- There are no evidence that a proper release would be done soon.
>>>
>>> However, Pyjnius supports callback of events from Java to Python.
>>> Additionally, it is easier to develop using Pyjnius ones it is configured.
>>>
>>> So, I had a looked at some of the other options as well.
>>>
>>> Java Bridge
>>>
>>> *Advantages*
>>>
>>>- Has stable releases available through Python Package Index. (pip)
>>>
>>> *Disadvantages*
>>>
>>>- No direct call-back mechanism to receive events from Java side. It
>>>is possible to execute Python scripts in Java  but those scripts would 
>>> not
>>>be in same context as Python Host App.
>>>- Comparatively harder to develop on but it is manageable.
>>>
>>> Py4J
>>>
>>> The main difference in Py4J is that it uses socket connections to
>>> communicate with JVM instead of JNI. (secured socket connections are
>>> possible).
>>>
>>> *Advantages*
>>>
>>>- Stable release available through Python Package Index (pip). Easy
>>>to configure.
>>>- Can connect to an already running Java application (with Py4J) and
>>>communicate with it. (Thus, can be used to communicate with a running
>>>instance of WSO2 CEP)
>>>- Supports callback events.
>>>- Well maintained documentation. Active project.
>>>
>>> *Disadvantages*
>>>
>>>- Would require a work-around to avoid clashing between socket
>>>connection ports when concurrent applications use the API.
>>>
>>> As of now, I feel Py4J is the most suitable option. However, I am yet to
>>> look at some other options available such as JPy and JCC.
>>>
>>> Regards,
>>>
>>> Madhawa
>>>
>>> On Wed, Mar 15, 2017 at 11:10 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
>>>> Great, do also start working on writing the project proposal.
>>>>
>>>> Regards
>>>> Suho
>>>>
>>>> On Wed, Mar 15, 2017 at 10:58 PM, Madhawa Vidanapathirana <
>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>
>>>>> Hi Suho,
>>>>> Progress made so far is managed to write a python version of test case
>>>>&g

Re: [Dev] GSoC 2017 : Python API for Siddhi CEP

2017-03-18 Thread Sriskandarajah Suhothayan
The idea is to use native python calls as much as posible. In worsecase
we'll use the service calls.

On Sat, Mar 18, 2017 at 8:48 PM, Roshan Alwis 
wrote:

> Hi,
>
> In H2O.ai they are running a backend server (.jar file) and python API
> just initiate service calls. In that case, it is not necessary to use
> PyJnius kind of libraries. But for further implemetation it is required to
> consider performance factors as well. Since JAVA is much faster than Python
> it is better to reduce python execution load from the system. But , I want
> to make sure that CEP provides the relevant services to the outside.
>
> Best Regards,
>
> Roshan Madhushanka
>
> Batch Representative (CSE 13),
> Department of Computer Science and Engineering
> University of Moratuwa.
>
> alwisroshan...@cse.mrt.ac.lk | 0715894672 <071%20589%204672>
> [image: Facebook]
>
> On 9 March 2017 at 21:23, Roshan Alwis 
> wrote:
>
>> Hi all,
>>
>> I am Roshan from University of Moratuwa. I did my internship at WSO2 in
>> Research Team under the supervision of Dr. Srinath Perera.
>>
>> I am very much familiar with Python and implemented an extension for WSO2
>> CEP for real-time prediction with H2O.ai  while I was
>> working there.
>>
>> I think I fit best in $subject and would like to know more about the
>> scope of the project.
>>
>> Thanks & Regards,
>>
>> Roshan Madhushanka
>>
>> Batch Representative (CSE 13),
>> Department of Computer Science and Engineering
>> University of Moratuwa.
>>
>> alwisroshan...@cse.mrt.ac.lk | 0715894672 <071%20589%204672>
>> [image: Facebook]
>>
>
>


-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-18 Thread Sriskandarajah Suhothayan
For the initial cut this looks good, please go ahead with the proposal.
Let's check some other alternatives and start the development.

Regards
Suho

On Sat, Mar 18, 2017 at 1:01 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> You can find the python version of test case written using Pyjnius in
> below link.
> https://github.com/madhawav/CEP-Python-Wraps/tree/master/
> Pyjnius%20Prototype%20Wrap
> Instructions on building the code is also given their.
>
> During development, I noticed following disadvantages of Pyjnius API
>
>- Not compatible with Python 3.x.
>- There are no stable releases. However, the code available in master
>branch is relatively stable.
>- Difficult to configure. It is required to develop the library from
>source. This would make it difficult to distribute an API developed on
>Pyjnius.
>- There are no evidence that a proper release would be done soon.
>
> However, Pyjnius supports callback of events from Java to Python.
> Additionally, it is easier to develop using Pyjnius ones it is configured.
>
> So, I had a looked at some of the other options as well.
>
> Java Bridge
>
> *Advantages*
>
>- Has stable releases available through Python Package Index. (pip)
>
> *Disadvantages*
>
>- No direct call-back mechanism to receive events from Java side. It
>is possible to execute Python scripts in Java  but those scripts would not
>be in same context as Python Host App.
>- Comparatively harder to develop on but it is manageable.
>
> Py4J
>
> The main difference in Py4J is that it uses socket connections to
> communicate with JVM instead of JNI. (secured socket connections are
> possible).
>
> *Advantages*
>
>- Stable release available through Python Package Index (pip). Easy to
>configure.
>- Can connect to an already running Java application (with Py4J) and
>communicate with it. (Thus, can be used to communicate with a running
>instance of WSO2 CEP)
>- Supports callback events.
>- Well maintained documentation. Active project.
>
> *Disadvantages*
>
>- Would require a work-around to avoid clashing between socket
>connection ports when concurrent applications use the API.
>
> As of now, I feel Py4J is the most suitable option. However, I am yet to
> look at some other options available such as JPy and JCC.
>
> Regards,
>
> Madhawa
>
> On Wed, Mar 15, 2017 at 11:10 PM, Sriskandarajah Suhothayan <s...@wso2.com
> > wrote:
>
>> Great, do also start working on writing the project proposal.
>>
>> Regards
>> Suho
>>
>> On Wed, Mar 15, 2017 at 10:58 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>> Progress made so far is managed to write a python version of test case
>>> you suggested using Pyjnius [1] [2].
>>> Pyjnius is capable of handling method calls and callbacks to/from JAVA
>>> via JNI.
>>>
>>> I will send the code here after I properly arrange it into a prototype
>>> API.
>>>
>>> [1] - https://pyjnius.readthedocs.io/en/latest/index.html
>>> [2] - https://github.com/kivy/pyjnius/blob/master/docs/source/index.rst
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Wed, Mar 15, 2017 at 1:11 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
>>>> As the first step focus on building APIs such that we can write the
>>>> following test case[1] in python.
>>>>
>>>> [1]https://github.com/wso2/siddhi/blob/master/modules/siddhi
>>>> -samples/quick-start-samples/src/main/java/org/wso2/siddhi/s
>>>> ample/SimpleFilterSample.java
>>>>
>>>> Regards
>>>> Suho
>>>>
>>>> On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>> Thank you for your quick reply.
>>>>>
>>>>> Since directly using Siddhi Library is the more general case, I'll
>>>>> first focus on it.
>>>>>
>>>>> 1) I am thinking about following the same structure in JAVA API,
>>>>> centered around Siddhi Manager. Any opinions on this?
>>>>> 2) Any idea on extent to which lower level/internal components should
>>>>> be exposed? (e.g. - Exposing "StreamDefinition" class in addition to
>>>>> creating stream via Siddhi query using 
>>>>> "sid

Re: [Dev] GSoC 2017 : Real-Time Machine Learning Toolkit for Siddhi

2017-03-18 Thread Sriskandarajah Suhothayan
On Sat, Mar 18, 2017 at 8:18 PM, Nadheesh Jihan  wrote:

> Hi,
>
> I am an undergraduate from Department of Computer Science and Engineering
> at University of Moratuwa. I recently completed my internship period at
> WSO2. While I was working at WSO2, I was exposed to machine learning and
> real-time event processing using Siddhi. I am interested about Proposal-24
> (Real-Time Machine Learning Toolkit for Siddhi) since it is more aligned
> with my skills and the new passion that I have developed at WSO2. However,
> I have few questions regarding the proposal. 1)How many ML algorithms are
> expected to be implemented during this project?
>
@Upul can you give insights on this.

> 2)Are we going to implement the streaming ML algorithms from the scratch?
>
Yes

> --
> Best regards,
> *Nadheesh Jihan*
> Undergraduate | Department of Computer Science and Engineering
> Faculty of Engineering
> University of Moratuwa
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 - proposal 24

2017-03-17 Thread Sriskandarajah Suhothayan
No, we have already done an extension with SAMOA, this time we are trying
to not to use external libraries as much as possible.

Regards
Suho

On Fri, Mar 17, 2017 at 4:22 PM, Jayan Vidanapathirana <
jayancv...@cse.mrt.ac.lk> wrote:

> Hi all,
>
> I'm Jayan Vidanapathirana, an undergraduate from Department of Computer
> Science and Engineering, University of Moratuwa. I recently completed my
> internship at WSO2 working with the Research Team on the project of
> developing streaming machine learning extension for CEP using Apache SAMOA.
> I'm interesting about WSO2 GSoC project proposal 24 - Real-time machine
> learning toolkit for Siddhi because I'm familiar with siddhi extensions and
> apache SAMOA framework.
> So in this project can we use ml framework as Apache SAMOA ? (SAMOA can
> use to implement algorithms)
>
> --
> Best Regards
>
> Jayan Vidanapathirana
> Undergraduate (CSE '13 Batch )
> Computer Science & Engineering Department
> University of Moratuwa.
> jcvidanapathir...@gmail.com
> [image: https://lk.linkedin.com/in/jayancv]
> 
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-15 Thread Sriskandarajah Suhothayan
Great, do also start working on writing the project proposal.

Regards
Suho

On Wed, Mar 15, 2017 at 10:58 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
> Progress made so far is managed to write a python version of test case you
> suggested using Pyjnius [1] [2].
> Pyjnius is capable of handling method calls and callbacks to/from JAVA via
> JNI.
>
> I will send the code here after I properly arrange it into a prototype
> API.
>
> [1] - https://pyjnius.readthedocs.io/en/latest/index.html
> [2] - https://github.com/kivy/pyjnius/blob/master/docs/source/index.rst
>
> Regards,
> Madhawa
>
> On Wed, Mar 15, 2017 at 1:11 AM, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> As the first step focus on building APIs such that we can write the
>> following test case[1] in python.
>>
>> [1]https://github.com/wso2/siddhi/blob/master/modules/siddhi
>> -samples/quick-start-samples/src/main/java/org/wso2/siddhi/
>> sample/SimpleFilterSample.java
>>
>> Regards
>> Suho
>>
>> On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>> Thank you for your quick reply.
>>>
>>> Since directly using Siddhi Library is the more general case, I'll first
>>> focus on it.
>>>
>>> 1) I am thinking about following the same structure in JAVA API,
>>> centered around Siddhi Manager. Any opinions on this?
>>> 2) Any idea on extent to which lower level/internal components should be
>>> exposed? (e.g. - Exposing "StreamDefinition" class in addition to creating
>>> stream via Siddhi query using "siddhiManager.createExecutionPlanRuntime").
>>> I have heard that it is usually discouraged to use lower level components
>>> instead of the query approach.
>>>
>>> Will try to send you a prototype covering basic functionality through
>>> Siddhi Java API, before making the proposal for entire project.
>>>
>>> Madhawa
>>>
>>> On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
>>>>
>>>>
>>>> On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
>>>> madhawavidanapathir...@gmail.com> wrote:
>>>>
>>>>> Hi.
>>>>>
>>>>> I am an undergraduate from Department of Computer Science and
>>>>> Engineering, University of Moratuwa. I recently completed my internship at
>>>>> WSO2 working with the Support Team on the project WSO2 Support Knowledge
>>>>> Base.
>>>>>
>>>>> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi
>>>>> CEP"*. My internship project at WSO2 was almost entirely done using
>>>>> Python. Additionally, I used Py4J Framework to interface certain parts of
>>>>> the project to JAVA APIs. Furthermore, I have a certain amount of exposure
>>>>> with Siddhi/CEP through the WHACK project I took part.
>>>>>
>>>>> I went through the provided details in WSO2 GSOC 2017 Project List
>>>>> page and I am interested to know some more details.
>>>>>
>>>>>1. What version of CEP/Siddhi should be used by the API?
>>>>>
>>>>> You need to support the latest released version of Siddhi and DAS
>>>> which is in DAS 3.1 and also for the latest Siddhi (4.0)
>>>>
>>>>>
>>>>>1. In the description, does "Service APIs" refer to "Admin
>>>>>Services API" which is usually used by Admin Panel to communicate with 
>>>>> CEP?
>>>>>
>>>>> Yes, to deploy the queries and to send and receive events
>>>>
>>>>>
>>>>>1. Should the Siddhi Python API require WSO2 CEP to be running in
>>>>>order to make Python API usable?
>>>>>
>>>>> Not necessay it should both work with the running CEP/DAS and use
>>>> Siddhi library in the ohter cases.
>>>>
>>>>>
>>>>>1. Is the Python API expected to do configuring of Siddhi CEP,
>>>>>streaming events to/from Siddhi CEP, or both?
>>>>>
>>>>> Yes in terms of queries.
>>>>
>>>>
>>>>
>>>>> Thank You
>>>>>
>>>>>
>>>>> --
>>>>

Re: [Dev] [GSoC][Siddhi][CEP]: Siddhi Pattern for Absence of Events

2017-03-15 Thread Sriskandarajah Suhothayan
Thanks for the GSoC idea, I hope this will be a good way to improve the
Siddhi language and make it more powerfull.
If time permits we can also add other use-cases of patterns & sequences and
improve it further.

Since you are still not a commuter I hope these contributions will help you
be a committer to Siddhi as well :)
I'll make this as a formal idea, do work on a proposal as well.

Regards
Suho


On Wed, Mar 15, 2017 at 6:09 PM, Gobinath  wrote:

> Hi team,
>
> This is Gobinath a former software engineer at WSO2 currently doing
> masters at Western University. This time I plan to do GSoC with WSO2 and
> this is the basic idea of what I have discussed with Suho.
> Based on Suho's suggestion, I come up with a proposal to implement
> detecting non-occurring events using Siddhi patterns. The current Siddhi
> patterns allow identifying the patterns that present.
>
> See an example:
> from every e1=Stream1[price>20] -> e2=Stream2[price>e1.price] within 1 sec
> select e1.symbol as symbol1, e2.symbol as symbol2
> insert into OutputStream;
>
> Detecting the absence of a pattern is not natively supported by Siddhi
> patterns for the moment. In other words, identifying event_a not followed
> by event_b within 2 minutes is not possible using the current patterns
> implementation (Note that a time frame is required otherwise we have to
> wait for infinite time to say event_b has not arrived). The current
> workaround [1] to detect non-delivered items is shown below:
>
> from arrivals_stream#window.time(2 minutes)
> select *
> insert expired events into overdue_deliveries_stream;
>
> from every arrivalEvent = arrivals_stream ->
> deliveryEvent = deliveries_stream[arrivalEvent.trackingId == trackingId]
> or overdue_delivery = overdue_deliveries_stream[arrivalEvent.trackingId
> == trackingId]
> select arrivalEvent.trackingId as trackingId, arrivalEvent.customerName as
> customerName, arrivalEvent.telephoneNo as telephoneNo,
> deliveryEvent.trackingId as deliveryId
> insert into filter_stream;
>
> from filter_stream [ (deliveryId is null)]
> select trackingId, customerName, telephoneNo
> insert into alert_stream;
>
> This solution requires a time window and it is inefficient if we are
> interested only on one occurrence of such a pattern (In other words same
> query without every keyword). Further, the query is more complex and not
> user-friendly.
>
> If we provide patterns to detect absence of patterns, the above query can
> be rewritten as below:
>
> from every arrivalEvent = arrivals_stream ->  (not
> deliveries_stream[arrivalEvent.trackingId == trackingId] within 2 min )
> select arrivalEvent.trackingId as trackingId, arrivalEvent.customerName as
> customerName, arrivalEvent.telephoneNo as telephoneNo
> insert into alert_stream;
>
> As you can see, we can use the existing language components like not &
> within. This can be achieved by extending the existing
> StreamPreStateProcessors and StreamPostStateProcessors with an internal
> timer so that they can expire their internal list of events based on the
> time limit. It is somewhat similar to time windows but the processor can
> turn off the timer and ignore the events if it is a one time pattern
> detection.
>
> I hope it gives the basic idea and I am waiting for your suggestions and
> feedback.
>
> [1] https://docs.wso2.com/display/CEP400/Sample+0111+-+D
> etecting+non-occurrences+with+Patterns
>
>
> Thanks & Regards,
> Gobinath
> --
> *Gobinath** Loganathan*
> Graduate Student,
> Electrical and Computer Engineering,
> Western University.
> Email  : slgobin...@gmail.com
> Mobile : (+1) 416-895-0721
> Blog: javahelps.com 
>
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Idea Plugin for Siddhi

2017-03-14 Thread Sriskandarajah Suhothayan
Yes, that will be good.

Regards
Suho

On Wed, Mar 15, 2017 at 8:02 AM, Nipuna Sankalpa <
nipunasankalpa...@cse.mrt.ac.lk> wrote:

> Thank you for your response. I went through some materials and found that
> idea is not supporting for Antlr grammar file directly but there was plugin
> which allowed me to generate the required parser(from the given grammar
> file) for the implementation of plugin. So as first step I'll try to
> resolve this issue and send you a prototype of the project then proceed for
> the project proposal.
>
> Thank you
> Best regards
> On 13 Mar 2017 21:42, "Sriskandarajah Suhothayan" <s...@wso2.com> wrote:
>
>> No need to implement siddhi execution and debugging, but we need to have
>> syntax highlighting and autocompletion.
>>
>> Regards
>> Suho
>>
>> On Sun, Mar 12, 2017 at 5:10 PM, Nipuna Sankalpa <
>> nipunasankalpa...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>> I am an undergraduate from Department of Computer Science and
>>> Engineering University of Moratuwa. I'm interested on Gsoc project proposal
>>> No.4 : " *Idea Plugin for Siddhi* " which is listed under Wso2 proposal
>>> list. I have recently contributed to a project related to the Siddhi CEP
>>> [Real Time Value at Risk Computation] and now I'm familiar with with Siddhi
>>> CEP up to considerable level.
>>> I went through the proposal description and want to clarify,
>>> whether I need to include siddhi execution and debugging as a task for
>>> the proposal?? or else shall I prepare the proposal without it and complete
>>> the execution and debugging part if only the time permits.
>>>
>>> Thanks,
>>> Best Regards,
>>> --
>>>
>>> Nipuna Sankalpa,
>>>
>>> Undergraduate,
>>>
>>> Department of Computer Science & Engineering,
>>> University of Moratuwa,
>>>
>>> Sri Lanka.
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect & Team Lead of WSO2 Complex Event
>> Processor
>> *WSO2 Inc. *http://wso2.com
>> * <http://wso2.com/>*
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | 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>*
>>
>


-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* <http://wso2.com/>*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC, Proposal 4: Idea Plugin for Siddhi

2017-03-14 Thread Sriskandarajah Suhothayan
Please google on this project title you can find some basic resources about
this project in other emails at d...@wso2.com, which are shared based on
other students request.

Regards
Suho

On Wed, Mar 15, 2017 at 12:54 AM, Nur-Magomed  wrote:

> Hi!
>
> I’m Nur-Magomed Dzhamiev, 4th year student from institute of information
> technology (major: computer security) of North-Caucasus Federal University
> (Russia). I have experience with Java, SQL, Web (HTML, CSS, JavaScript,
> PHP) and also I designed Android apps.
>
> I would love to contribute to the project "Proposal 4: Idea Plugin for
> Siddhi ". Please provide me some guide lines and additional materials for
> study and get a clear understanding about the mentioned project. Thank you!
>
>
> Regards
>
> Nur-Magomed
>
> GitHub: https://github.com/nmago/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-14 Thread Sriskandarajah Suhothayan
As the first step focus on building APIs such that we can write the
following test case[1] in python.

[1]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-samples/quick-start-samples/src/main/java/org/wso2/siddhi/sample/SimpleFilterSample.java

Regards
Suho

On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Thank you for your quick reply.
>
> Since directly using Siddhi Library is the more general case, I'll first
> focus on it.
>
> 1) I am thinking about following the same structure in JAVA API, centered
> around Siddhi Manager. Any opinions on this?
> 2) Any idea on extent to which lower level/internal components should be
> exposed? (e.g. - Exposing "StreamDefinition" class in addition to creating
> stream via Siddhi query using "siddhiManager.createExecutionPlanRuntime").
> I have heard that it is usually discouraged to use lower level components
> instead of the query approach.
>
> Will try to send you a prototype covering basic functionality through
> Siddhi Java API, before making the proposal for entire project.
>
> Madhawa
>
> On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>>
>>
>> On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi.
>>>
>>> I am an undergraduate from Department of Computer Science and
>>> Engineering, University of Moratuwa. I recently completed my internship at
>>> WSO2 working with the Support Team on the project WSO2 Support Knowledge
>>> Base.
>>>
>>> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi
>>> CEP"*. My internship project at WSO2 was almost entirely done using
>>> Python. Additionally, I used Py4J Framework to interface certain parts of
>>> the project to JAVA APIs. Furthermore, I have a certain amount of exposure
>>> with Siddhi/CEP through the WHACK project I took part.
>>>
>>> I went through the provided details in WSO2 GSOC 2017 Project List page
>>> and I am interested to know some more details.
>>>
>>>1. What version of CEP/Siddhi should be used by the API?
>>>
>>> You need to support the latest released version of Siddhi and DAS which
>> is in DAS 3.1 and also for the latest Siddhi (4.0)
>>
>>>
>>>1. In the description, does "Service APIs" refer to "Admin Services
>>>API" which is usually used by Admin Panel to communicate with CEP?
>>>
>>> Yes, to deploy the queries and to send and receive events
>>
>>>
>>>1. Should the Siddhi Python API require WSO2 CEP to be running in
>>>order to make Python API usable?
>>>
>>> Not necessay it should both work with the running CEP/DAS and use Siddhi
>> library in the ohter cases.
>>
>>>
>>>1. Is the Python API expected to do configuring of Siddhi CEP,
>>>streaming events to/from Siddhi CEP, or both?
>>>
>>> Yes in terms of queries.
>>
>>
>>
>>> Thank You
>>>
>>>
>>> --
>>> *Madhawa Vidanapathirana*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa
>>> Sri Lanka
>>>
>>> Mobile: (+94) 716874425 <071%20687%204425>
>>> Email: madhawavidanapathir...@gmail.com
>>> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect & Team Lead of WSO2 Complex Event
>> Processor
>> *WSO2 Inc. *http://wso2.com
>> * <http://wso2.com/>*
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | 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>*
>>
>
>
>
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425 <071%20687%204425>
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* <http://wso2.com/>*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | 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>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 Project proposal 6: Eclipse plugin for Siddhi

2017-03-14 Thread Sriskandarajah Suhothayan
Ack.

On Tue, Mar 14, 2017 at 5:14 PM, Udeshika Sewwandi <
sewwandikaus...@cse.mrt.ac.lk> wrote:

> Hi,
> I have skipped the path with Xtext. I have already started implementing
> using Antlr and I am on implementing the PoC for syntax highlighting and
> content assistance(auto completion) for a sample grammar file based on
> simple maths expressions for now. I will update about it in the near
> future. Thank you.
>
> Best Regards,
> -Sewwandi
>
> On 13 March 2017 at 21:02, Sriskandarajah Suhothayan <s...@wso2.com>
> wrote:
>
>> We can do this but this will take a lot of effort in implementing Antlr
>> to Xtext which will be a bit of a work and may be a bit hard to
>> maintain.
>> +1 If no other options.
>>
>> Regards
>> Suho
>>
>> On Mon, Mar 13, 2017 at 10:38 AM, Udeshika Sewwandi <
>> sewwandikaus...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>> For the project can I use Antlr 4 IDE in Eclipse which is built on Xtext
>>> ? From that an Antlr 4 project can be created and grammar file,lexer and
>>> parser are generated automatically. If not through command line the same
>>> lexer and parser can be generated using the grammar file and can be
>>> imported in eclipse IDE for further development. What is your idea on this?
>>> Thank you.
>>>
>>> Best Regards,
>>> -Sewwandi
>>>
>>> On 8 March 2017 at 17:27, Udeshika Sewwandi <
>>> sewwandikaus...@cse.mrt.ac.lk> wrote:
>>>
>>>> Hi,
>>>> I have gone through almost all the references given. I found that
>>>> instead of antlr we can use Xtext framework [1] which has features for
>>>> Eclipse also. Currently I am following the references given in [2],[3] to
>>>> get familiarize with editor plugins for Eclipse. Is there any eclipse
>>>> version that needs to be used for the project? Actually I couldn't test the
>>>> sample plugin in a tutorial since I couldn't reach the run-time workbench
>>>> of Eclipse. Do you have any idea why this is happening ? Thank you.
>>>>
>>>>
>>>> [1] https://eclipse.org/Xtext/
>>>> [2] http://www.wideskills.com/eclipse-plugin-tutorial/eclips
>>>> e-plugin-editors-tutorial
>>>> [3] http://www.vogella.com/tutorials/EclipseEditors/article.html
>>>>
>>>> Best Regards,
>>>> -Sewwandi
>>>>
>>>> On 7 March 2017 at 16:19, Nirmal Fernando <nir...@wso2.com> wrote:
>>>>
>>>>> Great. Please keep the discussion in dev@wso2.org mailing list.
>>>>>
>>>>> On Tue, Mar 7, 2017 at 3:37 PM, Udeshika Sewwandi <
>>>>> sewwandikaus...@cse.mrt.ac.lk> wrote:
>>>>>
>>>>>> Hi,
>>>>>> Thank you very much for replying. Currently I am familiarizing with
>>>>>> the Eclipse plugin environment and Siddhi.
>>>>>>
>>>>>> Best Regards,
>>>>>> -Sewwandi
>>>>>>
>>>>>> On 7 March 2017 at 12:25, Sriskandarajah Suhothayan <s...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> We need an editor that supports Siddhi grammar
>>>>>>> https://github.com/wso2/siddhi/blob/master/modules/siddhi-qu
>>>>>>> ery-compiler/src/main/antlr4/org/wso2/siddhi/query/compiler/
>>>>>>> SiddhiQL.g4
>>>>>>>
>>>>>>> Can start with a PoC on implementing an editor with syntax
>>>>>>> highlighting and auto-completion not necessary for Siddhi but for some
>>>>>>> sample language and then look into how we can do the same for Siddhi.
>>>>>>>
>>>>>>> Regards
>>>>>>> Suho
>>>>>>>
>>>>>>> On Tue, Mar 7, 2017 at 10:24 AM, Nirmal Fernando <nir...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Udeshika,
>>>>>>>>
>>>>>>>> Thanks for your interest in this project. Suho (CCied) and I will
>>>>>>>> be your mentors. You can start familiarizing yourself with Siddhi and
>>>>>>>> Eclipse plugin development. Let us know if you have any specific 
>>>>>>>> questions.
>>>>>>>>
>>>>>>>> On Mon, Mar 6, 2017 at 11:20 AM, Udeshika Sewwandi <
>>>>>>>> sewwandikaus..

Re: [Dev] [GSOC][CEP] Atom Plugin for Siddhi

2017-03-14 Thread Sriskandarajah Suhothayan
Sorry for the late reply,

On Tue, Mar 14, 2017 at 6:56 PM, Dimuth Menikgama 
wrote:

> Hi,
> I'm willing to develop a prototype for the above mentioned GSOC project.
> Can you give me any suggestions on what things to try first in the plugin.
>
> Thank you.
>
> -- Forwarded message --
> From: Dimuth Menikgama 
> Date: 11 March 2017 at 19:49
> Subject: [Dev][GSOC][CEP] Atom Plugin for Siddhi
> To: dev@wso2.org
>
>
> Hi,
>
> I am Dimuth Menikgama, a Computer Science and Engineering Undergraduate at
> University of Moratuwa, Faculty of Engineering. I worked in WSO2 in the
> previous year as an Software Engineering Intern.
>
> I'm willing to participate GSOC 2017 and I'm interested in the Project
> titled as "Atom Plugin for Siddhi". I read through the description provided
> in the document. I like to know more about this project regarding Error
> reporting.
>
> Error reporting in this context mean showing alerts for syntax, semantics
> or logical errors right? Not for things like compile time/run-time errors?
>

Error reporting is about highlighting syntax, semantic & logical errors and
also compile time errors, if you can run Siddhi in the back-end siddhi can
be used to validate and get error conditions related to all these.

Regards
Suho

>
> Thank you
>
> Regards,
> Dimuth Menikgama
>
> --
> M. Dimuth Tharaka MenikgamaDepartment of Computer Science and Engineering,
> University of Moratuwa
>
> www.neverstopcodingblog.wordpress.comdimuthu...@cse.mrt.ac.lk | +94 71
> 466 9103 <+94%2071%20466%209103>
> 
>   
>   
>
>
>
>
> --
> M. Dimuth Tharaka MenikgamaDepartment of Computer Science and Engineering,
> University of Moratuwa
>
> www.neverstopcodingblog.wordpress.comdimuthu...@cse.mrt.ac.lk | +94 71
> 466 9103 <071%20466%209103>
> 
>   
>   
>
>


-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-03-14 Thread Sriskandarajah Suhothayan
On Tue, Mar 14, 2017 at 7:38 PM, Nadun De Silva <nadun...@gmail.com> wrote:

> Hi,
>
> Thank you for the response. I have researched a bit more and have few more
> follow-up questions
>
> It will not be in the current Siddhi format, we are thinking of a plain
>> HTML and MD files which can be part of Siddhi Docs in Github.
>
>
> Then I think when the Mojo is executed, I should create the HTML and MD
> files inside the maven project so that with each push, the GitHub repos are
> updated. Is this what is expected?
>
Yes

>
> Can have multiple pages (one per namespace) and having index and
>> navigation across is good. Please present your suggestion we can discuss
>> and come to a conclusion on this.
>>
>
> Since by the time the combination happens, all the documentation is in
> GitHub repos, my suggestion would be to get the content of the generated
> HTML files using the GitHub contents API [1] and then combine them. But
> this will be a separate program which will be run for the combination alone.
>
> If we decide to use this approach, I would suggest implementing one of the
> following or any other method for rerunning the combination process.
>
>- A server listening to GitHub webhooks [2]
>- A scheduled task
>
> What is your opinion about this approach?
>
> We are moving extensions to wso2-extensions repo[5] and going to host all
of them in the extension store[6] so each extension will have it's own doc,
and siddhi-core might have one with the predefined functions. We might not
need to combine multiple repos together at this point, but when there are
multiple extsnsions within the same repo they need to be properly
organized. If time permits we can explore how we can merge then, but it's
not a requirement at this point.

[5]https://github.com/wso2-extensions/?q=siddhi==
[6]https://store.wso2.com/store/assets/analyticsextension/list


> I also have a question about the Siddhi annotations. At the moment, all
> the details are in one annotation called "@Extension" [3] and it does not
> contain the "return value" of the extension. How can I fetch the return
> value of functions from the current annotation system?
>
> We have to change the previous implementation to bring all into one
annotation as we did some improvements to optimize extension class
loading and that needed a single extension annotation.
To identify the return value use the "returnAttributes()":  for functions
this will have only the return type and no names, for windows this will
return empty, and for stream processors this can have some attributes with
names.

Regards
Suho

[1] https://developer.github.com/v3/repos/contents/#get-contents
> [2] https://developer.github.com/webhooks/
> [3] https://github.com/wso2/siddhi/blob/master/modules/
> siddhi-annotations/src/main/java/org/wso2/siddhi/annotation/Extension.java
>
> Thank you.
>
> On Mon, Mar 13, 2017 at 10:04 PM, Sriskandarajah Suhothayan <s...@wso2.com
> > wrote:
>
>>
>>
>> On Sat, Mar 11, 2017 at 8:45 PM, Nadun De Silva <nadun...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I am an undergraduate at the University of Moratuwa in my final year. I
>>> also worked as an intern at WSO2 last year.
>>>
>>> I am interested in *"Siddhi Extension Doc Auto Generation"* GSoC
>>> project. I have worked with WSO2 CEP and Siddhi during my internship and I
>>> am also familiar with the Siddhi annotations.
>>>
>>> I went through the references provided and I would be very grateful if I
>>> can get more guidance on how I can learn more details about the project.
>>> Some of the questions I have are as follows.
>>>
>>>1. Does the final HTML pages need to be deployed into the current
>>>Siddhi documentation and if so is that part of the project scope?
>>>
>>> It will not be in the current Siddhi format, we are thinking of a plain
>> HTML and MD files which can be part of Siddhi Docs in Github.
>>
>>>
>>>1. Does the combined documentation (Deliverable 3) need to be in the
>>>same structure the current documentation is in? (If not the combination 
>>> can
>>>maybe be achieved by having separate pages for extension namespaces with
>>>proper navigation between them)
>>>
>>> Can have multiple pages (one per namespace) and having index and
>> navigation across is good. Please present your suggestion we can discuss
>> and come to a conclusion on this.
>>
>>>
>>>1. If I understood correctly the project does not cover the inbuilt
>>>processors. Please corre

Re: [Dev] GSOC 2017 - Siddhi Extension Doc Auto Generation

2017-03-14 Thread Sriskandarajah Suhothayan
We can't use JavaDocs but we have to generate something like JavaDoc with
the help of the @Extension annotation that we use, we also have JavaDocs
for documenting Java classes and that will not work in this case.
The motivation is to document extensions such that its easy to refer what's
supported by Siddhi.

Regards
Suho

On Wed, Mar 15, 2017 at 12:24 AM, Pushpitha Dilhan <
pushpitha...@cse.mrt.ac.lk> wrote:

> Hi,
>
> I studied several ways on how to generate HTML documentation and I think
> javadoc will be an easy solution for generating Documentation HTML pages. I
> have studied how to do that using command line and have written an article
> with an example in [1]my blog. If we are going to use javadoc for this
> documentation generation we have to add javadoc comments to each of the
> extension class. Then connecting this process with maven plugin will be the
> next step. project proposal description says that it is expected to have a
> documentation similar to Java Docs[2] and will this be an approach to the
> project and I would like to know any better suggestions.
>
> [1] http://pushpithadilhan.blogspot.com/2017/03/javadoc-
> html-documentation-generator.html#.WMgyPVV97IU
> [2] https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
> 
>
> Thank you.
>
> On 7 March 2017 at 10:18, Nirmal Fernando  wrote:
>
>> Hi Dilhan,
>>
>> Thanks for your interest in the project. Let us know if you have any
>> specific questions. You may try to build a sample maven plugin to start
>> with and also start to build the proposal.
>>
>> On Sat, Mar 4, 2017 at 1:40 PM, Pushpitha Dilhan <
>> pushpitha...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>>
>>> I am Pushpitha Dilhan and I am a 3rd year undergraduate student at
>>> University of Moratuwa, Department of Computer Science and Engineering. I
>>> am interested in the project "Siddhi Extension Doc Auto Generation" and
>>> currently I have started studying about [2]maven plugin development and
>>> [1]extensions in Siddhi. I hope to have some guidance as a beginning of
>>> this project.
>>>
>>> [1] https://docs.wso2.com/display/CEP400/Siddhi+Extensions
>>> [2] https://maven.apache.org/guides/plugin/guide-java-plugin
>>> -development.html
>>>
>>> Thank you.
>>>
>>> --
>>> Pushpitha Dilhan
>>> Undergraduate  University of Moratuwa
>>> Department of Computer Science and Engineering
>>> +94 775880305 <+94%2077%20588%200305>
>>>
>>> ..
>>> .
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Technical Lead - Analytics Team, WSO2 Inc.
>> Mobile: +94715779733 <+94%2071%20577%209733>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> Pushpitha Dilhan
> Undergraduate  University of Moratuwa
> Department of Computer Science and Engineering
> +94 775880305 <077%20588%200305>
>
> .
> .
> .
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] About Google Summer of code 2017

2017-03-13 Thread Sriskandarajah Suhothayan
Sorry for the late reply, not sure how I have missed this mail, Please do a
google search on these titles some other students are discussing on these
in d...@wso2.com. Since you are also familiar in this space we can also
bring your suggestions as projects if you have any.

On Thu, Mar 2, 2017 at 6:00 PM, 정형근  wrote:

> To WSO2,
>
>
> I am Hyungken Jung, a graduate student of Chungnam University in Korea.
>
> I am really interested in Complex Event Processing (CEP) and Event Stream
> Proecessing (ESP).
> Last year I contacted Suho and Mohan for WSO2 projects in Google Summer of
> Code with my friends, but we found GSoC projects had to go on an individual
> basis, so could not proceed the project because we were a team.
>
> Instead, my friends and I have been working on a project on EPL and Esper
> (url). Below is the results of our Esper related research .
>
> ​[1] H.K. Jung, J.H. Song, D.B. Lim, E. S. Cho, “A Query Preprocessing
> Automatization Tool for Performance Improvement in Event Stream Query
> Processing”, Proc.
> of the 2016 KIISE Programming Language on Computing Practices, 1863 -
> 1865. 2016.6(in Korean)
>
> ​[2] H.K. Jung, J.H. Song, D.B. Lim, E. S. Cho, “Web Based Real-time Event
> Stream Processing System”, Proc.
> of the 2016 KIISE Programming Language on Computing Practices, 2016.12(in
> Korean)
>
> [3] Award Engineering Capstone Design to Web-based Real-Time Event Stream
> System
>
> This year, since I am eager to participate in WSO2's project of GSoC as an
> individual, I would like to get more details on these projects to decide
> before application.
> Current suggestions that I find interesting are 'Proposal 5: Eclipse
> Plugin for Siddhi' and 'Proposal 16: Python API for Siddhi CEP'.
> Would you let me know any information on them or other WSO2 projects?
> Any references would be also appreciated.
>
> Thank you in advance,
>
> With best regards,
>
>
>
> From HyungKen
>
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 : Python API for Siddhi CEP

2017-03-13 Thread Sriskandarajah Suhothayan
Hi Roshan

Can you be more specific about your questions? Do a google search on this
project name there are other mails in d...@wso2.com discussing the scope of
this project.

Regards
Suho

On Fri, Mar 10, 2017 at 10:43 AM, Sajith Ravindra  wrote:

> [Adding Suho who could possibly mentor you through this project]
>
> Thanks
> *,Sajith Ravindra*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273550
> blog: http://sajithr.blogspot.com/
> 
>
> On Thu, Mar 9, 2017 at 9:23 PM, Roshan Alwis  > wrote:
>
>> Hi all,
>>
>> I am Roshan from University of Moratuwa. I did my internship at WSO2 in
>> Research Team under the supervision of Dr. Srinath Perera.
>>
>> I am very much familiar with Python and implemented an extension for WSO2
>> CEP for real-time prediction with H2O.ai  while I was
>> working there.
>>
>> I think I fit best in $subject and would like to know more about the
>> scope of the project.
>>
>> Thanks & Regards,
>>
>> Roshan Madhushanka
>>
>> Batch Representative (CSE 13),
>> Department of Computer Science and Engineering
>> University of Moratuwa.
>>
>> alwisroshan...@cse.mrt.ac.lk | 0715894672 <071%20589%204672>
>> [image: Facebook]
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-03-13 Thread Sriskandarajah Suhothayan
On Sat, Mar 11, 2017 at 8:45 PM, Nadun De Silva  wrote:

> Hi,
>
> I am an undergraduate at the University of Moratuwa in my final year. I
> also worked as an intern at WSO2 last year.
>
> I am interested in *"Siddhi Extension Doc Auto Generation"* GSoC project.
> I have worked with WSO2 CEP and Siddhi during my internship and I am also
> familiar with the Siddhi annotations.
>
> I went through the references provided and I would be very grateful if I
> can get more guidance on how I can learn more details about the project.
> Some of the questions I have are as follows.
>
>1. Does the final HTML pages need to be deployed into the current
>Siddhi documentation and if so is that part of the project scope?
>
> It will not be in the current Siddhi format, we are thinking of a plain
HTML and MD files which can be part of Siddhi Docs in Github.

>
>1. Does the combined documentation (Deliverable 3) need to be in the
>same structure the current documentation is in? (If not the combination can
>maybe be achieved by having separate pages for extension namespaces with
>proper navigation between them)
>
> Can have multiple pages (one per namespace) and having index and
navigation across is good. Please present your suggestion we can discuss
and come to a conclusion on this.

>
>1. If I understood correctly the project does not cover the inbuilt
>processors. Please correct me if I'm wrong.
>
> We have now done some improvements, and now the internal functions too
support annotations, so they can also be generated with the approach.

Regards
Suho


> Thank you.
>
> Nadun De Silva
> Undergraduate of Computer Science and Engineering
> University of Moratuwa
> https://lk.linkedin.com/in/nadundesilva
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-13 Thread Sriskandarajah Suhothayan
On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi.
>
> I am an undergraduate from Department of Computer Science and Engineering,
> University of Moratuwa. I recently completed my internship at WSO2 working
> with the Support Team on the project WSO2 Support Knowledge Base.
>
> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi CEP"*.
> My internship project at WSO2 was almost entirely done using Python.
> Additionally, I used Py4J Framework to interface certain parts of the
> project to JAVA APIs. Furthermore, I have a certain amount of exposure with
> Siddhi/CEP through the WHACK project I took part.
>
> I went through the provided details in WSO2 GSOC 2017 Project List page
> and I am interested to know some more details.
>
>1. What version of CEP/Siddhi should be used by the API?
>
> You need to support the latest released version of Siddhi and DAS which is
in DAS 3.1 and also for the latest Siddhi (4.0)

>
>1. In the description, does "Service APIs" refer to "Admin Services
>API" which is usually used by Admin Panel to communicate with CEP?
>
> Yes, to deploy the queries and to send and receive events

>
>1. Should the Siddhi Python API require WSO2 CEP to be running in
>order to make Python API usable?
>
> Not necessay it should both work with the running CEP/DAS and use Siddhi
library in the ohter cases.

>
>1. Is the Python API expected to do configuring of Siddhi CEP,
>streaming events to/from Siddhi CEP, or both?
>
> Yes in terms of queries.



> Thank You
>
>
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425 <071%20687%204425>
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Idea Plugin for Siddhi

2017-03-13 Thread Sriskandarajah Suhothayan
No need to implement siddhi execution and debugging, but we need to have
syntax highlighting and autocompletion.

Regards
Suho

On Sun, Mar 12, 2017 at 5:10 PM, Nipuna Sankalpa <
nipunasankalpa...@cse.mrt.ac.lk> wrote:

> Hi,
> I am an undergraduate from Department of Computer Science and Engineering
> University of Moratuwa. I'm interested on Gsoc project proposal No.4 : " *Idea
> Plugin for Siddhi* " which is listed under Wso2 proposal list. I have
> recently contributed to a project related to the Siddhi CEP [Real Time
> Value at Risk Computation] and now I'm familiar with with Siddhi CEP up to
> considerable level.
> I went through the proposal description and want to clarify,
> whether I need to include siddhi execution and debugging as a task for the
> proposal?? or else shall I prepare the proposal without it and complete the
> execution and debugging part if only the time permits.
>
> Thanks,
> Best Regards,
> --
>
> Nipuna Sankalpa,
>
> Undergraduate,
>
> Department of Computer Science & Engineering,
> University of Moratuwa,
>
> Sri Lanka.
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   3   4   >