Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-22 Thread Hasitha Aravinda
Hi Sanjiva, On Sat, May 21, 2016 at 7:19 AM, Sanjiva Weerawarana wrote: > How does the webapp manage sessions and security credentials for the > remote HTTP API right now? > ​Both webapps in BPS use jaggery to invoke backend services or rest APIs. ​ ​ HumanTask-explorer uses

Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-20 Thread Sanjiva Weerawarana
How does the webapp manage sessions and security credentials for the remote HTTP API right now? We know we need to do something for this for UUF .. we delayed it as a temporary measure. IIRC also we've had issues previously with session timeout mismatches and with security creds being not

Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-20 Thread Chathura Ekanayake
Yes, we will have to go with REST calls. We need to run UI-backend and server in separate jvms, when running the BPMN explorer in PC. Regards, Chathura On Fri, May 20, 2016 at 11:28 AM, Nandika Jayawardana wrote: > In case of BPS, what we develop is similar to a web

Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-20 Thread Nandika Jayawardana
In case of BPS, what we develop is similar to a web application which should be independent of the BPS backend. Idea is that this component has to be packaged into PC ( process center ) as well as BPS. Hence, native OSGi call's is not sufficient for our requirement. Regards Nandika On Fri, May

Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Rasika Perera
Hi, We have came up with this best practise. There are basically two scenarios; 1. When the back-end is belongs to your product(eg. calling BPS runtime). We assume that you have written your JAX-RS based on an OSGi service. JAX-RS will *not* hold any business logic and act as API

Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Chathura Ekanayake
So there is not separation between UI back-end and the actual server (e.g. BPS runtime)? i.e. both always run in the same jvm? On Thu, May 19, 2016 at 11:47 PM, Manuranga Perera wrote: > Yes, you will be able to call OSGi services. > > On Thu, May 19, 2016 at 12:53 PM, Hemika

Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Manuranga Perera
Yes, you will be able to call OSGi services. On Thu, May 19, 2016 at 12:53 PM, Hemika Kodikara wrote: > Hi All, > > For clarification, does this mean we will be able to invoke a service side > function(through nashorn) upon client request ? As in when a user clicks a > button,

Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Hemika Kodikara
Hi All, For clarification, does this mean we will be able to invoke a service side function(through nashorn) upon client request ? As in when a user clicks a button, we can call a server side function ? Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware

Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread SajithAR Ariyarathna
Hi Sudharma, In the browser (client-side), you can do AJAX calls to the necessary REST APIs. However, doing HTTP requests from UI backend (which runs on the server-side) to REST APIs (which also runs on the server-side) is not recommended. Instead of that you should call OSGi services. Calling

[Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-19 Thread Sudharma Subasinghe
Hi all, I am working on developing BPMN explorer ui using Unified UI Framework. The existing BPMN explorer ui is for BPS which has built on C4 and it is used Jaggery. So, I am working on BPMN explorer ui for BPS which is to be released on C5. We need to implement business logics in backend. For