Re: [Dev] [DAS] Real time analysis or batch analysis ?

2015-12-11 Thread Rushmin Fernando
Thanks for the explanation Suho.

On Fri, Dec 11, 2015 at 10:49 AM, Sriskandarajah Suhothayan 
wrote:

>
>
> On Fri, Dec 11, 2015 at 4:08 PM, Rushmin Fernando 
> wrote:
>
>> Thanks Tharik ! Your blog post helped a lot.
>>
>> However I could get the rate limit solution working since when i used
>> count it returned the cumulative figure rather than the count for a time
>> slot. May be I was doing something wrong. But I could get it done using a
>> timeBatch window.
>>
>> One more clarification ...
>>
>> The *TIMESTAMP*  filed is only available if you use a UI publisher, but
>> that graph doesn't show you the past data. (it only shows data from when
>> you opened the graph)
>>
>> I tried persisting the stream and rendering a graph against the data
>> table, but it didn't have a *TIMESTAMP *filed when it comes to graphs.
>>
>> So if we want to see graph a which shows the past data + which has a
>> short time interval, should we use batch analysis ? ( So it will be a
>> combination of batch analysis and real time analysis )
>>
> Yes currently thats the solution.
> If you are building a custom gadget then you can get the past results from
> batch analytics and then use realtime to show the current changes. But this
> is not provided out of the box.
>
> Suho
>
>>
>> Thanks
>> Rushmin
>>
>> On Fri, Dec 11, 2015 at 2:59 AM, Tharik Kanaka  wrote:
>>
>>> Hi Rushmin,
>>>
>>> As suho has mentioned you can write a siddhi query with a window or even
>>> you can use a rate limiter and count number of events then write it to an
>>> output stream. Same kind of scenario is explained in this blog post [1]
>>> where in that blog it is calculated the average but in your case it needs
>>> to be count.
>>>
>>> In the dashboard when you are selecting x and y axes, select TIMESTAMP
>>> for x axis and count for y axis. Chart is capable of identifying TIMESTAMPs
>>> seconds and plot them in X axis.
>>>
>>> [1]
>>> http://blog.tharik.org/2015/09/displaying-high-throughput-streams-in.html
>>>
>>> Regards,
>>>
>>> On Thu, Dec 10, 2015 at 11:25 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 You can use the event time
 @Tharik please point it out

 Suho

 On Thu, Dec 10, 2015 at 2:57 PM, Rushmin Fernando 
 wrote:

> Thanks Suho !
>
> Is it time window or time batch window ? How can we get the time
> points to plot.
>
> e.g. 12.01 - 2
>12.02 - 5
>12.03 - 3
>
> And the function should be *count()* right ? :-)
>
> On Thu, Dec 10, 2015 at 9:17 AM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Yes use a time window and calculate sum() and plot the results
>>
>> Suho
>>
>> On Thu, Dec 10, 2015 at 2:38 PM, Rushmin Fernando 
>> wrote:
>>
>>>
>>> Hi Devs,
>>>
>>> I need to address the following requirement.
>>>
>>> ---
>>>
>>> A server sends events upon each request, to DAS.
>>>
>>> There should a dashboard to show the number of request in each
>>> second.
>>>
>>> ---
>>>
>>> Since the time gap is small I am under the impression that batch
>>> analysis is not the best fit.
>>>
>>> How can we address a requirement like this ? Real time analysis
>>> would help ?
>>>
>>> Thanks
>>> Rushmin
>>>
>>>
>>> --
>>> *Rushmin Fernando*
>>> *Technical Lead*
>>>
>>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>>
>>> email : rush...@wso2.com
>>> mobile : +94772310855
>>>
>>>
>>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | 
>> linked-in:
>> http://lk.linkedin.com/in/suhothayan 
>> *
>>
>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>


 --

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


 *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
 http://suhothayan.blogspot.com/ twitter:
 http://twitter.com/suhothayan  | linked-in:
 

Re: [Dev] ESB proxy service for mix of TwoChannel and InOnly operations

2015-12-11 Thread Ayoma Wijethunga
Hi Jagath,

It was only a test service and I have attached class with this. Full source
is available at [1] as well.

Problem occurs with "void confirmOrder(-)" method because it is an InOnly
operation.  Unless "OUT_ONLY" property is applied on endpoint, ESB tries to
get return value of above operation invocation, resulting in the exception.

Hence, wanted to check with team what is the best approach to follow while
defining proxy for a WSDL that has both InOnly and TwoChannel operations in
a mix.

[1] https://svn.wso2.com/wso2/interns/2013/ayoma/Axis2

Thanks and best regards,
Ayoma.

On Fri, Dec 11, 2015 at 2:18 PM, Jagath Sisirakumara Ariyarathne <
jaga...@wso2.com> wrote:

> Hi Ayoma,
>
> Could you please share your OrderProcessor service class.
>
> Thanks.
>
> On Thu, Dec 10, 2015 at 5:10 PM, Ayoma Wijethunga  wrote:
>
>> Hi All,
>>
>> This is relevant to WSO2 ESB 4.9.0.
>>
>> In WSDL attached [1], there are five TwoChannelAxisOperation(s) and one
>> InOnlyAxisOperation. In such situation, if we create a single proxy service
>> in ESB with configuration [2
>> ],
>> InOnlyAxisOperation will fail with below exception :
>>
>> ERROR - NativeWorkerPool Uncaught exception
>>> java.lang.UnsupportedOperationException: An access occurred that is not
>>> valid.
>>> at
>>> org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:117)
>>> .
>>>
>>
>> ​​It was observed that it is possible to use "OUT_ONLY" and
>> "FORCE_SC_ACCEPTED" to correct this [3
>> ]
>> [4
>> ].
>> But relevant transport property applies to endpoint, resulting in
>> TwoChannelAxisOperation to fail if applied.
>>
>> When creating proxy service for a web service, what is the best practice
>> to follow in order to avoid this type of problems?
>> Do we create,
>>
>>- separate proxy services for each set of operations
>>- use "switch" or "filter" mediator in the "in sequence" and "send"
>>to OUT_ONLY endpoint depending on operation
>>
>> or what is the best path to follow?
>>
>> [1]
>> ​​https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStMDczTkRmMkhxcDg/view?usp=drive_web​
>> 
>> [2] ​​
>> https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStV3NhTG4wMWhvRFE/view?usp=drive_web
>> [3]
>> https://docs.wso2.com/display/ESB481/Sample+12%3A+One-Way+Messaging+in+a+Fire-and-Forget+Mode+through+ESB
>> [4]
>> https://docs.wso2.com/display/ESB481/HTTP+Transport+Properties#HTTPTransportProperties-FORCE_SC_ACCEPTED
>>
>> Thanks and best regards,
>> Ayoma Wijethunga
>> Software Engineer
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile : +94 (0) 719428123 <+94+(0)+719428123>
>> Blog : http://www.ayomaonline.com
>> LinkedIn: https://www.linkedin.com/in/ayoma
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Jagath Ariyarathne
> Technical Lead
> WSO2 Inc.  http://wso2.com/
> Email: jaga...@wso2.com
> Mob  : +94 77 386 7048
>
>


-- 
Ayoma Wijethunga
Software Engineer
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

Mobile : +94 (0) 719428123 <+94+(0)+719428123>
Blog : http://www.ayomaonline.com
LinkedIn: https://www.linkedin.com/in/ayoma
/*
 * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.wso2.fasttrack.axis2.orderprocessor.processor;

import java.math.BigDecimal;

import com.wso2.fasttrack.axis2.orderprocessor.datamodel.init.PaymentMethod;
import com.wso2.fasttrack.axis2.orderprocessor.datamodel.init.ShippingMethod;
import com.wso2.fasttrack.axis2.orderprocessor.datamodel.item.Item;
import com.wso2.fasttrack.axis2.orderprocessor.datamodel.order.Order;
import com.wso2.fasttrack.axis2.orderprocessor.datamodel.order.OrderItem;
import com.wso2.fasttrack.axis2.orderprocessor.datastore.DataStoreErrors;
import com.wso2.fasttrack.axis2.orderprocessor.datastore.ItemStore;
import com.wso2.fasttrack.axis2.orderprocessor.datastore.OrderItemStore;
import 

Re: [Dev] [DAS] Real time analysis or batch analysis ?

2015-12-11 Thread Rushmin Fernando
Thanks Tharik ! Your blog post helped a lot.

However I could get the rate limit solution working since when i used count
it returned the cumulative figure rather than the count for a time slot.
May be I was doing something wrong. But I could get it done using a
timeBatch window.

One more clarification ...

The *TIMESTAMP*  filed is only available if you use a UI publisher, but
that graph doesn't show you the past data. (it only shows data from when
you opened the graph)

I tried persisting the stream and rendering a graph against the data table,
but it didn't have a *TIMESTAMP *filed when it comes to graphs.

So if we want to see graph a which shows the past data + which has a short
time interval, should we use batch analysis ? ( So it will be a combination
of batch analysis and real time analysis )

Thanks
Rushmin

On Fri, Dec 11, 2015 at 2:59 AM, Tharik Kanaka  wrote:

> Hi Rushmin,
>
> As suho has mentioned you can write a siddhi query with a window or even
> you can use a rate limiter and count number of events then write it to an
> output stream. Same kind of scenario is explained in this blog post [1]
> where in that blog it is calculated the average but in your case it needs
> to be count.
>
> In the dashboard when you are selecting x and y axes, select TIMESTAMP for
> x axis and count for y axis. Chart is capable of identifying TIMESTAMPs
> seconds and plot them in X axis.
>
> [1]
> http://blog.tharik.org/2015/09/displaying-high-throughput-streams-in.html
>
> Regards,
>
> On Thu, Dec 10, 2015 at 11:25 PM, Sriskandarajah Suhothayan  > wrote:
>
>> You can use the event time
>> @Tharik please point it out
>>
>> Suho
>>
>> On Thu, Dec 10, 2015 at 2:57 PM, Rushmin Fernando 
>> wrote:
>>
>>> Thanks Suho !
>>>
>>> Is it time window or time batch window ? How can we get the time points
>>> to plot.
>>>
>>> e.g. 12.01 - 2
>>>12.02 - 5
>>>12.03 - 3
>>>
>>> And the function should be *count()* right ? :-)
>>>
>>> On Thu, Dec 10, 2015 at 9:17 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 Yes use a time window and calculate sum() and plot the results

 Suho

 On Thu, Dec 10, 2015 at 2:38 PM, Rushmin Fernando 
 wrote:

>
> Hi Devs,
>
> I need to address the following requirement.
>
> ---
>
> A server sends events upon each request, to DAS.
>
> There should a dashboard to show the number of request in each second.
>
> ---
>
> Since the time gap is small I am under the impression that batch
> analysis is not the best fit.
>
> How can we address a requirement like this ? Real time analysis would
> help ?
>
> Thanks
> Rushmin
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>


 --

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


 *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
 http://suhothayan.blogspot.com/ twitter:
 http://twitter.com/suhothayan  | linked-in:
 http://lk.linkedin.com/in/suhothayan 
 *

>>>
>>>
>>>
>>> --
>>> *Rushmin Fernando*
>>> *Technical Lead*
>>>
>>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>>
>>> email : rush...@wso2.com
>>> mobile : +94772310855
>>>
>>>
>>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>
>
>
> --
>
> *Tharik Kanaka*
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>



-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Builder] Jenkins build became unstable: product-as #802

2015-12-11 Thread Manuri Amaya Perera
Hi Shashika,

After it went to the ghost mode the actual web app is supposed to get
deployed once the request is sent. Here as I've mentioned above, the server
log which says actual webapp is deployed is missing.

On Fri, Dec 11, 2015 at 3:40 PM, Shashika Karunatilaka <
shashikabo...@gmail.com> wrote:

> Hi Manuri,
>
> Did you check whether the webapp is deployed after it went to ghost mode
> while it sending the request to the webapp
>
> Thank you.
>
> On Fri, Dec 11, 2015 at 1:08 PM, Manuri Amaya Perera 
> wrote:
>
>> Here what the failing test does is waiting for a web app to switch to
>> ghost mode and then sending a request. What should happen is once the ghost
>> webapp gets a request the actual webapp should be deployed and serve the
>> request. But here it seems that the request times out before the actual
>> webapp is deployed.
>>
>> The fix would be retrying the request until a time limit exceeds.
>>
>> Thank you.
>>
>>
>>
>> On Thu, Dec 3, 2015 at 10:13 AM, Manuri Amaya Perera 
>> wrote:
>>
>>> I'll look into this.
>>>
>>> On Wed, Dec 2, 2015 at 12:58 PM,  wrote:
>>>
 See 

 ___
 Builder mailing list
 buil...@wso2.org
 https://wso2.org/cgi-bin/mailman/listinfo/builder

>>>
>>>
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Best Regards,*
> *Shashika karunatilaka,*
>
> *B.Sc in Computer Science,*
> *University of Colombo School of Computing,*
> *Senior Software Engineer, StarHub Inc (www.starhub.com
> )*
> http://shashikabokks.wordpress.com
>



-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Real time analysis or batch analysis ?

2015-12-11 Thread Sriskandarajah Suhothayan
On Fri, Dec 11, 2015 at 4:08 PM, Rushmin Fernando  wrote:

> Thanks Tharik ! Your blog post helped a lot.
>
> However I could get the rate limit solution working since when i used
> count it returned the cumulative figure rather than the count for a time
> slot. May be I was doing something wrong. But I could get it done using a
> timeBatch window.
>
> One more clarification ...
>
> The *TIMESTAMP*  filed is only available if you use a UI publisher, but
> that graph doesn't show you the past data. (it only shows data from when
> you opened the graph)
>
> I tried persisting the stream and rendering a graph against the data
> table, but it didn't have a *TIMESTAMP *filed when it comes to graphs.
>
> So if we want to see graph a which shows the past data + which has a short
> time interval, should we use batch analysis ? ( So it will be a combination
> of batch analysis and real time analysis )
>
Yes currently thats the solution.
If you are building a custom gadget then you can get the past results from
batch analytics and then use realtime to show the current changes. But this
is not provided out of the box.

Suho

>
> Thanks
> Rushmin
>
> On Fri, Dec 11, 2015 at 2:59 AM, Tharik Kanaka  wrote:
>
>> Hi Rushmin,
>>
>> As suho has mentioned you can write a siddhi query with a window or even
>> you can use a rate limiter and count number of events then write it to an
>> output stream. Same kind of scenario is explained in this blog post [1]
>> where in that blog it is calculated the average but in your case it needs
>> to be count.
>>
>> In the dashboard when you are selecting x and y axes, select TIMESTAMP
>> for x axis and count for y axis. Chart is capable of identifying TIMESTAMPs
>> seconds and plot them in X axis.
>>
>> [1]
>> http://blog.tharik.org/2015/09/displaying-high-throughput-streams-in.html
>>
>> Regards,
>>
>> On Thu, Dec 10, 2015 at 11:25 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> You can use the event time
>>> @Tharik please point it out
>>>
>>> Suho
>>>
>>> On Thu, Dec 10, 2015 at 2:57 PM, Rushmin Fernando 
>>> wrote:
>>>
 Thanks Suho !

 Is it time window or time batch window ? How can we get the time points
 to plot.

 e.g. 12.01 - 2
12.02 - 5
12.03 - 3

 And the function should be *count()* right ? :-)

 On Thu, Dec 10, 2015 at 9:17 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Yes use a time window and calculate sum() and plot the results
>
> Suho
>
> On Thu, Dec 10, 2015 at 2:38 PM, Rushmin Fernando 
> wrote:
>
>>
>> Hi Devs,
>>
>> I need to address the following requirement.
>>
>> ---
>>
>> A server sends events upon each request, to DAS.
>>
>> There should a dashboard to show the number of request in each second.
>>
>> ---
>>
>> Since the time gap is small I am under the impression that batch
>> analysis is not the best fit.
>>
>> How can we address a requirement like this ? Real time analysis would
>> help ?
>>
>> Thanks
>> Rushmin
>>
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> email : rush...@wso2.com
>> mobile : +94772310855
>>
>>
>>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan 
> *
>



 --
 *Rushmin Fernando*
 *Technical Lead*

 WSO2 Inc.  - Lean . Enterprise . Middleware

 email : rush...@wso2.com
 mobile : +94772310855



>>>
>>>
>>> --
>>>
>>> *S. Suhothayan*
>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>> *WSO2 Inc. *http://wso2.com
>>> * *
>>> lean . enterprise . middleware
>>>
>>>
>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>> http://suhothayan.blogspot.com/ twitter:
>>> http://twitter.com/suhothayan  | linked-in:
>>> http://lk.linkedin.com/in/suhothayan *
>>>
>>
>>
>>
>> --
>>
>> *Tharik Kanaka*
>>
>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>
>> Email: tha...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise 

Re: [Dev] [Architecture] [BPS][BPMN] New REST API for BPMN statistics

2015-12-11 Thread Nandika Jayawardana
Lets attach the doc to a documentation jira so that api is added to the
documentation.

Regards
Nandika

On Thu, Dec 10, 2015 at 7:03 PM, Natasha Wijesekara 
wrote:

> Hi,
>
> @Vinod, I used the format given in the Activiti rest api documentation to
> include the response codes.
>
> @Nuwan, I have updated the user guide with the response codes and the
> sample success responses.
>
>
> Thanks,
> Natasha
>
> On Thu, Dec 10, 2015 at 8:39 AM, Vinod Kavinda  wrote:
>
>> Hi Natasha,
>> You can use the format used in Activiti rest api documentations [1] for
>> this also. It includes response codes and sample success responses.
>>
>> @Dinithi, we are doing basic authentication using the security handler
>> [2] AFAIK.
>>
>> [1] - http://www.activiti.org/userguide/#_get_a_deployment
>> [2] -
>> https://github.com/wso2/carbon-business-process/blob/master/components/bpmn/bpmn-rest/src/main/java/org/wso2/carbon/bpmn/rest/security/AuthenticationHandler.java
>>
>> Regards,
>> Vinod Kavinda
>>
>> On Thu, Dec 10, 2015 at 7:30 AM, Dinithi De Silva 
>> wrote:
>>
>>> Hi Natasha,
>>>
>>> How are you going to ensure the security of the APIs? Have you thought
>>> of using any security models?
>>>
>>> You can use  permission/role based model in order to achieve this. Just
>>> make sure which APIs need the administrative privileges.
>>>
>>> Thanks.
>>>
>>>
>>> On Wed, Dec 9, 2015 at 9:30 PM, Nuwan Pallewela  wrote:
>>>
 Hi Natasha,

 Great work.
 What happens if an invalid request or request with an illegal argument
 sent to the API ?
 It is better to have those response messages or response status code
 also in the documentation.

 Thanks,
 Nuwan

 On Wed, Dec 9, 2015 at 5:08 PM, Natasha Wijesekara 
 wrote:

> Hi,
>
> I  documented a user guide which contains details about the new rest
> API implemented to generate the statistics for bpmn.
> Appreciate any suggestions and comments.
>
> Thanks,
> Natasha
>
> On Tue, Dec 8, 2015 at 4:44 PM, Vinod Kavinda  wrote:
>
>> [Adding Architecture group]
>>
>> On Tue, Dec 8, 2015 at 2:45 PM, Natasha Wijesekara 
>> wrote:
>>
>>> Hi ,
>>>
>>> Currently the statistics generated for the bpmn-explorer is
>>> generated using jaggery. When the work load is high, the  bpmn-explorer
>>> takes a longer time to generate these statistics which causes 
>>> performance
>>> issues.
>>>
>>> As a solution I am working a new stats REST api  to generate these
>>> statistics at the back-end. This reduces the work load  and thereby 
>>> solves
>>> the performance issues caused during peak times (when the workload is at
>>> its maximum).
>>>
>>> After taking in data about  the bpmn processes, tasks  and users
>>> involved, the api  processes these data into meaningful statistics.These
>>> statistics generated is used in the bpmn-explorer reporting dashboard to
>>> generate the statistical graphs.
>>>
>>> The statistics generated includes:
>>>
>>> 1) Average time duration for all completed processes.
>>> The user has the option to either view all completed processes or
>>> the top 10 processes which finished within a short time duration or the 
>>> top
>>> 10 processes which took a long time duration to finish.
>>>
>>> 2) Average time duration of tasks of a  completed process.
>>> The user can select the completed process from the combo box and
>>> view the average time duration.
>>>
>>> 3) User and the no. of tasks he/she has completed upto now.
>>>
>>> 4) Average time taken by each user to complete the tasks assigned to
>>> him/her.
>>>
>>> 5) Task demand variation over time i.e. no. of tasks started and no.
>>> of tasks completed in each month. This is useful for resource allocation
>>> purposes.
>>>
>>> 6) Process demand variation over time i.e. no. of processes started
>>> and no. of processes completed in each month regardless of a specific 
>>> user.
>>> This is useful for resource allocation purposes.
>>>
>>> 7) User Performance i.e. Task demand variation of users separately
>>> over time i.e. no. of tasks started and no. of tasks completed in each
>>> month. This is useful for resource allocation purposes.
>>>
>>> I have attached the class diagram of the REST api. The new stats
>>> REST api will be integrated with the existing bpmn REST api.
>>> Appreciate any suggestions and comments.
>>>
>>> Thanks,
>>> --
>>> *Natasha Wijesekare*
>>>
>>> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
>>> *
>>> *email  : nata...@wso2.com *
>>> *mobile: +94 771358651 <%2B94%20771358651>*
>>>

Re: [Dev] [Builder] Jenkins build became unstable: product-as #802

2015-12-11 Thread Shashika Karunatilaka
Hi Manuri,

Did you check whether the webapp is deployed after it went to ghost mode
while it sending the request to the webapp

Thank you.

On Fri, Dec 11, 2015 at 1:08 PM, Manuri Amaya Perera 
wrote:

> Here what the failing test does is waiting for a web app to switch to
> ghost mode and then sending a request. What should happen is once the ghost
> webapp gets a request the actual webapp should be deployed and serve the
> request. But here it seems that the request times out before the actual
> webapp is deployed.
>
> The fix would be retrying the request until a time limit exceeds.
>
> Thank you.
>
>
>
> On Thu, Dec 3, 2015 at 10:13 AM, Manuri Amaya Perera 
> wrote:
>
>> I'll look into this.
>>
>> On Wed, Dec 2, 2015 at 12:58 PM,  wrote:
>>
>>> See 
>>>
>>> ___
>>> Builder mailing list
>>> buil...@wso2.org
>>> https://wso2.org/cgi-bin/mailman/listinfo/builder
>>>
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Best Regards,*
*Shashika karunatilaka,*

*B.Sc in Computer Science,*
*University of Colombo School of Computing,*
*Senior Software Engineer, StarHub Inc (www.starhub.com
)*
http://shashikabokks.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [BPS][BPMN] New REST API for BPMN statistics

2015-12-11 Thread Natasha Wijesekara
I created a documentation jira and attached the api doc.

Thanks
Natasha

On Fri, Dec 11, 2015 at 4:23 PM, Nandika Jayawardana 
wrote:

> Lets attach the doc to a documentation jira so that api is added to the
> documentation.
>
> Regards
> Nandika
>
> On Thu, Dec 10, 2015 at 7:03 PM, Natasha Wijesekara 
> wrote:
>
>> Hi,
>>
>> @Vinod, I used the format given in the Activiti rest api documentation to
>> include the response codes.
>>
>> @Nuwan, I have updated the user guide with the response codes and the
>> sample success responses.
>>
>>
>> Thanks,
>> Natasha
>>
>> On Thu, Dec 10, 2015 at 8:39 AM, Vinod Kavinda  wrote:
>>
>>> Hi Natasha,
>>> You can use the format used in Activiti rest api documentations [1] for
>>> this also. It includes response codes and sample success responses.
>>>
>>> @Dinithi, we are doing basic authentication using the security handler
>>> [2] AFAIK.
>>>
>>> [1] - http://www.activiti.org/userguide/#_get_a_deployment
>>> [2] -
>>> https://github.com/wso2/carbon-business-process/blob/master/components/bpmn/bpmn-rest/src/main/java/org/wso2/carbon/bpmn/rest/security/AuthenticationHandler.java
>>>
>>> Regards,
>>> Vinod Kavinda
>>>
>>> On Thu, Dec 10, 2015 at 7:30 AM, Dinithi De Silva 
>>> wrote:
>>>
 Hi Natasha,

 How are you going to ensure the security of the APIs? Have you thought
 of using any security models?

 You can use  permission/role based model in order to achieve this.
 Just make sure which APIs need the administrative privileges.

 Thanks.


 On Wed, Dec 9, 2015 at 9:30 PM, Nuwan Pallewela 
 wrote:

> Hi Natasha,
>
> Great work.
> What happens if an invalid request or request with an illegal argument
> sent to the API ?
> It is better to have those response messages or response status code
> also in the documentation.
>
> Thanks,
> Nuwan
>
> On Wed, Dec 9, 2015 at 5:08 PM, Natasha Wijesekara 
> wrote:
>
>> Hi,
>>
>> I  documented a user guide which contains details about the new rest
>> API implemented to generate the statistics for bpmn.
>> Appreciate any suggestions and comments.
>>
>> Thanks,
>> Natasha
>>
>> On Tue, Dec 8, 2015 at 4:44 PM, Vinod Kavinda  wrote:
>>
>>> [Adding Architecture group]
>>>
>>> On Tue, Dec 8, 2015 at 2:45 PM, Natasha Wijesekara >> > wrote:
>>>
 Hi ,

 Currently the statistics generated for the bpmn-explorer is
 generated using jaggery. When the work load is high, the  bpmn-explorer
 takes a longer time to generate these statistics which causes 
 performance
 issues.

 As a solution I am working a new stats REST api  to generate these
 statistics at the back-end. This reduces the work load  and thereby 
 solves
 the performance issues caused during peak times (when the workload is 
 at
 its maximum).

 After taking in data about  the bpmn processes, tasks  and users
 involved, the api  processes these data into meaningful 
 statistics.These
 statistics generated is used in the bpmn-explorer reporting dashboard 
 to
 generate the statistical graphs.

 The statistics generated includes:

 1) Average time duration for all completed processes.
 The user has the option to either view all completed processes or
 the top 10 processes which finished within a short time duration or 
 the top
 10 processes which took a long time duration to finish.

 2) Average time duration of tasks of a  completed process.
 The user can select the completed process from the combo box and
 view the average time duration.

 3) User and the no. of tasks he/she has completed upto now.

 4) Average time taken by each user to complete the tasks assigned
 to him/her.

 5) Task demand variation over time i.e. no. of tasks started and
 no. of tasks completed in each month. This is useful for resource
 allocation purposes.

 6) Process demand variation over time i.e. no. of processes started
 and no. of processes completed in each month regardless of a specific 
 user.
 This is useful for resource allocation purposes.

 7) User Performance i.e. Task demand variation of users separately
 over time i.e. no. of tasks started and no. of tasks completed in each
 month. This is useful for resource allocation purposes.

 I have attached the class diagram of the REST api. The new stats
 REST api will be integrated with the existing bpmn REST api.

[Dev] App Manager 1.1.0 latest build pack - 11-12-2015

2015-12-11 Thread Dinusha Senanayaka
Hi,

Please find $subject in [1].

[1]
http://builder1.us1.wso2.org/~appm/release-1.1.0/11-12-2015/wso2appm-1.1.0-SNAPSHOT-11-12-2015.zip

Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.3 RC3

2015-12-11 Thread Nipuni Perera
Hi Devs,

This is the RC3 release candidate of WSO2 Carbon Kernel 4.4.3.

This release fixes the following issues:
https://wso2.org/jira/issues/?filter=12540

Please download and test your products with kernel 4.4.3 RC3
and vote. Vote will be open for 72 hours or as longer as needed.

*​Source and binary distribution files:*
http://svn.wso2.org/repos/wso2/people/nipuni/4.4.3-rc3/

*Maven staging repository:*
http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-168/

*The tag to be voted upon:*
https://github.com/wso2/carbon-kernel/releases/tag/v4.4.3-RC3


[ ] Broken - do not release (explain why)
[ ] Stable - go ahead and release

Thank you
Carbon Team

-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Blog : http://nipunipererablog.blogspot.com/
Mobile: +94 (71) 5626680

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


[Dev] Prediction - 'skip decoding' query param

2015-12-11 Thread Nirmal Fernando
I've added a query param to the prediction API s.t. it would not decode the
predicted value if skipDecoding query param set to true.

https://docs.wso2.com/display/ML110/Making+a+Prediction+Using+a+Model+via+REST+API

@Rukshani can you replicate the same query param to other predict APIs ?

-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Kasun Bandara

2015-12-11 Thread Johann Nallathamby
Hi All,

It's my pleasure to announce Kasun Bandara as a WSO2 Committer. Kasun has been
a valuable contributor for WSO2 Identity Server product, and in recognition
of his contribution to WSO2, he has been voted as a WSO2 Committer.

Kasun, congratulations and keep up the good work!

Thanks & Regards.

-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Global database configurations for secondary custom user store

2015-12-11 Thread Tharindu Edirisinghe
Hi Thilini,

For primary userstore, this is configurable by adding
 as mentioned in [1] and [2].
But according to [3] it seems this is not configurable for secondary
userstores.

However setting autocommit to true can cause problems sometimes as we
cannot roll back a transaction with multiple SQL commands. Refer mail
thread [4] for more details.

[1] https://wso2.org/jira/browse/DOCUMENTATION-841
[2] https://wso2.org/jira/browse/CARBON-14799
[3]
https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCRealmConstants.java
[4] https://www.mail-archive.com/dev@wso2.org/msg53036.html

Regards,
Tharindu

On Fri, Dec 11, 2015 at 10:52 AM, Thilini Cooray  wrote:

> Hi,
>
> How can we set *autoCommit* value in a* global configuration for a
> secondary custom user store database* ?
>
> Following are some of our findings about user store database handling
> related implementation
>
>- When we analyze  getDBConnection() method in
>org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager, we observed that
>from the source level, carbon-identity has made *default autocommit
>value *to* false*.
>
>
>- WSO2 IS has enabled us to add custom database related properties to
>
> /repository/deployment/server/userstores/.xml.
>   - createUserStoreDataSource(RealmConfiguration realmConfig) method
>   in JDBCUserStoreManager is the place where secondary user store
>   configuration file is read and datasource connection pool is configured.
>   - In above method, url, userName, password, maxActive, minIdle,
>   maxIdle, maxWait,
>   testWhileIdle, timeBetweenEvictionRunsMillis, 
> minEvictableIdleTimeMillis,
>   validationQuery are the only properties which users are allowed to
>   configure for secondary user store database as per WSO2 IS 5.0.0
>   - *autocommit property was not included among configurable
>   propertie*s in createUserStoreDataSource method
>- Even though we can set *defaultAutoCommit property* from
>configuration xml file, due to above reasons, that property *gets
>overridden to false all the time*.
>- Therefore changing autocommit settings from custom user store source
>(AbstractCustomUserStoreManager.java class) could be identified as a
>solution.
>
> Is there an approach we can enable/disable autocommit for a secondary
> custom user store database using a configuration file other than editing
> user store source?
>
> Thanks.
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Identity Server Team
Blog : tharindue.blogspot.com
mobile : 408-714-8437
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.3 RC3

2015-12-11 Thread Darshana Gunawardana
Hi,

Built a pack on top of kernel 4.4.3 RC3 and all IS 5.1.0 integration tests
(including the test case written for IDENTITY-4219) passed successfully.

Will test further and vote.

Thanks,



On Fri, Dec 11, 2015 at 8:15 PM, Nipuni Perera  wrote:

>
> Hi Devs,
>
> This is the RC3 release candidate of WSO2 Carbon Kernel 4.4.3.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12540
>
> Please download and test your products with kernel 4.4.3 RC3
> and vote. Vote will be open for 72 hours or as longer as needed.
>
> *​Source and binary distribution files:*
> http://svn.wso2.org/repos/wso2/people/nipuni/4.4.3-rc3/
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-168/
>
> *The tag to be voted upon:*
> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.3-RC3
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thank you
> Carbon Team
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Blog : http://nipunipererablog.blogspot.com/
> Mobile: +94 (71) 5626680
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,


*Darshana Gunawardana*Senior Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] Need help to update table

2015-12-11 Thread Inosh Goonewardena
Hi Nethaji,

You can publish data through HTTP transport [1]. Also please keep in mind
that if you want to update the record you have to configure the primary
keys for the table.

[1] https://docs.wso2.com/display/DAS300/HTTP+Event+Receiver


On Fri, Dec 11, 2015 at 11:15 AM, Nirmal Fernando  wrote:

>
> On Fri, Dec 11, 2015 at 11:07 AM, Nethaji Chandrasiri 
> wrote:
>
>> Hi,
>>
>> I'm currently working on a website to demonstrate a recommender system
>> using ML. As per chosen scenario when users rate movies I want to update
>> DAS table (as a new record). Can someone please help me with this? (Data
>> will be taken from UI).
>>
>>
>> Thanks
>> --
>> *Nethaji Chandrasiri*
>> *Software Engineering* *Intern; WSO2, Inc.; http://wso2.com
>> *
>> Mobile : +94 (0) 779171059 <%2B94%20%280%29%20778%20800570>
>> Email  : neth...@wso2.com
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Thanks & Regards,

Inosh Goonewardena
Associate Technical Lead- WSO2 Inc.
Mobile: +94779966317
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Developer Studio Kernel 4.0.0 RC2

2015-12-11 Thread Susinda Perera
Hi All

I have tested installing devs from 'Check for updates' tool, and uninstall
from eclipse tool and reinstall.
Checked install WSO2 Tools
ESB,Registry,DSS projects tested for basic functionality.
Checked Capp functionality with above project and those are working fine.
 +1 for release

Susinda


On Fri, Dec 11, 2015 at 11:01 AM, Awanthika Senarath 
wrote:

> I have checked installation, uninstallation of both P2 s in kernel and its
> functionality.
>
> It works fine
>
> Also I tested the ESB feature, Registry with Capp integration and those
> works fine
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Wed, Dec 9, 2015 at 10:24 PM, Kavith Lokuhewage 
> wrote:
>
>> Hi Devs,
>>
>> Vote for WSO2 Developer Studio Kernel 4.0.0 - Second Release Candidate.
>>
>> This release contains the new tooling kernel - a set of common tooling
>> components - separated from the 3.8.0 release of Developer Studio.
>> In addition to that, this contains following fixes and improvements.
>> https://wso2.org/jira/issues/?filter=12574
>>
>> Please install Developer Studio kernel into Eclipse Luna JEE SR2, test
>> and vote. Vote will be open for 72 hours or longer as needed.
>>
>> *P2 repository*
>>
>> http://builder1.us1.wso2.org/~developerstudio/devs-kernel/4.0.0/releases/rc2/p2/
>>
>> *P2 archives*
>>
>> http://builder1.us1.wso2.org/~developerstudio/devs-kernel/4.0.0/releases/rc2/
>>
>> *The tag to be voted upon*
>> https://github.com/wso2/developer-studio/tree/4.0.0.201512091030-RC2
>>
>> [ - ] Broken - do not release (explain why)
>> [ +] Stable - go ahead and release
>>
>> Thanks,
>> Developer Studio Team
>>
>> --
>> *Kavith Lokuhewage*
>> Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +9477-9-145-123 | +9471-455-6-401
>> Linkedin 
>> Twitter 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Governance Registry - What means these double curly braces in hbs files and how does it work ?

2015-12-11 Thread Danushka Fernando
AFAIU what you are looking for is handlebars reference [1].

[1] http://handlebarsjs.com/

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Thu, Dec 10, 2015 at 3:46 PM, Arnaud Charpentier <
arnaud.charpent...@student.ecp.fr> wrote:

> Hi,
>
>
> We are new to UI development of governance registry and are trying to
> internationalise some text of the publisher.
>
> We've tried to pass JS var from the server side to the client with jquery
> but it doesn't work. It seems that we should use the syntax with double
> curly braces as is done in every hbs files.
>
>
> But our problem is that we can't understand what are all these double
> curly braces. We've done many researches and tests but we're not able to
> figure out how does it work.
>
> Is that an existing web technology or a mechanism that WSO2 has created ?
>
> If this syntax was specifically created by WSO2, is there any
> documentation to help us on this subject ? Or could you explain us briefly
> how does it work ?
>
>
>
> Regards
>
>
> Arnaud Charpentier
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing Jaggery-plugin from Developer Studio

2015-12-11 Thread Awanthika Senarath
# adding Engineering, Manuranga and Manjula

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Mon, Dec 7, 2015 at 3:26 PM, Rajeeva Uthayasangar 
wrote:

> HI,
>
> This is to inform that we are going to remove the jaggery plugin from
> Developer-studio since it is not being used.
>
> thanks
> Rajeeva.
>
> --
> *Rajeeva Uthayasangar*
> Software Engineer
> WSO2, Inc.:http://wso2.com
>
>
> Mobile: +94777298873
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Developer Studio Kernel 4.0.0 RC2

2015-12-11 Thread Rajeeva Uthayasangar
HI,

I have tested the following product plugins installing on top the Kernel.

1) registry resource project and resource.
2) Analytics project
3) Appfactory
4) App server
5)  BRS
6) ESB
7) BPS
8) APIM perspective
9) Carbon UI bundle
10) DSS
11) Registry filter project and handler project

Tested the CAPP listing and exporting artifacts as car for above plugins
Tested the "Check updates" options and it works fine
Tested installation tools option.
Tested uninstalling kernel core features.

All the above mentioned functionalities work fine.
So +1 for release.

thanks
Rajeeva.



On Fri, Dec 11, 2015 at 2:41 PM, Susinda Perera  wrote:

> Hi All
>
> I have tested installing devs from 'Check for updates' tool, and uninstall
> from eclipse tool and reinstall.
> Checked install WSO2 Tools
> ESB,Registry,DSS projects tested for basic functionality.
> Checked Capp functionality with above project and those are working fine.
>  +1 for release
>
> Susinda
>
>
> On Fri, Dec 11, 2015 at 11:01 AM, Awanthika Senarath 
> wrote:
>
>> I have checked installation, uninstallation of both P2 s in kernel and
>> its functionality.
>>
>> It works fine
>>
>> Also I tested the ESB feature, Registry with Capp integration and those
>> works fine
>>
>> Regards
>> Awanthika
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Wed, Dec 9, 2015 at 10:24 PM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> Vote for WSO2 Developer Studio Kernel 4.0.0 - Second Release Candidate.
>>>
>>> This release contains the new tooling kernel - a set of common tooling
>>> components - separated from the 3.8.0 release of Developer Studio.
>>> In addition to that, this contains following fixes and improvements.
>>> https://wso2.org/jira/issues/?filter=12574
>>>
>>> Please install Developer Studio kernel into Eclipse Luna JEE SR2, test
>>> and vote. Vote will be open for 72 hours or longer as needed.
>>>
>>> *P2 repository*
>>>
>>> http://builder1.us1.wso2.org/~developerstudio/devs-kernel/4.0.0/releases/rc2/p2/
>>>
>>> *P2 archives*
>>>
>>> http://builder1.us1.wso2.org/~developerstudio/devs-kernel/4.0.0/releases/rc2/
>>>
>>> *The tag to be voted upon*
>>> https://github.com/wso2/developer-studio/tree/4.0.0.201512091030-RC2
>>>
>>> [ - ] Broken - do not release (explain why)
>>> [ +] Stable - go ahead and release
>>>
>>> Thanks,
>>> Developer Studio Team
>>>
>>> --
>>> *Kavith Lokuhewage*
>>> Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +9477-9-145-123 | +9471-455-6-401
>>> Linkedin 
>>> Twitter 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Rajeeva Uthayasangar*
Software Engineer
WSO2, Inc.:http://wso2.com


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


[Dev] Fwd: WSO2 Machine Learner 1.1.0 - Beta Released!

2015-12-11 Thread Maheshakya Wijewardena
*WSO2 Machine Learner 1.1.0 - Beta Released!*


We are pleased to announce that the Beta release of WSO2 Machine Learner
1.1.0 is now available to download from here
.
Source and tag location for this release is available here
.

Machine learning has emerged as a key component of big data analytics
space. The goal of WSO2 Machine Learner is to make machine learning
accessible to WSO2 big data platform. WSO2 Machine Learner (
http://wso2.com/products/machine-learner/) provides a user friendly wizard
like interface, which guides users through a set of steps to find and
configure machine learning algorithms. The outcome of this process is a
model that can be deployed in multiple WSO2 products, such as WSO2
Enterprise Service Bus (ESB), WSO2 Complex Event Processor (CEP), WSO2 Data
Analytics Server (DAS) etc.

The novice-friendly machine learning analysis allows developers, data
scientists and database administrators to quickly implement machine
learning methods. If you are familiar with WSO2 products, you can utilize
WSO2 Machine Learner to build machine learning models for various tasks,
such as fraud detection, anomaly detection, classification etc. WSO2
Machine Learner is built up on the award-winning, WSO2 Carbon platform,
which is based on the OSGi framework enabling better modularity for your
service oriented architecture (SOA).

*Key Features of WSO2 ML 1.1.0 Release*

   -

   Deep learning algorithm support
   -

   Anomaly detection algorithm support
   -

   Recommendation algorithm support
   -

   PMML support


*Fixes from Alpha release to Beta*

[image: Improvement]
ML-246


Add audit logs 
[image: Bug]
ML-259


Response variable filed doesn't hide in K means with unlabeled data anomaly
detection algorithm 
[image: Bug]
ML-241


HDFS StorageDirectory property should include URL

[image: Bug]
ML-245


[HDFS] Shouldn't copy HDFS files from client side to server

[image: Improvement]
ML-273


Allowing decoding to be disabled at the prediction time

[image: Bug]
ML-258


Download and Publish options missing for kmeans in model comparison page

[image: Bug]
ML-257


Predict Button Missing in Model Page 
[image: Task]
ML-234


Remove org.wso2.carbon.ml.core.spark.ConfusionMatrix unused java class

[image: Bug]
ML-236


[ML DB] ML_MODEL table ERROR column size need be increased

[image: Bug]
ML-262


Some Algorithm configurations missing in Analysis Configurations view of
Recommendation and Anomaly Detection Algorithms

[image: Improvement]
ML-256


Connect ML to external H2O cluster 
[image: Bug]
ML-243


When a dataset is created by adding a data file - the status indicates as
processing even though completed 
[image: Sub-task]
ML-272


ML-260  In breadcrumbs (in models,
analyses), nothing is linked and only shows path. There is no point of
showing only the path. Users should be able to navigate using that.


[Dev] [ESB] Sample 371 - ThrottleAssertion not correctly rendered in design view

2015-12-11 Thread Ayoma Wijethunga
Hi All,

Synapse Sample 371 [1
]
uses "ThrottleAssertion" to define throttle policy and it is not correctly
rendered in WSO2 ESB design view [2
].


When a policy is directly created using WSO2 ESB design view,
"MediatorThrottleAssertion" is used instead of "ThrottleAssertion".

Have we deprecated use of "ThrottleAssertion" in favour of
"MediatorThrottleAssertion"?

If so, I have created a pull request with corrections [3
]. It is great if ESB team
could review the pull request.

[1]
https://github.com/wso2/product-esb/blob/master/modules/samples/product/src/main/conf/synapse/synapse_sample_371.xml
[2] ​​
https://drive.google.com/a/wso2.com/file/d/0B-0UyBaVrBStdjM0NWlwc2lfY1E/view?usp=drive_web
[3]  https://github.com/wso2/product-esb/pull/412
-- 
Ayoma Wijethunga
Software Engineer
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

Mobile : +94 (0) 719428123 <+94+(0)+719428123>
Blog : http://www.ayomaonline.com
LinkedIn: https://www.linkedin.com/in/ayoma
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Global database configurations for secondary custom user store

2015-12-11 Thread Thilini Cooray
Hi,

How can we set *autoCommit* value in a* global configuration for a
secondary custom user store database* ?

Following are some of our findings about user store database handling
related implementation

   - When we analyze  getDBConnection() method in org.wso2.carbon.user.core.
   jdbc.JDBCUserStoreManager, we observed that from the source level,
   carbon-identity has made *default autocommit value *to* false*.


   - WSO2 IS has enabled us to add custom database related properties to
   
/repository/deployment/server/userstores/.xml.
  - createUserStoreDataSource(RealmConfiguration realmConfig) method in
  JDBCUserStoreManager is the place where secondary user store
  configuration file is read and datasource connection pool is configured.
  - In above method, url, userName, password, maxActive, minIdle,
  maxIdle, maxWait,
  testWhileIdle, timeBetweenEvictionRunsMillis, minEvictableIdleTimeMillis,
  validationQuery are the only properties which users are allowed to
  configure for secondary user store database as per WSO2 IS 5.0.0
  - *autocommit property was not included among configurable propertie*s
  in createUserStoreDataSource method
   - Even though we can set *defaultAutoCommit property* from configuration
   xml file, due to above reasons, that property *gets overridden to false
   all the time*.
   - Therefore changing autocommit settings from custom user store
source (AbstractCustomUserStoreManager.java
   class) could be identified as a solution.

Is there an approach we can enable/disable autocommit for a secondary
custom user store database using a configuration file other than editing
user store source?

Thanks.

-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2EMM 2.0.0 Beta Released.!

2015-12-11 Thread Geeth Munasinghe
*WSO2 Enterprise Mobility Manager 2.0.0  Beta Released..!*

Date :  11st December 2015

The WSO2 CDM team is pleased to announce the release of* WSO2EMM 2.0.0 Beta*.
You can download the distribution from [1].

New release of WSO2EMM 2.0.0 is a complete rewrite which addresses few
shortcomings of previous WSO2EMM 1.1.0 and introducing new pluggable
component architecture.

EMM Suite consists of following major components.

   1. WSO2 Connected Device Management Framework (CDMF).
   2. WSO2 Mobile Device Manager (MDM).
   3. WSO2 Mobile App Manager. (MAM)

*CDMF* is a comprehensive platform that helps to solve computing challenges
enterprises face today when dealing with IoT device-related scenarios such
as Device Provisioning, Device Configuration Management, Policy
Enforcement, Application Management, Device Data Security and Compliance
Monitoring.

*MDM* helps to solve problems faced in enterprises when dealing with mobile
devices of both Corporate-Owned, Personally Enabled (COPE) devices and
employee-owned devices as part of a Bring Your Own Device (BYOD) program.

*MAM* is a powerful platform for managing, consuming and monitoring mobile
Applications.

This release consists of following features.

*Core Features*

   1. User, roles, device, policy, operation, configuration and license
   management.
   2. Self service enrollment for user.
   3. BYOD & COPE separation.
   4. Identity management.
   5. API everywhere.
   6. Multi-tenancy.
   7. MDM platform features. (iOS, Android, Windows)
   8. Extendable device management feature which help to add new device
   types.
   9. Support for a clustered deployment architecture


*iOS Features*

   1. Device Lock.
   2. Install/uninstall store and enterprise applications.
   3. Fetch location.
   4. Cellular.
   5. Get device information.
   6. Restrictions (nearly 70 supported).
   7. Alarm.
   8. Setup WIFI Profiles.
   9. Airplay.
   10. APN.
   11. Setup LDAP.
   12. Setup email accounts.
   13. CalDav.
   14. Calendar subscription.
   15. Passcode policy.
   16. Install web clips.
   17. Get application list.
   18. Clear passcode.
   19. Get profile list.
   20. Remove profiles.
   21. App lock.
   22. Get installed restrictions.
   23. Enterprise WIPE.

*Android Features*

   1. Passcode policy.
   2. Restriction on camera.
   3. Encryption settings.
   4. Setup WIFI.
   5. Location.
   6. Device info.
   7. Install/uninstall store and enterprise applications.
   8. Device lock.
   9. Clear passcode.
   10. Enterprise WIPE.
   11. Master reset.
   12. Application list.
   13. Ring device.
   14. Mute.
   15. Send messages.
   16. Change lock code.
   17. Install web clips.
   18. Support GCM/LOCAL connectivity modes.

*Windows Features*

   1. Passcode policy.
   2. Restriction on camera.
   3. Encryption settings.
   4. Device info.
   5. Lock reset.
   6. Device lock.
   7. Ring device.
   8. Dis-enroll device.
   9. Data wipe.

*Application Management Features*

   1. Provisioning your app to right users.
   2. Protect your apps from unauthorized users.
   3. App store to provide information about your apps.
   4. Manage app lifecycle.

We have fixed the following jira issues.

   - [EMM-983 ] - [MDM] Unable to
   edit user details
   - [EMM-986 ] - Exception when
   issuing access token for device user
   - [EMM-987 ] - QR code uses host
   ip even when the carbon.xml is configured with domain host name
   - [EMM-988 ] - Invalid username
   appears in enrollment invitation mail
   - [EMM-989 ] - Can not enroll a
   device using the default password given in enrollment invitation mail
   - [EMM-990 ] - [PostgresSQL]
   Exception when validating refresh token
   - [EMM-991 ] -
   'NullPointerException' in start up logs
   - [EMM-1002 ] - Change password
   functionality do not support Latin charachters
   - [EMM-1003 ] - Devices enrolled
   for other users are shown in 'view user details' UI
   - [EMM-1004 ] - Device
   information view in 'User Profile' give HTTP 405 error
   - [EMM-1005 ] - Delete option is
   enabled for a user who do not have delete permission
   - [EMM-1006 ] - Unnecessary error
   messages appear in terminal
   - [EMM-1007 ] - MDM allows to
   unselect child permissions when parent permission is selected
   - [EMM-1009 ] - Exception when
   editing role name associated with device user
   - [EMM-1010 ] - Unable to remove
   users assigned to a role
   - 

Re: [Dev] [IS] Global database configurations for secondary custom user store

2015-12-11 Thread Thilini Cooray
Hi Tharindu,

Thanks a lot for your input.

Indeed there can be issues of setting autocommit to true when it comes to
write operations and composite database operations.

In a use case of READ-ONLY custom secondary user store,
   is *changing autocommit settings from source code*
itself the recommended approach?

Thanks.


On Sat, Dec 12, 2015 at 6:50 AM, Tharindu Edirisinghe 
wrote:

> Hi Thilini,
>
> For primary userstore, this is configurable by adding
>  as mentioned in [1] and [2].
> But according to [3] it seems this is not configurable for secondary
> userstores.
>
> However setting autocommit to true can cause problems sometimes as we
> cannot roll back a transaction with multiple SQL commands. Refer mail
> thread [4] for more details.
>
> [1] https://wso2.org/jira/browse/DOCUMENTATION-841
> [2] https://wso2.org/jira/browse/CARBON-14799
> [3]
> https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCRealmConstants.java
> [4] https://www.mail-archive.com/dev@wso2.org/msg53036.html
>
> Regards,
> Tharindu
>
> On Fri, Dec 11, 2015 at 10:52 AM, Thilini Cooray 
> wrote:
>
>> Hi,
>>
>> How can we set *autoCommit* value in a* global configuration for a
>> secondary custom user store database* ?
>>
>> Following are some of our findings about user store database handling
>> related implementation
>>
>>- When we analyze  getDBConnection() method in
>>org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager, we observed that
>>from the source level, carbon-identity has made *default autocommit
>>value *to* false*.
>>
>>
>>- WSO2 IS has enabled us to add custom database related properties to
>>
>> /repository/deployment/server/userstores/.xml.
>>   - createUserStoreDataSource(RealmConfiguration realmConfig) method
>>   in JDBCUserStoreManager is the place where secondary user store
>>   configuration file is read and datasource connection pool is 
>> configured.
>>   - In above method, url, userName, password, maxActive, minIdle,
>>   maxIdle, maxWait,
>>   testWhileIdle, timeBetweenEvictionRunsMillis, 
>> minEvictableIdleTimeMillis,
>>   validationQuery are the only properties which users are allowed to
>>   configure for secondary user store database as per WSO2 IS 5.0.0
>>   - *autocommit property was not included among configurable
>>   propertie*s in createUserStoreDataSource method
>>- Even though we can set *defaultAutoCommit property* from
>>configuration xml file, due to above reasons, that property *gets
>>overridden to false all the time*.
>>- Therefore changing autocommit settings from custom user store
>>source (AbstractCustomUserStoreManager.java class) could be
>>identified as a solution.
>>
>> Is there an approach we can enable/disable autocommit for a secondary
>> custom user store database using a configuration file other than editing
>> user store source?
>>
>> Thanks.
>>
>> --
>> Best Regards,
>>
>> *Thilini Cooray*
>> Software Engineer
>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>> E-mail : thili...@wso2.com
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Identity Server Team
> Blog : tharindue.blogspot.com
> mobile : 408-714-8437
>
>
>


-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev