Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Chathura Ekanayake
As Charitha and Waruna mentioned, we will have to implement the storage
method as an extension, where it is possible to switch among local file
system (with rsync), FTP, S3, etc based on deployment requirements.

@ChathuraD: We will not be exposing the actual storage to outside and all
accesses will be through IoT server APIs. In that case, do we need to
enforce security by having random file names in the storage? Regarding
possible optimization in image access, we can have
1) caching for frequently accessed images (which is independent of the
underlying storage)
2) separate fast access storage for images
Only if the latter is practical in real expected deployments, I think
option 2 mentioned by Megala is useful. Otherwise I prefer option 1.

Regards,
Chathura

On Thu, Aug 17, 2017 at 7:35 AM, Chathura Dilan  wrote:

> I'm +1 with option 2 since we can have a big storage for binary files and
> small storage for image files. The method of serving images and binary
> files are for two different things. We can optimize image storage for
> serving images because images are accessed frequently. Also in terms of
> security storing binary files in a separate location provides additional
> security for them.
>
> On Wed, Aug 16, 2017 at 11:21 PM, Megala Uthayakumar 
> wrote:
>
>> Hi All,
>>
>> Please fine my responses below,
>>
>> *@Nuwan *
>> Is there a problem is storing this file on the DB instead of the FS?
>>
>> As explained by Chathura and Charitha main reasoning behind not selecting
>> the database is size of the binary file and yes we will consider other
>> possible ways for supporting this as well, given that NFS may not be
>> preferred by the customer.
>>
>> *@Chathura*
>> If you go with the first approach, could you please mention what are the
>> parameters you use to get the image? It is always better to get the image
>> with a random parameters so it prevents hackers from guessing image names.
>>
>> As we know already we will be getting the files using an REST API and in
>> that case, the URL will be something like follow,
>>*https://localhost:8243/applications/getIcon/
>> *
>> So with this URL, nothing can be guessed as in the API level, what we
>> expect to do is something like follow,
>>
>>1. From the UUID, get the auto-generated ID from the database
>>2. We will derive the path for the particular application as follow,
>>   - /ID
>>3. In that path we will search for the file with the name "icon" and
>>we will pass File with the response.
>>
>> In this case, I don't think there is possible security issue where we
>> expose the path name or so. Please do correct me, if it is not the case.By
>> having random names, we need to have additional database operations for
>> saving icon/other image files name and retrieving them.
>>
>> *@Charitha*
>> I'm not clear with the reason behind this statement in under option 2
>>
>> "but this may not be possible in real production scenarios depending on
>> the size of the images.
>>
>> I meant that caching images will not work as in the real-production
>> scenarios, we may have images with higher sizes, so in that case, we cannot
>> efficiently cache and gain performance gain out of them by using option 2.
>>
>> *@Waruna *
>> Storage Location - This should be written as extension where you can
>> store in local directory, FTP, NFS or someone can customize based on
>> requirement.
>>
>> For the storage location, if we are using NFS or local file system, I
>> think om the implementation level it will be the same and we do not need to
>> specially handle them. We have not thought about supporting FTP for the
>> first cut implementation and wondering whether we need that level
>> complexity (i.e. Having a server-server communication) for only saving
>> image files and binary files.
>>
>> Do we need real requirement to search by image name,apk name or other
>> content name. If we have that kind of requiremnt as well then option 1 will
>> have some cons.
>>
>> AFAIK we will not get a requirement to search the apis with the apk name
>> or image name as people are normally interested in searching by using
>> application name, platform name etc.
>>
>> Thanks.
>>
>> Regards,
>> Megala
>>
>> On Wed, Aug 16, 2017 at 6:31 PM, Waruna Jayaweera 
>> wrote:
>>
>>> Hi Megala,
>>>
>>> AFAIU There are two problems as where we store the file
>>> contents(supporting clustering cases) and file structure of application
>>> content.
>>>
>>> Storage Location - This should be written as extension where you can
>>> store in local directory, FTP, NFS or someone can customize based on
>>> requirement.
>>> Application store structure - I prefer option 1 as it will be more
>>> manageable per application which makes separate storage space for
>>> application contents(apk,icon etc).
>>>
>>> As an example we can store like //>> plication_content_name>/content_data
>>> I option 2 you will have less folders but you may need t

Re: [Dev] New device type for IOTS ( Laptop agent )

2017-08-01 Thread Chathura Ekanayake
Hi Lahiru,

Are we using the new custom device type implementation for this? If so,
which changes are needed to the device type to work in the cloud?

Regards,
Chathura

On Sun, Jul 30, 2017 at 8:32 AM, Lahiru Madushanka 
wrote:

> Hi all,
>
> We had a slight change of plans before starting the phase 3 (analytics) of
> the device type.
> We are currently working on implementing a web app which works as a
> dashboard and could be deployed on cloud.
>
> Please note that, first we have to change device type to work on cloud
> before using dashboard on cloud.
> We first developed the dashboard since we can test / deploy it without
> cloud access / setup.
>
> Screenshots are attached here and we are using the same group analytics
> view as in previous mails.
>
> Suggestions are highly appreciated.
>
> Regards,
> Lahiru
>
> --
> 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


[Dev] Editing scopes in API manager

2016-10-23 Thread Chathura Ekanayake
Is there a way to edit existing scope details? I think it is useful to add
or remove authorized roles in a scope. One problem in editing scope details
is that it could make currently issued tokens inconsistent with the
authorization policy. I think we can handle that by invalidating all issued
token upon a scope change.

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


Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-08-14 Thread Chathura Ekanayake
Hi Heshan,

It looks good so far.. However, there are few fixes to be done.

- Properties box cannot be closed.
- Circles in bending positions of edges have to be shown only when mouse
gets over them
- Gateways should allow multiple connection points (at least 4)

Regards,
Chathura

On Fri, Aug 12, 2016 at 6:33 PM, Heshan Jayasinghe 
wrote:

> Hi All,
> After 3 months contributing on Web based BPMN editor i completed following
> tasks
>
>- drag and drop elements(start event/end event/gateway/task) from tool
>box to drawing canvas
>- display popup tool box with element(start event/end
>event/gateway/task) on click event
>- flow drawing to connect elements
>- Implement element deleting functionality (using delete button in
>toolbox)
>
> -delete only element if there no any flow connections
> -delete element with flows if there any flows connected to
> that element
> -delete flows separately
>
>- drag elements in the Canvas to change position
>- add flow button to toolbox and give flow drawing using toolbox
>shortcut
>- add property button to tool box and give change properties of the
>elements one by one (properties changed according to to element so popup
>window changed according to the element)
>- add all sub elements to the toolbox and add all above
>functionalities to those sub element (sub element icons changed with sub
>element type)
>
>-  start events (default start events,error start
> events,message start events,time start events)
>-  end event (default end events,error end events,terminate
> end events,cancel end events)
>-  gateway (parallel gateway , exclusive gateway, inclusive
> gateway ,event gateway )
>-  task (user task, script task, mail task, manual task)
>
>- add task resizing functionality
>- add text to task (user can change text of the task text entered in
>the task element)
>- change flow connections with element drag events (if we change
>element position using drag and drop,flows connected to that element also
>changed according to element new position)
>- flow can be changed using multiple connection points
>- create JSON array and record all date one by one inside that
>array(element x/y coordinates,width,height,element type,element
>subtype,properties,etc..)
>- JSON array update x,y coordinates when we drag a element
>
> task on prosess
>
>- download json file
>- upload json file and draw graph according to json file
>
>
>
>
>
>
>
> On Sat, Jul 30, 2016 at 11:46 PM, Heshan Jayasinghe 
> wrote:
>
>> HI Hasitha,
>>
>> My git repo is up to date .please check develop
>>  branch in
>> GitHub.I completed task text and new flow drawing.now i am working on flow
>> change with element drag events and text area resize with task resizing.
>>  Thank you!
>> regards,
>> Heshan Jyasinghe
>>
>>
>> On Thu, Jul 28, 2016 at 12:27 PM, Hasitha Aravinda 
>> wrote:
>>
>>> Heshan,
>>>
>>> Could you please update this mail with your current progress ? Also can
>>> you update the git repo with latest code base. It was last updated 23 days
>>> ago.
>>>
>>> Thanks,
>>> Hasitha.
>>>
>>> On Thu, Jul 14, 2016 at 9:25 AM, Heshan Jayasinghe 
>>> wrote:
>>>
 Hi,
 I added following element to BPMN tool box.I added only boundary events
 instead of Intermediate event because both look like same and last
 discussion we plan to come up with only boundary events.
 Intermediate event have
   time catching event
   Signal catching event
   Message catching Event,etc.
 Boundary event have
  Time Boundary Event
  Error Boundary Event
  Message Boundary Event
  Signal Boundary Event,etc.
 Do I need to add both intermediate event and boundary event or only
 boundary event is enough?
 If there any changes in tool box please let me know.

 Start Event

-  Start Event
-  Time Event
-  Message Start Event
-  Error Start Event

 End Event

-  End Event
-  Error End Event
-  Terminate End Even
-  Cancel End Event

 Task

-   User Task
-   Script Task
-   Mail Task
-   Receive Task

 Boundary Event

-  Time Boundary Event
-  Error Boundary Event
-  Message Boundary Event
-  Signal Boundary Event

 Gateway

-  Parallel Gateway
-   Exclusive Gateway
-   Inclusive Gateway
-   Event Gateway

 Connections

-   Sequence Flow


 Thank you!
 regards,
 Heshan jayasinghe

 On Thu, Jul 7, 2016 at 8:50 AM, Isuru Wijesinghe 
 wrote:

> Hi Heshan,
>
> Ple

Re: [Dev] Shipping a pre-populated db with samples in Process Center.

2016-08-09 Thread Chathura Ekanayake
Yes, it is helpful to have a collection of samples for PC. PC has an
import/export feature where processes and related artifacts can be exported
into an archive and imported later. One option is to use this feature to
ship a set of samples. Some other process repositories are also using
similar methods to ship samples.

On Tue, Aug 9, 2016 at 3:21 PM, Hasitha Aravinda  wrote:

> Hi team,
>
> Most of our products (ESB, BPS etc) have sample start up scripts to start
> product in sample/demo mode.
>
> Idea is to ship another pre-populated h2 db with PC, in addition to
> default db. When you start server in demo mode, PC will start pointing to
> pre-populated database.
>
> This will be helpful for the first time users to understand capabilities
> of PC. WDYT ?
>
> Thanks,
> Hasitha.
>
> --
> --
> Hasitha Aravinda,
> Associate Technical Lead,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deleting events from DAS

2016-06-29 Thread Chathura Ekanayake
Yes, requirement is to delete events using a filtering criteria (e.g.
delete all events with processId=p1). One usecase is for testing.

On Thu, Jun 30, 2016 at 11:30 AM, Inosh Goonewardena  wrote:

> Hi,
>
> On Thu, Jun 30, 2016 at 11:22 AM, Nirmal Fernando  wrote:
>
>> You can schedule data purging
>> https://docs.wso2.com/display/DAS301/Purging+Data
>>
>
> Yes, we have per table and global data purging support in DAS. However,
> you cannot delete events by using filtering criteria OOTB. Is that your
> requirement?
>
>
>>
>> On Thu, Jun 30, 2016 at 11:18 AM, Chathura Ekanayake 
>> wrote:
>>
>>> Can we delete events from DAS event store?
>>>
>>> - Chathura
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> 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
>>
>>
>
>
> --
> 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


[Dev] Deleting events from DAS

2016-06-29 Thread Chathura Ekanayake
Can we delete events from DAS event store?

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


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 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 20, 2016 at 11:17 AM, Rasika Perera  wrote:
>
>> 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 interface(Facade
>> Pattern). In this case making a network call(AJAX) from UI to your own VM
>> is discouraged. You should use callOsgiService() function on the server
>> side Js.
>>
>> 2. When the back-end is external(eg. calling Twitter API).
>>
>> Here we don't provide any server side feature for handling HTTP calls
>> because this will again abuse and use to call own VM back-ends. You can
>> simply write AJAX calls from UI using $.ajax() in jquery or XMLHttpRequest
>> in client-side Js.
>>
>> * In the edge cases that you really need to make HTTP calls from the
>> server side Js, you can initiate; apache commons 'HttpClient' or java.net
>> 'URLConnection' through Nashorn.
>>
>> * Also you might still need to write JAX-RS APIs for your OSGi services
>> for customers.
>>
>> Thanks,
>> Rasika
>>
>> On Fri, May 20, 2016 at 10:42 AM, Chathura Ekanayake 
>> wrote:
>>
>>> 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 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, we can call a server side function ?
>>>>>
>>>>> Regards,
>>>>> Hemika
>>>>>
>>>>> Hemika Kodikara
>>>>> Software Engineer
>>>>> WSO2 Inc.
>>>>> lean . enterprise . middleware
>>>>> http://wso2.com
>>>>>
>>>>> Mobile : +9477762
>>>>>
>>>>> On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna <
>>>>> sajit...@wso2.com> wrote:
>>>>>
>>>>>> 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 OSGI
>>>>>> services from server-side JS will be available in the next milestone of 
>>>>>> UUF.
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe <
>>>>>> sudhar...@wso2.com> wrote:
>>>>>>
>>>>>>> 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 example, I need
>>>>>>> to send request to backend from browser, and from backend to BPS. Is 
>>>>>>> there
>>>>>>> functionality to achieve it

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 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, we can call a server side function ?
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna 
>> wrote:
>>
>>> 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 OSGI
>>> services from server-side JS will be available in the next milestone of UUF.
>>>
>>> Thanks.
>>>
>>> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe >> > wrote:
>>>
 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 example, I need to
 send request to backend from browser, and from backend to BPS. Is there
 functionality to achieve it in UUF?

 Any idea on this is appreciated.

 Thanks
 Sudharma

 --
 Sudharma Subasinghe,
 Software Engineer,
 WSO2 Inc.
 Email: sudhar...@wso2.com 
 Mobile : +94 710 565 157 <%2B94%20718%20210%20200>

>>>
>>>
>>>
>>> --
>>> Sajith Janaprasad Ariyarathna
>>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>
> ___
> 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] WSO2 Process Center

2016-04-07 Thread Chathura Ekanayake
Hi Lakshitha,

Currently, BPEL processes are not supported by process center. Only BPMN
models (i.e .bpmn files) can be associated with processes in PC.

Regards,
Chathura

On Wed, Apr 6, 2016 at 10:14 AM, Lakshitha Warnakulasuriya <
lakshitha...@gmail.com> wrote:

> Hi All,
>
> Is there any way to add BPEL process to Process Center. Can we upload BPEL
> process using add processess inside add category in Management Console. Any
> help can be really appreciated.
>
> Thanx and Regards,
> Lakshitha.
>
> ___
> 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] [ES][PC] Prevent automatic redirection in form submission in Process Center

2016-04-03 Thread Chathura Ekanayake
Hi Sameera,

Some fields supported by this search feature are not included in RXT. For
example, a process can have associated PDF files and the input provided for
the "Document content" field should match content of such PDF files (using
a Lucene based search). Therefore, I think the default advanced search
feature provided by ES cannot be used here.

Regards,
Chathura


On Mon, Apr 4, 2016 at 12:12 PM, Dilini Mihindra  wrote:

> Hi Sameera,
>
> I am performing the search from the "Add New Process" page (with the url
> https://localhost:9443/publisher/assets/process/create).
>
> For convenience, I included the code in a document that is attached
> herewith.
>
> Thank you.
>
> Dilini Mihindra Mampitiya Arachchi
> Intern - Software Engineer
> WSO2 Inc.
> Mobile: +94 710 420 550
> Email: dili...@wso2.com
>
> 
>
> On Mon, Apr 4, 2016 at 11:01 AM, Sameera Medagammaddegedara <
> samee...@wso2.com> wrote:
>
>> Hi Dilini,
>>
>> *https://localhost:9443/publisher/assets/process/create?process-name=abc&process-provider=&process-tags=&process-description=&process-version=&process-lcState=&process-owner=
>>> *
>>>
>>> Is this something default provided by ES?
>>>
>> No
>>
>> Instead of searching a process by name only, when a user adds a
>>> sub-process for a new process, I am implementing the functionality to do an
>>> advance search using more filters (ex: name, version, owner, description
>>> etc.)
>>>
>> This functionality is already present in the ES.The search query supports
>> all attributes present in the RXT definition.
>>
>> If so, how can I prevent this to show the search results once the user
>>> submits the form?
>>>
>> Can you please provide the following details:
>>
>>- From which page are you performing the search?
>>- Can you please provide a link/source to the custom template files
>>and the client side JavaScript used to implement the functionality?
>>
>>
>> Thank You,
>> Sameera
>>
>> On Mon, Apr 4, 2016 at 10:26 AM, Dilini Mihindra 
>> wrote:
>>
>>> Hi all,
>>>
>>> I am currently working on an advance search functionality in the Process
>>> Center. Instead of searching a process by name only, when a user adds a
>>> sub-process for a new process, I am implementing the functionality to do an
>>> advance search using more filters (ex: name, version, owner, description
>>> etc.)
>>>
>>> However, when I enter a value in one of the search fields and click the
>>> search button or press enter, the response is redirected to the following.
>>>
>>> *https://localhost:9443/publisher/assets/process/create?process-name=abc&process-provider=&process-tags=&process-description=&process-version=&process-lcState=&process-owner=
>>> *
>>>
>>> Is this something default provided by ES? If so, how can I prevent this
>>> to show the search results once the user submits the form? Any help would
>>> be highly appreciated.
>>>
>>> Thank you.
>>>
>>> Dilini Mihindra Mampitiya Arachchi
>>> Intern - Software Engineer
>>> WSO2 Inc.
>>> Mobile: +94 710 420 550
>>> Email: dili...@wso2.com
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Sameera Medagammaddegedara
>> Software Engineer
>>
>> Contact:
>> Email: samee...@wso2.com
>> Mobile: + 94 077 255 3005
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [BPS] Rendering information of the current task of a BPMN process instance

2016-03-19 Thread Chathura Ekanayake
Hi Dilini,

How are you fetching information about tasks in the current implementation?
Activiti REST API provides support for fetching task related information.
If we don't have it currently in our new REST API, we can add similar
methods to it.

Regards,
Chathura

On Wed, Mar 16, 2016 at 9:18 AM, Dilini Mihindra  wrote:

> Hi all,
>
> Thank you for the suggestion. Current implementation does not use REST
> API. I completed the above task and now I am working on rendering
> information through REST API.
>
> Thank you.
>
> Dilini Mihindra Mampitiya Arachchi
> Intern - Software Engineer
> Mobile: +94 710 420 550
> Email: dili...@wso2.com
>
> On Tue, Mar 15, 2016 at 5:46 PM, Waruna Jayaweera 
> wrote:
>
>> Hi,
>> Yes. It is better if we can expose rendering information through rest
>> api. These data will be helpful when integrating bps runtime with process
>> center too.
>>
>> Thanks,
>> Waruna
>>
>> On Tue, Mar 15, 2016 at 5:30 PM, Vinod Kavinda  wrote:
>>
>>> Hi,
>>> Are we exposing these information via REST api? It's better to expose
>>> everything in REST first. Then we can build the UI as relevant, later.
>>>
>>> Regards,
>>> Vinod
>>> On Mar 15, 2016 1:14 PM, "Nandika Jayawardana"  wrote:
>>>
 Lets implement this for bpmn explorer as well.  However, both would
 change when we move to C5.

 Regards
 Nandika

 On Tue, Mar 15, 2016 at 12:31 PM, Vinod Kavinda  wrote:

> [Adding Architecture@]
> Hi DiliniM,
> As we are planning on dropping the admin UIs with C5, is there a use
> of integrating this with admin console UI? Shall we do this in our BPMN
> explorer UI?
>
> Regards,
> Vinod
>
> On Tue, Mar 15, 2016 at 12:24 PM, Dilini Mihindra 
> wrote:
>
>> Hi all,
>>
>> I am working on rendering the information of the current task of an
>> active BPMN process instance. As supported by Activiti, the process 
>> diagram
>> of an active process instance is given as following:
>>
>>
>>*Figrue 1 - The process instance diagram
>> of *
>> * an active BPMN process instance*
>>
>> The current task of the process instance is highlighted by a red
>> boarder in the given process diagram. I am working on rendering the
>> information of this current task in the instance_list_view.jsp page so 
>> that
>> the users can get a clear idea on the current task.
>>
>> The following properties are displayed regarding each task:​
>>
>>
>>- Task Key
>>- Task Name
>>- Assignee
>>- Description
>>- Category
>>- Due Date
>>- Form Key
>>- Owner
>>- Priority
>>- Skip
>>- Candidate Group Ids
>>- Candidate User Ids
>>
>> Thank you.
>>
>>
>> Dilini Mihindra Mampitiya Arachchi
>> Intern - Software Engineer
>> Mobile: +94 710 420 550
>> Email: dili...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


 --
 Nandika Jayawardana
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware

 ___
 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
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Waruna Lakshitha Jayaweera
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> phone: +94713255198
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Business Process Server 3.5.1 RC3

2016-03-03 Thread Chathura Ekanayake
Tested rest tasks, correlations, throwing and catching errors within BPMN,
BPMN compensations, multi-instance tasks, BPMN transactional subprocesses
with cancellations and API manager workflow integrations.

[x] Stable - go ahead and release

- Chathura

On Thu, Mar 3, 2016 at 1:54 PM, Nandika Jayawardana 
wrote:

> Hi All,
>
> Tested the pack on windows with SQL Server as the database. Also tested
> the bpmn correlation api.
>
> [x] Stable - go ahead and release
>
> Regards
> Nandika
>
> On Wed, Mar 2, 2016 at 10:51 PM, Praminda Jayawardana 
> wrote:
>
>> Hi All,
>>
>> I've tested Human task coordination and task termination for API Manager
>> workflows.
>>
>> No issues found.
>> [x] Stable - go ahead and release
>>
>> Thanks,
>> Praminda
>>
>> On Thu, Mar 3, 2016 at 10:36 AM, Heshitha Hettihewa 
>> wrote:
>>
>>> Hi all,
>>>
>>> I've tested following features
>>>
>>> 1) Humantask Samples and Humantask Explorer
>>> 2) BPMN Samples and BPMN Explorer
>>> 3) BPEL Samples
>>>
>>> No issues found.
>>> [x] Stable - go ahead and release
>>>
>>> Thanks.
>>>
>>> On Wed, Mar 2, 2016 at 2:42 PM, Hasitha Aravinda 
>>> wrote:
>>>
 Hi Devs,

 Tested followings in clustered environment.

- BPEL Asynchronous process chaining.
- BPEL Correlation Violation.
- ODE clustering Implementation and Job re-assignment.
- Verified issue https://wso2.org/jira/browse/CARBON-15776​ is
fixed.

 *Cluster Details : * 1 Manager, 2 Worker nodes.
 Database : MySQL 5.6.28
 Load Balancer : nginx/1.4.6

 ​Tested following against MySQL DB in single node.


- ​HumanTask coordination ​in multi-tenant environment.

- Ran Integration tests ( BPEL, HumanTask, BPMN, Task coordination
) pointing to RC3 pack. Tests are passing.

 ​Verified followings.

- Built Source code pointing to Java 7 and Java 8.
- README.txt
- INSTALL.txt
- release-notes.html

 [x] Stable - go ahead and release

 Thanks,
 Hasitha.


 On Tue, Mar 1, 2016 at 11:44 AM, Amal Gunatilake 
 wrote:

> Hi Devs,
>
> This is the third release candidate of WSO2 Business Process Server
> 3.5.1
>
> *This release fixes the following issues:*
>
> https://wso2.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=12625
>
> Please download, test and vote.
>
> *Source & binary distribution files:*
> Source : https://github.com/wso2/product-bps/archive/v3.5.1-RC3.zip
> Binary :
> https://github.com/wso2/product-bps/releases/download/v3.5.1-RC3/wso2bps-3.5.1.zip
>
> *Maven staging repo:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-394/
>
> The tag to be voted upon:
>
> https://github.com/wso2/product-bps/releases/tag/v3.5.1-RC3
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Best regards,
> Amal.
> --
> *Amal Gunatilake*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 --
 Hasitha Aravinda,
 Senior Software Engineer,
 WSO2 Inc.
 Email: hasi...@wso2.com
 Mobile : +94 718 210 200

 ___
 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
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Praminda Jayawardana*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> Mobile : +94 (0) 716 590818
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nandika Jayawardana
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>
> ___
> 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 BRS 2.2.0 RC2

2015-12-23 Thread Chathura Ekanayake
Tested samples, rule wizard with inline and registry based rules.

[+] - Stable - Go ahead and release.

- Chathura

On Wed, Dec 23, 2015 at 3:33 PM, Amal Gunatilake  wrote:

> Hi All,
>
> I have tested the basic functionalities in Windows environment.
>
>- Single node Windows environment:
>- Running all samples.
>   - Capp deployment/undeployment.
>   - Creating/update rule service from wizard.
>   - Connecting BRS with Oracle 11g database.
>   - Registry file add/update.
>   - Creating rule service from registry file.
>   - Tenant mode.
>
> No issues found.
>
> [+] - Stable - Go ahead and release.
>
> Best regards,
> Amal.
>
> On Wed, Dec 23, 2015 at 3:24 PM, Milinda Perera  wrote:
>
>> Hi,
>>
>> Tested in clustered setup with mysql:
>>
>> Rule service creation based in .csv file decision table
>> Rule service creation based in .xls file decision table
>> Rule service creation based in .csv file content inline
>> Rule service deployment/undeployment with DepSync
>> Deploy rule service with faulty decision table content
>>
>> No Issues found
>>
>> [+] Stable- Go ahead and release
>>
>> Thanks,
>> Milinda
>>
>> On Wed, Dec 23, 2015 at 3:23 PM, Firzhan Naqash  wrote:
>>
>>> I have tested following in single node as well as cluster
>>>
>>>  - aar deployment
>>>  - aar deployment with security policy
>>>  - Cipher tool password encryption and changing passwords.
>>>
>>> No issues found.
>>>
>>> [x] - Stable - Go ahead and release.
>>>
>>> Regards,
>>> Firzhan
>>>
>>>
>>> --
>>> *Firzhan Naqash*
>>> Senior Software Engineer - Integration Platform Team
>>> WSO2 Inc. http://wso2.com
>>>
>>> email: firz...@wso2.com
>>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>>> blog: http://firzhanblogger.blogspot.com/
>>>   *
>>> *twitter: https://twitter.com/firzhan007
>>>  | linked-in: 
>>> **https://www.linkedin.com/in/firzhan
>>> *
>>>
>>> On Wed, Dec 23, 2015 at 3:13 PM, Vinod Kavinda  wrote:
>>>
 Hi,
 Tested the samples using myql. Tested capp deployment, capp with
 security policy deployment and aar deployment.

 [+] Stable - go ahead and release

 Regards,
 Vinod

 On Wed, Dec 23, 2015 at 2:58 PM, Nandika Jayawardana 
 wrote:

> Tested the samples. Look into the readme, install and html files.
> Looks good.
>
> [+] Stable - go ahead and release.
>
> Nandika
>
> On Wed, Dec 23, 2015 at 2:26 PM, Firzhan Naqash 
> wrote:
>
>>
>> Hi Devs,
>>
>> WSO2 BRS 2.2.0 RC2 Release Vote
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/browse/BRS-134?filter=12526
>>
>> Please download BRS 2.2.0 RC2 and test the functionality and vote.
>> Vote will be open for 72 hours or as needed.
>>
>> Binary distribution at:
>>
>> https://svn.wso2.org/repos/wso2/people/firzhan/packs/brs/2.2.0/RC2/wso2brs-2.2.0.zip
>>
>> Maven staging repository:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2brs-250/
>>
>> The tag to be voted upon :
>> https://github.com/wso2/product-brs/releases/tag/v2.2.0-RC2
>>
>>
>> [-] Broken - do not release (explain why)
>> [+] Stable - go ahead and release
>>
>> Thanks and Regards,
>> WSO2 BPS/BRS Team
>>
>> Regards,
>> Firzhan
>>
>>
>>
>
>
> --
> Nandika Jayawardana
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>



 --
 Vinod Kavinda
 Software Engineer
 *WSO2 Inc. - lean . enterprise . middleware .*
 Mobile : +94 (0) 712 415544
 Blog : http://soatechflicks.blogspot.com/


>>>
>>
>>
>> --
>> Milinda Perera
>> Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
>
>
> --
> *Amal Gunatilake*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][DAS] Sorting feature and range faceting for the aggregated records

2015-11-22 Thread Chathura Ekanayake
Hi Gimantha,

Instead of getting record counts, is there a way to get aggregates of some
numerical field with range faceting?

Also, it would be useful to specify ranges as start value, end value and
gap, in addition to the method mentioned in the sample.

Regards,
Chathura


On Mon, Nov 23, 2015 at 7:45 AM, Gimantha Bandara  wrote:

> Hi Isuru,
>
> 1. DAS 3.0.0 does not support sorting aggregated data. But it can be
> considered as an improvement in 3.0.01
>
> 2. DAS 3.0.0  REST API support ranged faceting. You will have to give the
> boundaries for each range with a label name. Please refer to [1] for more
> info.
>
> [1]
> https://docs.wso2.com/display/DAS300/Retrieving+the+Event+Count+of+Range+Facets
>
>
> On Fri, Nov 20, 2015 at 12:01 PM, Rukshan Premathunga 
> wrote:
>
>> Hi Isuru,
>>
>> For 2nd issue, you can try with lucene range search[1].
>>
>> [1] https://lucene.apache.org/core/2_9_4/queryparsersyntax.html#Range
>> Searches
>>
>> Thanks and Regards.
>>
>> On Fri, Nov 20, 2015 at 5:37 PM, Isuru Wijesinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> We're currently developing the dashboard for BPS statistics data and we
>>> encounter some problems mentioned below.
>>>
>>> 1.) Does DAS already support a sorting feature to retrieve the
>>> aggregated data in the ascending order ?
>>>
>>> Why we need sorting feature here because let's say as an example,  if we
>>> are analyzing the involvement of different users in a particular process,
>>> we have to provide the process ID as the primary filter. There can be a
>>> large number of users in the system which could result in too many entries
>>> in the X axis. To overcome this, most graphs have to provide a secondary
>>> filter to obtain only top X or bottom X entries (asc or dsc ordering).
>>>
>>> When retrieving the records through the faceted search for the columns
>>> which have the aggregated values(eg: avg, sum, etc) from the DAS REST API,
>>> the data is usually listed in random order. As a solution for that, need to
>>> provide a mechanism in the DAS side to sort the records in the column such
>>> a way that they will be retrieved in a specific order so that it can be
>>> used to sort in ascending order, descending order according to the given
>>> column or multiple columns.
>>>
>>> eg: {
>>> "tableName": "USER_INVOLVE_SUMMARY_DATA",
>>> "groupByField": "processDefKey",
>>> "query": "assignee:admin",
>>> *"sort":"totalInvolvedTime asc"*,
>>> "aggregateFields": [
>>> {
>>> "fieldName": "duration",
>>> "aggregate": "SUM",
>>> "alias": "totalInvolvedTime"
>>> }
>>> ]
>>> }
>>>
>>> 2.) Is it possible to do range faceting in DAS?
>>>
>>> (Here the range facet produces multiple range buckets over numeric
>>> fields or date fields.)
>>> Let's say as an example we have a field called *price* in one of the
>>> summarized tables and we have that field faceted. We want to get the facets
>>> as ranges of values (*eg:* *0-100, 100-500, 500-1000, etc* - these are
>>> the ranges that prices fall into). Is it possible to calculate the ranges
>>> (facet counts for the ranges of prices - eg: say for 5 values) based on the
>>> values in the table ?
>>>
>>> --
>>> Isuru Wijesinghe
>>> *Software Engineer*
>>> WSO2 inc : http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile: 0710933706
>>> isur...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919
>
> ___
> 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 BPS 3.5.0 RC2

2015-10-01 Thread Chathura Ekanayake
[+] Stable - go ahead and release

Thanks,
Chathura

On Fri, Oct 2, 2015 at 11:35 AM, Milinda Perera  wrote:

> Hi,
>
> I did smoke test in clustered setup + depsync with mysql database for BPS,
> UM and registry (config registry and governance)
>
> 1. deploying / undeploying bpel
> 1.1. with several versions
> 1.2. with many (completed)
> 2. deploying / undeploying bpmn and humantasks with versions
> 3. bpel / humantask / bpmn versioning
> 4. bpmn / humantask explorers simple smoke test of basic
> functionalities + load balanced by fronting by nginx with sticky session
> enabled
> 5. Test bpel process cleanup tool
>
> [+] Stable - go ahead and release
>
> Thanks,
> Milinda
>
> On Fri, Oct 2, 2015 at 11:25 AM, Nandika Jayawardana 
> wrote:
>
>> Tested the cluster deployment, dep sync, bpel and bpmn functionality in
>> cluster.
>>
>> [x] Stable- go ahead and release.
>>
>> Regards
>> Nandika
>>
>> On Fri, Oct 2, 2015 at 6:47 AM, Natasha Wijesekara 
>> wrote:
>>
>>> Hi All,
>>>
>>> I tested the  functionalities of the  bpmn-explorer and the human-task
>>> explorer.
>>>
>>> [x] Stable- go ahead and release.
>>>
>>> Thanks,
>>>
>>>
>>> On Fri, Oct 2, 2015 at 2:28 AM, Shiva Balachandran 
>>> wrote:
>>>
 HI All,

 Tested the BPMN functionalites as well as the bpmn explorer. Looks
 amazing!

 ​
 ​
 [+] Stable - go ahead and release

 On Fri, Oct 2, 2015 at 1:10 AM, Hasitha Aravinda 
 wrote:

> Hi
>
> I have tested and Reviewed followings and found no issues.
>
>- INSTALL.txt
>- LICENSE.txt
>- README.txt
>- Tested Server start with MySQL -Dsetup.
>
> BPEL
>
>- Tested Correlation Scenario.
>- Tested Correlation Violation scenario.
>
> HumanTask
>
>- HumanTask creation and basic task commands : Claim, Suspend,
>Resume, Start, Complete, Skip, Fail, Delegate.
>- HumanTask coordination - Process termination and Task Skip
>scenario.
>- HumanTask Notification creation.
>
> BPMN
>
>- Tested Service Tasks, User Tasks, Parallel Gateway,  Exclusive
>Gateway processes.
>
>
> ​
> ​
> [+] Stable - go ahead and release
>
> ​Thanks,
> Hasitha.
>
>
> On Wed, Sep 30, 2015 at 11:03 AM, Firzhan Naqash 
> wrote:
>
>>
>> Hi Devs,
>>
>> *WSO2 BPS 3.5.0 RC2 Release Vote*
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/browse/BPS-604?filter=12415
>>
>> Please download BPS 3.5.0 RC2 and test the functionality and vote.
>> Vote will be open for 72 hours or as needed.
>>
>> Binary distribution at:
>> http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.0/RC2/
>>
>> Maven staging repository:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-158/
>>
>> The tag to be voted upon :
>> https://github.com/wso2/product-bps/releases/tag/v3.5.0-RC2
>>
>>
>> [-] Broken - do not release (explain why)
>> ​​
>> [+] Stable - go ahead and release
>>
>> Thanks and Regards,
>> WSO2 BPS Team
>>
>>
>>
>> Regards,
>> Firzhan
>>
>>
>> --
>> *Firzhan Naqash*
>> Senior Software Engineer - Integration Platform Team
>> WSO2 Inc. http://wso2.com
>>
>> email: firz...@wso2.com 
>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>> blog: http://firzhanblogger.blogspot.com/
>>   *
>> *twitter: https://twitter.com/firzhan007
>>  | linked-in: 
>> **https://www.linkedin.com/in/firzhan
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

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


>>>
>>>
>>> --
>>> *Natasha Wijesekare*
>>>
>>> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
>>> *
>>> *email  : nata...@wso2.com *
>>> *mobile: +94 771358651 <%2B94%20771358651>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/

Re: [Dev] Displaying claimable user tasks in BPMN explorer

2015-05-11 Thread Chathura Ekanayake
Hi Amal/Shiva,

Yes, let's create a "Claimable tasks" tab.

I already created a jira to report this on last Friday:
https://wso2.org/jira/browse/BPS-656
So we can refer to this from the new jira (or keep only one).

Regards,
Chathura


On Tue, May 12, 2015 at 11:00 AM, Amal Gunatilake  wrote:

> Hi Chathura,
>
> Yes, I too think having a separate tab for claimable tasks is a better
> approach. Shall we call it the "Claimable tasks" tab?
> To keep in track I created a jira ticket for this :
> https://wso2.org/jira/browse/BPS-660
>
> Best regards,
> Amal.
>
> On Tue, May 12, 2015 at 10:41 AM, Chathura Ekanayake 
> wrote:
>
>> Hi Amal,
>>
>> Currently the BPMN explorer displays only the tasks "assigned" to the
>> logged in user. But it does not display tasks if the current user is a
>> candidate user or in a candidate group. Did we plan to implement this in
>> the explorer?
>>
>> I think we should have a separate tab for claimable tasks, which shows
>> tasks assigned to both candidate user and candidate group. WDYT?
>>
>> Regards,
>> Chathura
>>
>
>
>
> --
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Displaying claimable user tasks in BPMN explorer

2015-05-11 Thread Chathura Ekanayake
Hi Amal,

Currently the BPMN explorer displays only the tasks "assigned" to the
logged in user. But it does not display tasks if the current user is a
candidate user or in a candidate group. Did we plan to implement this in
the explorer?

I think we should have a separate tab for claimable tasks, which shows
tasks assigned to both candidate user and candidate group. WDYT?

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


Re: [Dev] BPMN UI Stats page

2014-09-02 Thread Chathura Ekanayake
Hi Amal,

2nd graph shows the total number of active, suspended, etc task instances.
Should we show these details per task?



On Tue, Sep 2, 2014 at 2:54 PM, Amal Gunatilake  wrote:

> Hi Dakshika,
>
> Thank you for the comments.
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> On Tue, Sep 2, 2014 at 2:13 PM, Dakshika Jayathilaka 
> wrote:
>
>> Hi,
>>
>> AFAIK 3D pie charts can be mislead visual perception on data pixels[1].
>> But it can depend on the context. When we are doing data visualization, we
>> need to think about max level of data representation. (ex: Max processes
>> that can be encountered )
>>
>> Hope you already consider those aspects.
>>
>> IMO bar chart will provide more comparative visualization on your first
>> graph.
>>
>> [1] http://en.wikipedia.org/wiki/Misleading_graph
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>>
>> On Tue, Sep 2, 2014 at 7:53 AM, Amal Gunatilake  wrote:
>>
>>> Hi Chathura,
>>>
>>> Following data has been identified as the primary data sets to generate
>>> the statistics for $subject.
>>>
>>> *1) Process Name Vs Process Instances count*
>>>
>>> E.g.
>>>
>>>   *Process Name* *Total instances*  Process 1 20  Process 2 30  Process
>>> 3 10  Process 4 60  Process 5 40
>>> [image: Inline image 1]
>>>
>>>
>>> *2) Humantask count Vs Humantask status*
>>>
>>> E.g.
>>>
>>>
>>> *Task status* *Task count*  Suspended 30  Failed 10  Completed 50
>>> Active 20
>>> [image: Inline image 2]
>>>
>>>
>>> Further I have found the 3D Donut library[1]
>>>  to generate and render these
>>> charts in the BPMN stats page UI.
>>>
>>> Appreciate your thoughts on this.
>>>
>>> [1] http://bl.ocks.org/NPashaP/9994181
>>>
>>>  Thank you  & Best regards,
>>>
>>> *Amal Gunatilake*
>>>  Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> ___
>>> 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
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPMN UI Stats page

2014-09-02 Thread Chathura Ekanayake
Hi Amal,

Can we have a list for human task vs task instance state (i.e. Task name |
# active | # completed | # failed | # suspended ).

Also, once we click on a task, we can list instance details of that task
(e.g. created on, current assignee, etc.)

Regards,
Chathura




On Tue, Sep 2, 2014 at 1:23 PM, Amal Gunatilake  wrote:

> Hi Chathura,
>
> Following data has been identified as the primary data sets to generate
> the statistics for $subject.
>
> *1) Process Name Vs Process Instances count*
>
> E.g.
>
>   *Process Name* *Total instances*  Process 1 20  Process 2 30  Process 3
> 10  Process 4 60  Process 5 40
> [image: Inline image 1]
>
>
> *2) Humantask count Vs Humantask status*
>
> E.g.
>
>
> *Task status* *Task count*  Suspended 30  Failed 10  Completed 50  Active
> 20
> [image: Inline image 2]
>
>
> Further I have found the 3D Donut library[1]
>  to generate and render these charts
> in the BPMN stats page UI.
>
> Appreciate your thoughts on this.
>
> [1] http://bl.ocks.org/NPashaP/9994181
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPMN clustering review meeting notes

2014-07-16 Thread Chathura Ekanayake
In addition, we have to fix/test the manager-worker deployment model.

Regards,
Chathura


On Wed, Jul 16, 2014 at 5:51 PM, Amal Gunatilake  wrote:

> Hi All,
>
> Following updates has been discussed on $subject.
>
> 1) Test clustering with tentants.
> 2) Need to check further on what happens if the distribution sets added
> before another node joins. whether this share the distributed sets properly?
>
> Please update the thread if there are any further updates.
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Meeting Notes:Code review for BPMN Jaggery UI

2014-07-16 Thread Chathura Ekanayake
On Wed, Jul 16, 2014 at 5:59 PM, Waruna Jayaweera  wrote:

> Hi All,
>
> Following updates has been discussed on $subject.
>
>1. Add Process List to start tasks.
>2. Improve the design after completing basic functionality.
>3. Read BPMN specification to find roles who can start instances
>4. change the copyright text
>5. Add proper name for UI heading 'BPMN Humantask'
>
> WSO2 BPS User Console?

>
>1. when reassigning a task check whether it's a valid user.
>
> Check the possibility of adding auto-complete text box to user selection,
such that user names are suggested based on existing / valid users.

>
>
> Additional suggestions
>
>1. features enable/disable via a configuration file
>
> The default UI has all features supported by Activiti. However, certain
deployments may need to restrict some of the functions such as reassigning
a task, selecting any available task, etc. Therefore, we can provide
configuration options to disable some functions in the UI (and in the
backend as well?).

>
>1.
>
>
> Please update the thread if there are any further updates.
>
> --
> Regards,
>
> Waruna Lakshitha Jayaweera
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jaggery Human Task UI for BPMN

2014-06-30 Thread Chathura Ekanayake
Hi Amal,

I had a chat with Cyril at WSO2Con and he is willing to give feedback on
our operational BPMN UI. Below are some initial comments from Cyril, which
were given in a previous email:

- only people that can launch (have the right Role) processes can see the
starting UI or even the complete definition
- plain Actors can only see their tasks (You can also have the tasks of "my
group" or "all-tasks" if allowed)
   in BPM, work lists like that are usually to be linked with organization
based rules (who can do what, who is to be assigned, etc).
   some customers even want users not to choose any task but to deal with
the "next" one (chosen by the BPM rules)
   some customers will want to allow the "assign to someone-else-in-group"
or not, etc.
   Usually, Work-Lists that are contained in plain administration console
cannot answer this real operational  need --> hence the creation of
operational consoles
- one could only need to see a read-only version of the process/task.

We may have to allow administrators to customize the operational UI to
facilitate some of the above requirements (e.g. display only the next task
vs. display all available tasks). Let's develop the first version to
support all functions provided by Activiti user tasks. Then we can add
features to configure/block certain functions for specific deployments.

We can have a call with Cyril once we get an initial version of the UI.

Regards,
Chathura



On Mon, Jun 30, 2014 at 12:59 PM, Amal Gunatilake  wrote:

> Hi Nandika,
>
> Thanks for the feedback, I will do the necessary changes and go with pure
> jaggery for the initial UI.
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> On Mon, Jun 30, 2014 at 12:56 PM, Nandika Jayawardana 
> wrote:
>
>> Had a chat with Ruchira. Implementing using pure jaggery is likely to
>> reduce the migration overhead when the new framework comes alone. Hence
>> lets go with pure jaggery instead of caremal and migrate when the new
>> framework is available.
>>
>> Regards
>> Nandika
>>
>>
>> On Mon, Jun 30, 2014 at 12:44 PM, Amal Gunatilake  wrote:
>>
>>> Hi Nandika,
>>>
>>> I have been working on $subject from last week onwards and I will be
>>> able to provide the sample screen-shots of the UI by the end of this week
>>> for further feedback.
>>>
>>> In prior to the discussion on thread "UI framework to be used in BPMN
>>> Human Task UI", I'm using the latter Caremel version (the one used for
>>> Stratos) to implement the initial UI.
>>>
>>> Thank you  & Best regards,
>>>
>>> *Amal Gunatilake*
>>>  Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> Nandika Jayawardana
>> Senior Technical Lead
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Activiti Clustering

2014-04-02 Thread Chathura Ekanayake
Hi Amal,

BPMN deployer in BPS maintains information about tenants' deployments in
memory. Therefore, we have to extend the BPMN deployer to replicate this
information among all members of a cluster.

There are TODOs in the code to indicate the places where such replications
have to be done. I think we can use two approaches for this:

(1) Replicate information using messages
(2) Use distributed hashmaps to store tenant information

Azeez/Sameera: Can you recommend which method should we use?

Regards,
Chathura



On Wed, Apr 2, 2014 at 12:27 PM, Amal Gunatilake  wrote:

> Hi All,
>
> Since Activiti keeps all the data in the database, Activiti simply
> supports clustering by sharing the database among nodes. Following are the
> steps to setup Activiti cluster.
>
>
>1. The default Activiti database setup has a H2 database and it
>creates in the memory. So once the server restarts the data will get lost.
>Hence we need to either make the database data persistence by modifying the
>db.properties file located in
>
> apache-tomcat-7.0.41/webapps/activiti-explorer/WEB-INF/classes/db.properties.
>Modify the line as follows*
>jdbc.url=jdbc:h2:file:activiti;DB_CLOSE_DELAY=1000*
>2. Now with the same database settings deploy 2 activiti-explorer.war
>files in the Apache Tomcat server named *activiti-explorer1* and
>*activiti-explorer2*.
>3. Access the 2 Activiti servers (*http://localhost:8080/activiti-explorer/
> *and*
>http://localhost:8080/activiti-explorer2/
>*)
>4. Deploy sample BPMN artifact in one node and you will see the
>changes reflected to the next node as well.
>
> If you need to use a different database, the DB scripts are provided in
> *activiti-5.14/database/create/* (You will need to add the corresponding
> jdbc driver library to
> *apache-tomcat-7.0.41/webapps/activiti-explorer/WEB-INF/lib/*).
>
> Since we are using the same setup when implementing BPMN support for BPS.
> The clustering should support in the same manner. I will setup a BPS
> cluster and further test this scenario for verification.
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Extension for BPMN deployment archives

2014-03-18 Thread Chathura Ekanayake
I couldn't find a way to do it. I think zip export is not supported.


On Tue, Mar 18, 2014 at 4:28 PM, Nandika Jayawardana wrote:

> Is there an option to export the Eclipse BPMN artifacts as zip files.
>
> Regards
> Nandika
>
>
> On Tue, Mar 18, 2014 at 3:27 PM, Chathura Ekanayake wrote:
>
>>
>> Hi All,
>>
>> Activiti uses archive files with .bar extension to package BPMN
>> deployment artifacts. These are just zip archives renamed to .bar extension.
>> Should we use the same extension in BPS, or should we go with .zip
>> extension?
>>
>> We can change the extension to .zip (if required) in the BPS runtime
>> (i.e. .zip files containing bpmn files can be deployed in BPS). But
>> Activiti's Eclipse based BPMN designer produces .bar files, which cannot be
>> deployed as it is in BPS if we only support .zip files.
>>
>> Thoughts...
>>
>> Regards,
>> Chathura
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nandika Jayawardana
> Senior Technical Lead
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Rendering the BPMN diagram in process definition page

2014-03-18 Thread Chathura Ekanayake
Applied the patch. Nice work Amal.

I think now we are almost done with the BPMN admin UI.

TODOS:
 - Test instance variables view in the UI
 - Add syntax highlighting to BPMN xml view (if possible)

Regards,
Chathura



On Tue, Mar 18, 2014 at 2:53 PM, Amal Gunatilake  wrote:

> Hi Chathura,
>
> The Activiti sends the Image as a InputStream. I convert it to a byte
> array String at the back end and once receive it at the front end UI
> component, I convert it to data uri byte array String. This way we will not
> need to write it to temporary image file. Instead we can straightaway set
> the data uri to image src attribute, which will render image at the jsp
> page.
>
> Please find the patch @ https://wso2.org/jira/browse/BPS-481
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Extension for BPMN deployment archives

2014-03-18 Thread Chathura Ekanayake
Hi All,

Activiti uses archive files with .bar extension to package BPMN deployment
artifacts. These are just zip archives renamed to .bar extension.
Should we use the same extension in BPS, or should we go with .zip
extension?

We can change the extension to .zip (if required) in the BPS runtime (i.e.
.zip files containing bpmn files can be deployed in BPS). But Activiti's
Eclipse based BPMN designer produces .bar files, which cannot be deployed
as it is in BPS if we only support .zip files.

Thoughts...

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


[Dev] BPMN support - current state and next steps

2014-03-16 Thread Chathura Ekanayake
Hi All,

Myself and Amal have been working on implementing BPMN support in BPS based
on Activiti. Below is the status of this work, and immediate next steps:

Activiti engine and REST API integration - Done
BPMN deployer - Done
Admin services for BPMN features - Done
Admin UI - Done
Muti-tenancy support - In progress

BPMN editor - Planning to allow users to download the Eclipse-based
Actitivi editor, until we come up with a long-term solution
Clustering support - TODO
Jaggery based UI for end-user related functions - TODO
Async service invocation support - TODO

We are planning to do a M1 release of this by the end of this month with
the currently completed features (i.e. without multi-tenancy, clustering
and jaggery based UI).

Note: As the M1 release will not have a Jaggery based UI and we have
decided not to implement end-user related functions in the Admin UI, there
will not be UI support for some functions in M1 (e.g. browsing, claiming,
completing user tasks). Therefore, such functions have to be done using the
REST API.

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


Re: [Dev] Exposing the Activiti REST API

2014-03-06 Thread Chathura Ekanayake
Hi Subash,

There seem to be no class named SuperTenantCarbonContext. We can get
CarbonContext using CarbonContext.getCurrentContext(), but getOSGiService(...)
method is not available from this.

Regards,
Chathura


On Fri, Mar 7, 2014 at 10:57 AM, Subash Chaturanga  wrote:

> Hi Chathura,
> You can access OSGi services from CC. I am not sure if this has changed
> very recently. Unless you can do it as follows.
>
>  service=()
> SuperTenantCarbonContext.getCurrentContext().getOSGiService( OSGIServiceInterfaceName>.class);
>
>
> On Fri, Mar 7, 2014 at 10:36 AM, Chathura Ekanayake wrote:
>
>>
>> Hi Sagara,
>>
>> If we deploy it as a web application, is there a way to access OSGi
>> services within it?
>> As we don't package it as a bundle, a BundleContext object is not
>> available for the webapp, so it is not possible get references to OSGi
>> services. Is there a way to deploy a webapp as a bundle?
>>
>> Regards,
>> Chathura
>>
>>
>>
>> On Thu, Mar 6, 2014 at 1:49 PM, Sagara Gunathunga wrote:
>>
>>>
>>>
>>>
>>> On Thu, Mar 6, 2014 at 12:15 PM, Chathura Ekanayake 
>>> wrote:
>>>
>>>>
>>>> Hi All,
>>>>
>>>> Activiti has a Restlet based comprehensive REST API to expose all BPMN
>>>> related functions. As we are planning to have a REST API for BPMN, we can
>>>> integrate this Activiti REST module in Carbon. Could I get feedback on the
>>>> following items regarding this integration:
>>>>
>>>> Restlet vs JAX-RS:
>>>> Should we integrate the Restlet based Activiti API or should we write a
>>>> new JAX-RS based REST module? I think it is better to use the Activiti REST
>>>> module as it allows us to migrate easily with new Activiti versions.
>>>>
>>>
>>> IMHO if Activiti REST module can cater all of our BPMN requirements then
>>> rewriting is not required at least at this point.
>>>
>>>
>>>>
>>>> Integrating the Activiti Restlet based API:
>>>> If we decide to integrate the Activiti REST module, we have to expose
>>>> the Restlet servlet to handle REST requests. One option is to register this
>>>> servlet in repository/conf/tomcat/web.xml, which exposes this on the same
>>>> port as admin services. However, we have to keep these servlet registration
>>>> entries in the web.xml, even though the BPMN component is not deployed.
>>>> Another option is to start a separate server (if this is possible in
>>>> Carbon) for Activiti REST and register the Restlet servlet in that server.
>>>>
>>>
>>> Can't we just deploy above module as a web application with own context
>>> path as mention in this post[1] ?  If you look at OAuth endpoint in IS/APIM
>>> we used this approach additionally some of future AS integration will use
>>> this approach.
>>>
>>> [1] -
>>> http://bpmn20inaction.blogspot.com/2013/02/activiti-in-action-updates-part-1.html
>>>
>>> Thanks !
>>>
>>>>
>>>> Thoughts...
>>>>
>>>> Regards,
>>>> Chathura
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> /subash
>
> *Subash Chaturanga*
> Senior Software Engineer :Integration TG; WSO2 Inc. http://wso2.com
>
> email: sub...@wso2.com
> blog:  http://subashsdm.blogspot.com/
> twitter: @subash89
> phone: +9477 2225922
> Lean . Enterprise . Middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exposing the Activiti REST API

2014-03-06 Thread Chathura Ekanayake
Hi Sagara,

If we deploy it as a web application, is there a way to access OSGi
services within it?
As we don't package it as a bundle, a BundleContext object is not available
for the webapp, so it is not possible get references to OSGi services. Is
there a way to deploy a webapp as a bundle?

Regards,
Chathura



On Thu, Mar 6, 2014 at 1:49 PM, Sagara Gunathunga  wrote:

>
>
>
> On Thu, Mar 6, 2014 at 12:15 PM, Chathura Ekanayake wrote:
>
>>
>> Hi All,
>>
>> Activiti has a Restlet based comprehensive REST API to expose all BPMN
>> related functions. As we are planning to have a REST API for BPMN, we can
>> integrate this Activiti REST module in Carbon. Could I get feedback on the
>> following items regarding this integration:
>>
>> Restlet vs JAX-RS:
>> Should we integrate the Restlet based Activiti API or should we write a
>> new JAX-RS based REST module? I think it is better to use the Activiti REST
>> module as it allows us to migrate easily with new Activiti versions.
>>
>
> IMHO if Activiti REST module can cater all of our BPMN requirements then
> rewriting is not required at least at this point.
>
>
>>
>> Integrating the Activiti Restlet based API:
>> If we decide to integrate the Activiti REST module, we have to expose the
>> Restlet servlet to handle REST requests. One option is to register this
>> servlet in repository/conf/tomcat/web.xml, which exposes this on the same
>> port as admin services. However, we have to keep these servlet registration
>> entries in the web.xml, even though the BPMN component is not deployed.
>> Another option is to start a separate server (if this is possible in
>> Carbon) for Activiti REST and register the Restlet servlet in that server.
>>
>
> Can't we just deploy above module as a web application with own context
> path as mention in this post[1] ?  If you look at OAuth endpoint in IS/APIM
> we used this approach additionally some of future AS integration will use
> this approach.
>
> [1] -
> http://bpmn20inaction.blogspot.com/2013/02/activiti-in-action-updates-part-1.html
>
> Thanks !
>
>>
>> Thoughts...
>>
>> Regards,
>> Chathura
>>
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Exposing the Activiti REST API

2014-03-05 Thread Chathura Ekanayake
Hi All,

Activiti has a Restlet based comprehensive REST API to expose all BPMN
related functions. As we are planning to have a REST API for BPMN, we can
integrate this Activiti REST module in Carbon. Could I get feedback on the
following items regarding this integration:

Restlet vs JAX-RS:
Should we integrate the Restlet based Activiti API or should we write a new
JAX-RS based REST module? I think it is better to use the Activiti REST
module as it allows us to migrate easily with new Activiti versions.

Integrating the Activiti Restlet based API:
If we decide to integrate the Activiti REST module, we have to expose the
Restlet servlet to handle REST requests. One option is to register this
servlet in repository/conf/tomcat/web.xml, which exposes this on the same
port as admin services. However, we have to keep these servlet registration
entries in the web.xml, even though the BPMN component is not deployed.
Another option is to start a separate server (if this is possible in
Carbon) for Activiti REST and register the Restlet servlet in that server.

Thoughts...

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


Re: [Dev] Implementing BPMN support in BPS : Instances lost after server restart

2014-03-01 Thread Chathura Ekanayake
Hi Amal,

The default configuration in Activiti uses an in-memory H2 database. Data
can be made persistent (across server restarts) by changing this to a
disk-based DB. Change the database config in activiti.cfg.xml file to do
this. Currently BPS also uses the same XML (until we change it to use
bpmn.xml).

Regards,
Chathura



On Sat, Mar 1, 2014 at 4:25 PM, Amal Gunatilake  wrote:

> Hi All,
>
> When running some test on Activiti explorer itself, I observed that the
> instances we create will get lost after doing a server restart, no matter
> which state the instances are. Is it a normal behaviour ? I think those has
> to be permanent data. So we might have to have a contingency plan such as
> maintaining a separate database for instances or any other better approach.
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Meeting Notes for Embedding/supporting a BPMN Process Engine ( BPMN 2.0 )

2014-02-26 Thread Chathura Ekanayake
- REST API:
Activiti exposes all its functions using a REST API. We can use the same
REST API as the remote interface for BPS BPMN. However, we have to filter
this REST API to make it tenant-aware.

- BPMN editor:
Both editors provided by Activiti are GPL licensed. So we have explore
other options such as the jBPM eclipse plugin.

Regards,
Chathura


On Thu, Feb 27, 2014 at 9:59 AM, Amal Gunatilake  wrote:

> Hi All,
>
> *Participants* : Sanjiva, Shankar, Srinath, Nandika, Chathura, Thilini,
> Hasitha, AmalG, Waruna, Thamayanthy
>
> *Goal:*
> Meeting was held to review the architecture of Embedding/supporting a BPMN 
> Process
> Engine ( BPMN 2.0 ) for BPS.
>
> *Discussion**:*
> If we delete the package files after the deployment we will not be able to
> move from one server to another server and again we will not be able to
> check what has been deployed or not using ls.
> So we keep check-sum in registry to track the version. This will help to
> backup data if the we migrate from one server to another as well.
> Like in AppServer have separate UI for Human UI and admin UI which have
> different ports different paths. Admin UI has the capabilities of managing the
> packages and Human UI can only create and manage instances.
> Have the main menu as ADD and then under it have the package types.
>
> Example:
>
>- Add
>   - BPMN
>   - BPEL
>   - HumanTask
>   - ODE
>
> We can either remove the instances menu from main menu since it can be
> access in process details page or have it under manage menu.
> Clustering will be mainly handled as same as approached in BPEL.
> Consider renaming the bps.xml (ode.xml)
> Have a separate configuration file for Activity (activity.xml)
> Have to implement the asynchronous handler since Activity doesn't support
> asynchronous yet.
> Need to run a proper test for Activity performance scale.
>
> Please review and update the notes if any.
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding new classes to the classpath of a bundle at runtime

2014-02-25 Thread Chathura Ekanayake
Hi All,

BPMN supports Java service tasks, which can execute Java classes within a
workflow. However, Java classes referred in these BPMN tasks has to be in
the classpath of Activiti.

Therefore, when a BPMN archive containing Java service tasks is deployed in
BPS, we have to put its Java classes into the classpath of the Activiti
bundle. Is there a way to do this? Is there a code that has already
implemented a similar scenario?

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


Re: [Dev] UI support for BPMN

2014-02-21 Thread Chathura Ekanayake
Hi Amal,

We should also have a UI for listing deployments, which is the unit of
deployment in Activiti. A deployment can contain multiple process models
and other artifacts. In the deployments UI, we can add buttons to undeploy
deployments, which in turn undeploys all associated process models.

In the User Tasks UI, we can have buttons to claim, complete, comment,
delegate, etc. individual tasks. I think is better to have a separate UI
for individual tasks, which contains these operations.

Regards,
Chathura



On Fri, Feb 21, 2014 at 3:53 PM, Amal Gunatilake  wrote:

> Hi Nandika,
>
> Thanks for the update.
> I have started sketching up the UI wire frames. I'll be able to deliver
> them on Monday morning to get feedback.
>
> Thank you  & Best regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> On Fri, Feb 21, 2014 at 3:46 PM, Nandika Jayawardana wrote:
>
>> Hi Amal,
>>
>> I think retire/start option does not apply to bpmn. Lets try to keep
>> a consistent view for both bpel ui and bpmn ui. Can you come up with some
>> wire frames for these.
>>
>> Regards
>> Nandika
>>
>>
>> On Fri, Feb 21, 2014 at 2:22 PM, Amal Gunatilake  wrote:
>>
>>> Hi Chathura,
>>>
>>> I have identified the following sub tasks for BPMN UI Support
>>> https://redmine.wso2.com/issues/2406
>>>
>>>
>>>1. BPMN Process Listing UI
>>>2. BPMN Instance Listing UI
>>>3. User Tasks Listing UI
>>>4. BPEL FIle Upload UI
>>>
>>> Following has been identified as the main information that needs to be
>>> displayed on the UI.
>>>
>>>- BPMN Process Listing UI
>>>- Package name
>>>   - Process ID
>>>   - Version
>>>   - Status
>>>   - Deployed Date
>>>   - Manage (retire/start)
>>>
>>>
>>>- BPMN Instance Listing UI
>>>   - Instance ID
>>>   - Priority
>>>   - Created Date
>>>   - Completed
>>>   - Variables
>>>
>>>
>>>- User Tasks Listing UI
>>>   - Task ID
>>>   - Owner
>>>   - Assignee
>>>   - Priority
>>>   - Due Date
>>>   - Created Date
>>>   - Sub tasks
>>>   - Response form
>>>
>>>
>>>- BPEL FIle Upload UI
>>>   - File browser
>>>
>>> Please acknowledge if there are any missing information.
>>>
>>> Thank you  & Best regards,
>>>
>>> *Amal Gunatilake*
>>>  Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> Nandika Jayawardana
>> Senior Technical Lead
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev