Re: [Dev] Invoking Human Task in BPEL

2017-07-01 Thread Heshitha Hettihewa
Hi Lipsa,

AFAIK there is no straight forward documentation for that. The humantask
artifacts created using WSO2 developer studio contains wsdls for task
service and the callback service. You may add these two services as partner
links and invoke them. In WSO2 developer studio BPEL editor use a Remote
Task and add them as partner links(You can add the above services as
partner links using their wsdls). To do that add a Remote task(Inside
BPEL4People category) to BPEL sequence. Then configure it by adding input
output variables and partner links through the properties. This article[1]
gives an idea about adding partner links through WSO2 developer studio.

With remote tasks you can invoke the human task service and receive the
output through task callback service.You can refer this[2] blog post to get
an idea about using remote tasks.

[1]. http://wso2.com/library/articles/2012/09/develop-wsbpel-
apache-ode-wso2-developer-studio/
[2]. http://himashag.blogspot.com/2016/08/why-are-human-tasks-imp
ortant-for-your.html

Thanks.

On Fri, Jun 30, 2017 at 12:44 PM, Lipsa Pradhan <
lipsa.prad...@adnatesolutions.com> wrote:

> Thanks for the docs... But is there any document either for the process of
> triggering a Human Task from a BPEL or for adding a RemoteTask in a BPEL.
>
> On Fri, Jun 30, 2017 at 11:56 AM, Heshitha Hettihewa 
> wrote:
>
>> Hi Lipsa,
>>
>> For this you should install BPS Tooling pack as described in this doc[1].
>> There is a human task editor which can be used to create a human task
>> easily. You can find a step by step guide in here[2]. More over you can use
>> the BPEL editor to create a BPEL and you can find a guide to create a BPEL
>> using developer studio here[3]. With these you can create your own BPEL and
>> human task artifacts.
>>
>> [1]. https://docs.wso2.com/display/BPS360/Installing+the+BPS+Tool
>> ing+Plug-In
>> [2]. https://docs.wso2.com/display/BPS360/Writing+a+Human+Task+Ar
>> tifact+using+the+Editor
>> [3]. https://docs.wso2.com/display/BPS360/Creating+a+BPEL+Process
>>
>> Thanks.
>>
>> On Fri, Jun 30, 2017 at 11:23 AM, Lipsa Pradhan <
>> lipsa.prad...@adnatesolutions.com> wrote:
>>
>>> Hi everyone
>>>
>>> I want to know the procedure of creating a human task in a BPEL, which
>>> is being created in developer studio. Actually, in the
>>> avalable documentations, there is a single example of ClaimApprovalTask
>>> everywhere. That too, not from scratch, we are supposed to deploy the files
>>> from samples folder directly.
>>>
>>> So, can anyone provide me documentation for the BPEL Creation with
>>> Humantask in developer studio?
>>>
>>> Thanks in advance!
>>>
>>> Warm Regards
>>> Lipsa Pradhan
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>


-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC][SCIM] SCIM 2.0 Test Dependencies

2017-07-01 Thread Vindula Jayawardana
Hi Johann,

>
>> In SCIM 2.0 compliance test suite, there are inter dependencies between
>> tests. For an example,
>>
>> We have identified /Schemas endpoint as a critical test which tests the
>> schemas corresponding to user and group resources according to SCIM
>> specification. However in a case where a SCIM service provider has
>> customized the schemas according to their own requirements, this test will
>> be failed. As the test suite uses the /Schemas endpoint to learn about the
>> service providers schema definitions (consider the case where there is a
>> user schema extension defined by the service provider), if the /Schemas
>> endpoint fails, the test suite will be terminated immediately as the test
>> suite cannot learn the configurations. However we can also make it not to
>> terminate but to get adjusted to the service provider's configs after just
>> failing the /Schemas endpoint test only. With that, the service provider
>> will be able to run the remaining tests on the altered schemas without
>> being blocked due to test dependency. But it should also be noted that,
>> this approach can cause the test suite to not to adhere to the
>> specification, but to adjust itself dynamically after a proper indication
>> of the reason for the adjustment.
>>
>> Hence, as identified in the above example, there are two possible options
>> in a test dependency situation.
>>
>> 1. Terminate
>> 2. Adjust accordingly and continue the suite but fails only the parent
>> test.
>>
>> What is the best way of handling this?. Any thoughts on this is highly
>> appreciated.
>>
>
> I would say just terminate. Why would you need to customize the core user
> schema when there is the possibility of defining an extended user schema.
> No one asked you to stick to any of the attributes coming from the core
> schema right?
>

Yes, you have a good point on this. Assuming user schema can be done in the
way you have specified,  still there can be a problem when it comes to
group schema since it does not have an extension defined. However due to
the less number of attributes associated with the group schema and their
nature of it, I would say, it is very likely that service providers will
not be altering the group schema most of the cases. Hence putting an effort
on the second option could be redundant. So I agree with the termination
based on your reasoning.

>
>
>>
>> Thank you
>> *Vindula Jayawardana*
>> Computer Science and Engineering Dept.
>> University of Moratuwa
>> mobile : +713462554
>> Email : vindul...@gmail.com
>>
>> 
>> 
>> 
>> 
>>
>> *“Respect is how to treat everyone, not just those you want to impress. "*
>>
>>
>> *-Richard Branson-*
>>
>>
>>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Senior Technical Lead - 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] [GSoC][SCIM] SCIM 2.0 Test Dependencies

2017-07-01 Thread Vindula Jayawardana
Hi Gayan,

>
>> In SCIM 2.0 compliance test suite, there are inter dependencies between
>> tests. For an example,
>>
>> We have identified /Schemas endpoint as a critical test which tests the
>> schemas corresponding to user and group resources according to SCIM
>> specification. However in a case where a SCIM service provider has
>> customized the schemas according to their own requirements, this test will
>> be failed. As the test suite uses the /Schemas endpoint to learn about the
>> service providers schema definitions (consider the case where there is a
>> user schema extension defined by the service provider), if the /Schemas
>> endpoint fails, the test suite will be terminated immediately as the test
>> suite cannot learn the configurations. However we can also make it not to
>> terminate but to get adjusted to the service provider's configs after just
>> failing the /Schemas endpoint test only. With that, the service provider
>> will be able to run the remaining tests on the altered schemas without
>> being blocked due to test dependency. But it should also be noted that,
>> this approach can cause the test suite to not to adhere to the
>> specification, but to adjust itself dynamically after a proper indication
>> of the reason for the adjustment.
>>
>> Hence, as identified in the above example, there are two possible options
>> in a test dependency situation.
>>
>> 1. Terminate
>> 2. Adjust accordingly and continue the suite but fails only the parent
>> test.
>>
>> What is the best way of handling this?. Any thoughts on this is highly
>> appreciated.
>>
> Thanks for bringing this question. SCIM 2.0 is an open standard for
> identity provisioning. Advantage of open standard is if two parties follow
> a common standard/specifications integration should be seamless. Idea of
> compliance test is to make sure given software product is adhere to
> particular specification hence I am +1 to terminate the test.
>

Agree with you.

What was the approach for SCIM 1.1 ?
>

 SCIM 1.1 terminates in such a situation as well.

>

>
>> Thank you
>> *Vindula Jayawardana*
>> Computer Science and Engineering Dept.
>> University of Moratuwa
>> mobile : +713462554
>> Email : vindul...@gmail.com
>>
>> 
>> 
>> 
>> 
>>
>> *“Respect is how to treat everyone, not just those you want to impress. "*
>>
>>
>> *-Richard Branson-*
>>
>>
>>
>
>
> --
> Gayan Gunawardana
> Senior Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] net.sf.saxon.om.NamePool$NamePoolLimitException: NamePool limit exceeded:

2017-07-01 Thread Himasha Guruge
Hi Francisco,

Could you provide the complete error log? Looks like the issue is as
reported in [1].


[1] https://wso2.org/jira/browse/ESBJAVA-3363

Thanks,
Himasha

On Sat, Jul 1, 2017 at 5:18 AM, Júnior  wrote:

> Hello,
>
> I am facing this exception when doing XQuery or XSLT transformation:
>
>
> net.sf.saxon.om.NamePool$NamePoolLimitException: NamePool limit exceeded:
>
>
>
> Does anyone knows a workaround for this?
>
> Thanks,
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
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-01 Thread Gobinath
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  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/
> 803e4d0f486d7268af117bcfe42f4c704f98b3b5#diff-
> 32293ae88907e099f28593e5496e1e67R62
>
>
> Thanks & Regards,
> Gobinath
>
> On Mon, May 8, 2017 at 1:24 AM, Sriskandarajah Suhothayan 
> 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  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  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  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 
>> wrote:
>>
>>> Looks like a bug to me. I would expect only 1 event.
>>>
>>> On Sun, May 7, 2017 at 8:49 PM, Gobinath 
>>> 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 
 wrote:

> Hi,
>
> Please see the PR at [1]. Please do not merge it.
>
>
> Thanks & Regards,
> Gob

[Dev] WSO2 IoT Server 3.1.0-Beta Released!

2017-07-01 Thread Madhawa Perera
WSO2 IoT Server 3.1.0-Beta

We are pleased to announce WSO2 IoT Server 3.1.0-Beta release. It can be
downloaded from
wso2iot-3.1.0-beta.zip


WSO2 IoT Server is a complete solution that enables device manufacturers
and enterprises to connect and manage their devices, build apps, manage
events, secure devices and data, and visualize sensor data in a scalable
manner.

It also offers a complete and secure enterprise mobility management
(EMM/MDM) solution that aims to address mobile computing challenges faced
by enterprises today. Supporting iOS, Android, and Windows devices, it
helps organizations deal with both corporate owned, personally enabled
(COPE) and employee-owned devices with the bring your own device (BYOD)
concept.

WSO2 IoT Server comes with advanced analytics, enabling users to analyze
speed, proximity and geo-fencing information of devices including details
of those in motion and stationary state.

More can be read on the prominent features and enhancements included in
WSO2 IoT Server 3.1.0-Beta here
.
Additional resources

Documentations: WSO2 IoT Server Documentation

Engaging with CommunityMailing Lists

Join our mailing list and correspond with the developers directly.

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

Reporting Issues

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 IoT Server through WSO2 IoT GIT Issues
.
Discussion Forums

We encourage to use stackoverflow

to
engage with developers as well as other users.

For more information about WSO2 IoT Server, please see
http://wso2.com/products/iot-server or visit the WSO2 Oxygen Tank
 developer portal for additional resources.

Thank you for your interest in WSO2 IoT Server.

*The WSO2 IoT Server Team*


-- 
Madhawa Perera
*Software Engineer*
Mobile : +94 (0) 773655496
<%2B94%20%280%29%20773%20451194>
madha...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 IoT Server 3.1.0-Alpha Released!

2017-07-01 Thread Madhawa Perera
Hi Rick,

Thanks for the comments. In IoTS 3.1.0 documentation (which is still work
in progress), we have added a section named "About this Release". Next
release note onwards we will add that link to the release note.

Answering to your second question,
In the above release note what we referred as 'speed' is the rate at which
some device or something (a sensor) moves. Apart from that we do provide
capabilities to analyse device performance also based on CPU utilization,
memory consumption etc.

Thank you
Best Regards,
Madhawa

On Sat, Jun 24, 2017 at 9:35 PM, Rick Krueger  wrote:

> Thanks Madhawa.
>
> A couple comments. Whenever a new version of a product is announced my
> experience is that people tend to want to know what's new in the new
> release.  Would it be possible to highlight these things?
>
> Also, I'm by no means an expert is our IoT Server, but when we say
> "analyze... the speed of the devices" do we mean analyze the performance of
> the devices and the networks they're running on?
>
> Regards,
>
>
> Rick Krueger
> WSO2, Inc.
> 415.250.3038 <(415)%20250-3038>
> www.linkedin.com/in/rickkrueger
>
>
>
>
>
>
> On Fri, Jun 23, 2017 at 11:25 AM, Madhawa Perera 
> wrote:
>
>> WSO2 IoT Server 3.1.0-Alpha
>>
>> We are pleased to announce WSO2 IoT Server 3.1.0-Alpha release. It can be
>> downloaded from wso2iot-3.1.0-alpha.zip
>> 
>>
>> WSO2 IoT Server is a complete solution that enables device manufacturers
>> and enterprises to connect and manage their devices, build apps, manage
>> events, secure devices and data, and visualize sensor data in a scalable
>> manner.
>>
>> It also offers a complete and secure enterprise mobility management
>> (EMM/MDM) solution that aims to address mobile computing challenges faced
>> by enterprises today. Supporting iOS, Android, and Windows devices, it
>> helps organizations deal with both corporate owned, personally enabled
>> (COPE) and employee-owned devices with the bring your own device (BYOD)
>> concept.
>>
>> WSO2 IoT Server comes with advanced analytics, enabling users to analyze
>> speed, proximity and geo-fencing information of devices including details
>> of those in motion and stationary state.
>> Additional resources
>>
>> Documentations: WSO2 IoT Server Documentation
>> 
>> Engaging with CommunityMailing Lists
>>
>> Join our mailing list and correspond with the developers directly.
>>
>> Developer list: dev@wso2.org | Subscribe
>>  | Mail Archive
>> 
>> Reporting Issues
>>
>> We encourage you to report issues, documentation faults and feature
>> requests regarding WSO2 IoT Server through WSO2 IoT GIT Issues
>> .
>> Discussion Forums
>>
>> We encourage to use stackoverflow
>> 
>>  to
>> engage with developers as well as other users.
>>
>> For more information about WSO2 IoT Server, please see
>> http://wso2.com/products/iot-server or visit the WSO2 Oxygen Tank
>>  developer portal for additional resources.
>>
>> Thank you for your interest in WSO2 IoT Server.
>>
>> *The WSO2 IoT Server Team*
>>
>> --
>> Madhawa Perera
>> *Software Engineer*
>> Mobile : +94 (0) 773655496 <+94%2077%20365%205496>
>> <%2B94%20%280%29%20773%20451194>
>> madha...@wso2.com
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 IoT Team Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to iot-group+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>


-- 
Madhawa Perera
*Software Engineer*
Mobile : +94 (0) 773655496
<%2B94%20%280%29%20773%20451194>
madha...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC][SCIM] SCIM 2.0 Test Dependencies

2017-07-01 Thread Johann Nallathamby
On Sat, Jul 1, 2017 at 7:24 PM, Vindula Jayawardana <
vindula...@cse.mrt.ac.lk> wrote:

> Hi,
>
> In SCIM 2.0 compliance test suite, there are inter dependencies between
> tests. For an example,
>
> We have identified /Schemas endpoint as a critical test which tests the
> schemas corresponding to user and group resources according to SCIM
> specification. However in a case where a SCIM service provider has
> customized the schemas according to their own requirements, this test will
> be failed. As the test suite uses the /Schemas endpoint to learn about the
> service providers schema definitions (consider the case where there is a
> user schema extension defined by the service provider), if the /Schemas
> endpoint fails, the test suite will be terminated immediately as the test
> suite cannot learn the configurations. However we can also make it not to
> terminate but to get adjusted to the service provider's configs after just
> failing the /Schemas endpoint test only. With that, the service provider
> will be able to run the remaining tests on the altered schemas without
> being blocked due to test dependency. But it should also be noted that,
> this approach can cause the test suite to not to adhere to the
> specification, but to adjust itself dynamically after a proper indication
> of the reason for the adjustment.
>
> Hence, as identified in the above example, there are two possible options
> in a test dependency situation.
>
> 1. Terminate
> 2. Adjust accordingly and continue the suite but fails only the parent
> test.
>
> What is the best way of handling this?. Any thoughts on this is highly
> appreciated.
>

I would say just terminate. Why would you need to customize the core user
schema when there is the possibility of defining an extended user schema.
No one asked you to stick to any of the attributes coming from the core
schema right?


>
> Thank you
> *Vindula Jayawardana*
> Computer Science and Engineering Dept.
> University of Moratuwa
> mobile : +713462554
> Email : vindul...@gmail.com
>
> 
> 
> 
> 
>
> *“Respect is how to treat everyone, not just those you want to impress. "*
>
>
> *-Richard Branson-*
>
>
>


-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Senior Technical Lead - 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] [GSoC][SCIM] SCIM 2.0 Test Dependencies

2017-07-01 Thread Gayan Gunawardana
On Sat, Jul 1, 2017 at 8:54 AM, Vindula Jayawardana <
vindula...@cse.mrt.ac.lk> wrote:

> Hi,
>
> In SCIM 2.0 compliance test suite, there are inter dependencies between
> tests. For an example,
>
> We have identified /Schemas endpoint as a critical test which tests the
> schemas corresponding to user and group resources according to SCIM
> specification. However in a case where a SCIM service provider has
> customized the schemas according to their own requirements, this test will
> be failed. As the test suite uses the /Schemas endpoint to learn about the
> service providers schema definitions (consider the case where there is a
> user schema extension defined by the service provider), if the /Schemas
> endpoint fails, the test suite will be terminated immediately as the test
> suite cannot learn the configurations. However we can also make it not to
> terminate but to get adjusted to the service provider's configs after just
> failing the /Schemas endpoint test only. With that, the service provider
> will be able to run the remaining tests on the altered schemas without
> being blocked due to test dependency. But it should also be noted that,
> this approach can cause the test suite to not to adhere to the
> specification, but to adjust itself dynamically after a proper indication
> of the reason for the adjustment.
>
> Hence, as identified in the above example, there are two possible options
> in a test dependency situation.
>
> 1. Terminate
> 2. Adjust accordingly and continue the suite but fails only the parent
> test.
>
> What is the best way of handling this?. Any thoughts on this is highly
> appreciated.
>
Thanks for bringing this question. SCIM 2.0 is an open standard for
identity provisioning. Advantage of open standard is if two parties follow
a common standard/specifications integration should be seamless. Idea of
compliance test is to make sure given software product is adhere to
particular specification hence I am +1 to terminate the test.

What was the approach for SCIM 1.1 ?

>
> Thank you
> *Vindula Jayawardana*
> Computer Science and Engineering Dept.
> University of Moratuwa
> mobile : +713462554
> Email : vindul...@gmail.com
>
> 
> 
> 
> 
>
> *“Respect is how to treat everyone, not just those you want to impress. "*
>
>
> *-Richard Branson-*
>
>
>


-- 
Gayan Gunawardana
Senior Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GSoC][SCIM] SCIM 2.0 Test Dependencies

2017-07-01 Thread Vindula Jayawardana
Hi,

In SCIM 2.0 compliance test suite, there are inter dependencies between
tests. For an example,

We have identified /Schemas endpoint as a critical test which tests the
schemas corresponding to user and group resources according to SCIM
specification. However in a case where a SCIM service provider has
customized the schemas according to their own requirements, this test will
be failed. As the test suite uses the /Schemas endpoint to learn about the
service providers schema definitions (consider the case where there is a
user schema extension defined by the service provider), if the /Schemas
endpoint fails, the test suite will be terminated immediately as the test
suite cannot learn the configurations. However we can also make it not to
terminate but to get adjusted to the service provider's configs after just
failing the /Schemas endpoint test only. With that, the service provider
will be able to run the remaining tests on the altered schemas without
being blocked due to test dependency. But it should also be noted that,
this approach can cause the test suite to not to adhere to the
specification, but to adjust itself dynamically after a proper indication
of the reason for the adjustment.

Hence, as identified in the above example, there are two possible options
in a test dependency situation.

1. Terminate
2. Adjust accordingly and continue the suite but fails only the parent test.

What is the best way of handling this?. Any thoughts on this is highly
appreciated.

Thank you
*Vindula Jayawardana*
Computer Science and Engineering Dept.
University of Moratuwa
mobile : +713462554
Email : vindul...@gmail.com






*“Respect is how to treat everyone, not just those you want to impress. "*


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


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

2017-07-01 Thread Minudika Malshan
Hi,

+1 for introducing *trp:file.name * property.
I will add it to the extension.

BR

On Sat, Jul 1, 2017 at 3:19 PM, Sriskandarajah Suhothayan 
wrote:

> +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 <+94%2077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 
*Minudika Gammanpila*
Software Engineer - WSO2

Email   :  minud...@wso2.com
Mobile :  +94715659887
Web :  http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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] [Siddhi-file-io] Consuming multiple files in a directory with tailing enabled.

2017-07-01 Thread Minudika Malshan
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
Web :  http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev