Re: [Dev] Updates on Android for work - COSU mode

2017-09-25 Thread Jonathan Marsh
Exciting!



Do we have a target set of features that we think are the core to appeal to
prospects?  (E.g. is changing lock code really a critical capability for
COSU?)



-Jonathan



*From:* Lahiru Madushanka [mailto:lahirum...@wso2.com]
*Sent:* Friday, September 22, 2017 8:43 PM
*To:* dev-wso2 
*Cc:* WSO2 IoT Team Group ; Pasindu Jayaweera <
pasin...@wso2.com>; Charitha Goonetilleke ; Chathura
Dilan 
*Subject:* Updates on Android for work - COSU mode



Hi all,



As per now following operation are working in COSU mode



1) Install new application

2) Ring

3) Device Lock

4) Location

5) Clear Password

6) Mute

7) Message

8) Change lock code

9) Wipe data



However *Device lock* and *change lock code* operations are not used since
device not get locked in COSU mode. We can forcefully unpin the agent app ,
lock the device and check whether those operations are applied.

   - There was a bug causing agent app to unpin unexpectedly, which is
   fixed now.
   - New icon added to indicate a new kiosk app is being installed. Which
   disappears after installation completed.
   - We add an indicator icon to show when device is plugged since there
   wasn't any indicator to show that.
   - Operations which spawn new activities ( Ring and Message ) are changed
   (only for COSU mode ) now since we cannot spawn new activities without
   unpinning the Agent app. So new they are shown in dialogs instead of new
   activities.

Next steps :-

   - Implementing special operations like change brightness , volume
   - User story review to again verify the changes suggested in the
   previous review.
   - UI review + update

Please find the attached screenshots



Thanks



-- 
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.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] non-matched or expired events in pattern query

2017-09-25 Thread Grainier Perera
Hi Jay,

You can try something similar to this to get non-matched events during last
10 secs; You can find some documentation on this as well; link




> define stream publisher (pid string, time string);
> define stream subscriber (pid string, sid string, time string);


> from publisher#window.time(10 sec)
> select *
> insert expired events into expired_publisher;


> from every pub=publisher -> sub=subscriber[pub.pid == pid] or
> exp=expired_publisher[pub.pid == pid]
> select pub.pid as pid, pub.time as time, sub.pid as subPid
> insert into filter_stream;


> from filter_stream [(subPid is null)]
> select pid, time
> insert into not_seen_in_last_10_sec_events;


Moreover, I didn't get what you meant by "also is there a way to perform
intersection of events based on grouping or time window ?" can you please
elaborate on this?

Regards,

On Mon, Sep 25, 2017 at 11:02 AM, Jayesh Senjaliya 
wrote:

> Hi,
>
> is there a way to get events that didnt match within the given time frame.
>
> for example:
>
> define stream publisher (pid string, time string);
> define stream subscriber (pid string, sid string, time string);
>
> from every (e1=publisher) -> e2=subscriber[e1.pid == pid]
> within 10 sec
> select e1.pid, e2.sid
> insert into seen_in_last_10_sec_events;
>
>
> so if i have matching event above, i will see it in
> seen_in_last_10_sec_events, but is there a way to get all events or non
> matched events during that last 10 seconds from publisher or subscriber ?
>
> also is there a way to perform intersection of events based on grouping or
> time window ?
>
>
> Thanks
> Jay
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Grainier Perera
Senior Software Engineer
Mobile : +94716122384
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Custom endpoint in a REST task in a BPMN process

2017-09-25 Thread Thomas LEGRAND
Hello Himasha,

Thank you, but it needs to point to a resource containing a XML element [1]
defning  raw endpoint whereas I wanted to use variables. Like the
/somethingConstant/${aValueHere} thing where ${aValueHere}
is a value defined by a variable in my process instance.


[1] http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation="http://www.w3schools.com uep_schema.xsd"
xmlns:wsa="http://www.w3.org/2005/08/addressing;
xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/;>
   http://localhost:8080/lala


2017-09-25 15:56 GMT+02:00 Himasha Guruge :

> Hi Thomas,
>
> You need to use 'serviceRef' instead of Service URL property if you are
> going to point to a registry location. Please refer [1]
>
> [1] https://docs.wso2.com/display/BPS351/Invoking+a+BPMN+REST+Endpoint
>
> Thanks,
> Himasha
>
> On Mon, Sep 25, 2017 at 6:59 PM, Thomas LEGRAND <
> thomas.legr...@versusmind.eu> wrote:
>
>> Hello,
>>
>> I am writing a little process where I need to call a REST endpoint. But,
>> this process will be deployed on different environment (dev, prod, etc...)
>> so the endpoint will change. This endpoint is something like that :
>>
>> /somethingConstant/${aValueHere}
>>
>> I read that it is possible to use registry entry to fill a Service URL
>> but that does not work for me (I put conf:/baseEndpointParameters [1] [2]
>> where the content of the resource baseEndpointParameters was a joinable
>> one) but the error message I received in the console was :
>>
>> [2017-09-25 15:24:58,534] [EI-Business-Process] ERROR
>> {org.wso2.carbon.bpmn.extensions.rest.RESTTask} -  Failed to execute GET
>> conf:/baseEndpointParameters within task servicetask4:Récupération
>> correspondance in process instance 107599
>> org.apache.http.client.ClientProtocolException: URI does not specify a
>> valid host name: conf:/baseEndpointParameters
>>
>> Then, I would like to reuse the value of the param in the registry to
>> append the custom value. Is it possible?
>>
>> Regards,
>>
>> Thomas
>>
>>
>> [1] [image: Images intégrées 1]
>>
>> [2] [image: Images intégrées 2]
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> Senior Software Engineer
> WS*O2* *Inc.*
> Mobile: +94 777459299 <+94%2077%20745%209299>
> himas...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Custom endpoint in a REST task in a BPMN process

2017-09-25 Thread Himasha Guruge
Hi Thomas,

You need to use 'serviceRef' instead of Service URL property if you are
going to point to a registry location. Please refer [1]

[1] https://docs.wso2.com/display/BPS351/Invoking+a+BPMN+REST+Endpoint

Thanks,
Himasha

On Mon, Sep 25, 2017 at 6:59 PM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello,
>
> I am writing a little process where I need to call a REST endpoint. But,
> this process will be deployed on different environment (dev, prod, etc...)
> so the endpoint will change. This endpoint is something like that :
>
> /somethingConstant/${aValueHere}
>
> I read that it is possible to use registry entry to fill a Service URL but
> that does not work for me (I put conf:/baseEndpointParameters [1] [2] where
> the content of the resource baseEndpointParameters was a joinable one) but
> the error message I received in the console was :
>
> [2017-09-25 15:24:58,534] [EI-Business-Process] ERROR
> {org.wso2.carbon.bpmn.extensions.rest.RESTTask} -  Failed to execute GET
> conf:/baseEndpointParameters within task servicetask4:Récupération
> correspondance in process instance 107599
> org.apache.http.client.ClientProtocolException: URI does not specify a
> valid host name: conf:/baseEndpointParameters
>
> Then, I would like to reuse the value of the param in the registry to
> append the custom value. Is it possible?
>
> Regards,
>
> Thomas
>
>
> [1] [image: Images intégrées 1]
>
> [2] [image: Images intégrées 2]
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
Senior 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


[Dev] Custom endpoint in a REST task in a BPMN process

2017-09-25 Thread Thomas LEGRAND
Hello,

I am writing a little process where I need to call a REST endpoint. But,
this process will be deployed on different environment (dev, prod, etc...)
so the endpoint will change. This endpoint is something like that :

/somethingConstant/${aValueHere}

I read that it is possible to use registry entry to fill a Service URL but
that does not work for me (I put conf:/baseEndpointParameters [1] [2] where
the content of the resource baseEndpointParameters was a joinable one) but
the error message I received in the console was :

[2017-09-25 15:24:58,534] [EI-Business-Process] ERROR
{org.wso2.carbon.bpmn.extensions.rest.RESTTask} -  Failed to execute GET
conf:/baseEndpointParameters within task servicetask4:Récupération
correspondance in process instance 107599
org.apache.http.client.ClientProtocolException: URI does not specify a
valid host name: conf:/baseEndpointParameters

Then, I would like to reuse the value of the param in the registry to
append the custom value. Is it possible?

Regards,

Thomas


[1] [image: Images intégrées 1]

[2] [image: Images intégrées 2]
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon-jira] [jira] (IDENTITY-6330) [IS]When configured secondary jdbc userstore canot login with the secondary userstore user

2017-09-25 Thread Isura Karunaratne
Hi Johann,



On Sun, Sep 24, 2017 at 5:29 PM, Johann Nallathamby  wrote:

> 1. Can someone explain the reason for the issue and relevance of the fix
> to the issue reported here?
>
> I can understand the issue here. I also assume I understand the reason for
> the issue. But better someone explains. What I don't seem to understand is
> the relevance of the fix here. It seems to me that the
> "AuthenticationPolicy.CheckAccountExist" property was not used at all in
> the new implementation. Now it's been put to use. I certainly don't think
> not using this property is the reason for the issue. So I don't get the fix
> done here.
>

Yes. We need to improve the fix. Need to use isAuthPolicyAccountExistCheck()
 only for sending user does exists messge to outside.

>
> 2. Why do we have a private method *"isUserExistsInDomain"*? It doesn't
> seem to do anything useful.
>
Yes. Need to remove that.

>
> 3. Seems we have introduced a new property to identity.xml
> *"AuthenticationPolicy.CheckAccountExist".* Are we not thinking of adding
> this to Resident IdP UI to control at a tenant level?
>
> *Authentication.Policy.Check.Ac
> count.Exist* in the old
> identity-mgt.properties file was there to control the level of details that
> needs to be revealed to the users regarding authentication failure. I.e. we
> gave a configuration to control whether the user should see a generic
> authentication failure message, or s/he should see failure with reason such
> as invalid username or invalid password.
>
We can manage  *AuthenticationPolicy.CheckAccountExist in *tenant wise. Do
we really need to limit the error messages based on tenant. If so, we will
put that to Resident IDP.

Seems this property has been missed in the new implementation and now being
> added.
>
> 4. Why is the new element uncommented by default which is inconsistent
> with all other identity-mgt elements in identity.xml? Can we have a default
> value and comment it out?
>
Yes. That needs to be commented.

>
> 5. Is this code consistent with other handlers such as
> *AccountLockHandler* and *AccountDisableHandler*?
>

Will revisit all the handers based on todays discussion.


Thanks
Isura.

>
> Regards,
> Johann.
>
> -- Forwarded message --
> From: Denuwanthi De Silva (JIRA) 
> Date: Thu, Aug 31, 2017 at 10:09 AM
> Subject: [Carbon-jira] [jira] (IDENTITY-6330) [IS]When configured
> secondary jdbc userstore canot login with the secondary userstore user
> To: carbon-j...@wso2.org
>
>
> Denuwanthi De Silva
> 
> *created* an issue
>
> WSO2 Identity Server  / [image:
> Bug]  IDENTITY-6330
> 
> [IS]When configured secondary jdbc userstore canot login with the
> secondary userstore user 
> Issue Type: [image: Bug] Bug
> Assignee: Darshana Gunawardana
> 
> Created: 31/Aug/17 10:08 AM
> Priority: [image: Normal] Normal
> Reporter: Denuwanthi De Silva
> 
>
> 1.create a user in SECONDARY oracle jdbc userstore.
> 2.try to login with that user
> login fails.
> ERROR
> {org.wso2.carbon.core.services.authentication.AuthenticationAdmin}
>
> - System error while Authenticating/Authorizing User : Error when handling
> event : PRE_AUTHENTICATION
> 3.If login with domain ex(SECONDARY/user1) log in without issue.
> [image: Add Comment]
>  Add Comment
> 
>
> This message was sent by Atlassian JIRA (v7.2.2#72004-sha1:9d51328)
> [image: Atlassian logo]
>
> ___
> Carbon-jira mailing list
> carbon-j...@wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira
>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Senior Lead Solutions Engineer
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 

*Isura Dilhara Karunaratne*
Associate Technical Lead | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810 <+94%2077%20225%204810>
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting soap format to address endpoint in API Manager 2.1.0

2017-09-25 Thread Lakmali Baminiwatta
On 25 September 2017 at 11:27, Shenavi de Mel  wrote:

> Hi APIM Team,
>
> In APIM 2.0.0 there was an option where we were able to set the SOAP
> format to the address endpoint from the advanced endpoint configuration.
> However in APIM 2.1.0 I am unable to find the configuration.
>
> Is there anyway to configure that from the UI instead of having to
> manually add it to the API synapse file? Or add a property to achieve it
> through a custom sequence? I was not able to find a way to do this. Please
> point me in the path this could be achieved.
>

If you set the correct messageType property via a custom inSequence, it
should also do the same thing. If the SOAP format is 1.1, set it as
text/xml and if it is 1.2, set as application/soap+xml. Also for SOAP 1.1,
you have to send the SOAPAction header as well.

Thanks,
Lakmali

>
> Is there a specific reason that option was removed?
>
> I am trying to expose a SOAP based API as a REST API where the soap body
> will be constructed within the sequence using a payload factory mediator
> similar to the post I have written [1]. Without setting the soap format to
> the address endpoint seems my payload is dropped from the request as I
> observed per the wire logs. When i manually add it to the api synapse file
> it works as expected.
>
> Your help on this would be much appreciated.
>
> [1] http://shenavid.blogspot.com/2017/03/in-this-post-i-will
> -be-explaining-how.html
>
> Thanks and Regards,
> Shenavi
>
> *Shenavi de Mel*
> Senior Software Engineer
> WSO2 Inc: http://wso2.com
> email: shen...@wso2.com
> mobile: 0711644470
>
>


-- 
Lakmali Baminiwatta
Associate Technical Lead
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev