Hi,

Thank you for the feedback. I will follow above mentioned approach.

Thank you.


On Tue, May 27, 2014 at 7:33 PM, Nandika Jayawardana <[email protected]>wrote:

> Hi Pubudu,
>
> I had a look at your code. You are creating a Data Publisher object every
> time an event is fired which is not an efficient way to do it. We need to
> create the Data publisher once and when were an event is written, reuse
> that data publisher instance. You can have a look at the existing bps data
> publishing code to see how we have implemented that. I think you can follow
> the same approach for your implementation.
>
> Regards
> Nandika
>
>
> On Tue, May 27, 2014 at 7:18 PM, Pubudu Gunatilaka <[email protected]>wrote:
>
>> Hi,
>>
>> I was able to complete BPEL event listener, Human task event listener and
>> the data publisher. The source code can be found in my git repo in [1]. I
>> have attached the jar file and [2] contains the instructions to add the jar
>> file to WSO2 BPS in order to publish events to WSO2 BAM. I will start
>> working on the BAM toolbox.
>>
>> [1] -
>> https://github.com/pubudu538/Gsoc-repo/tree/master/bpelevents/bpelEL/src/main/java/org/wso2/bps/custom/event/listener/bpel
>>
>> [2] -
>> https://docs.google.com/document/d/16r46euqiVnppT6F483UFs9BxnAxbbnQGuShqrFbqZuw/<https://docs.google.com/document/d/16r46euqiVnppT6F483UFs9BxnAxbbnQGuShqrFbqZuw/edit>
>>
>> Thank you.
>>
>>
>>
>> On Thu, May 22, 2014 at 2:29 PM, Pubudu Gunatilaka 
>> <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> I will publish those instance information as well.
>>>
>>> Thank you.
>>>
>>>
>>> On Thu, May 22, 2014 at 2:00 PM, Hasitha Aravinda <[email protected]>wrote:
>>>
>>>> Good progress Pubudu,
>>>>
>>>> On Thu, May 22, 2014 at 1:21 PM, Pubudu Gunatilaka <[email protected]
>>>> > wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> For the BPEL Processes, I was able to write a custom event listener
>>>>> using the BPELEventListener from the *org.apache.ode.bpel.iapi*package.
>>>>>
>>>>> According to my proposal in [1] I have shown the instance information
>>>>> through the BAM Dashboard which is in figure 3. Same details also can be
>>>>> viewed from the BPS console as well. As the BAM dashboard needs to show 
>>>>> the
>>>>> summarized details, I feel like it is not needed. What do you think? If it
>>>>> is needed, I can publish those information as well.
>>>>>
>>>>
>>>> IMO, we will need those information. These information will be useful
>>>> to represent queries like process's current execution state, instance's
>>>> execution path and how many process instances are executing particular
>>>> activity etc.
>>>>
>>>> Thanks,
>>>> Hasitha.
>>>>
>>>>
>>>>>
>>>>>
>>>>> [1] -
>>>>> https://docs.google.com/document/d/16LG4UsVzWHxWMAPm67q5NAkGT9Ib8lrw5kTX5a0BDNE/
>>>>>
>>>>>
>>>>> On Wed, May 21, 2014 at 12:05 AM, Pubudu Gunatilaka <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I was able to write a sample HumanTaskEventListener and able to see
>>>>>> the information of human task instance transitions.
>>>>>>
>>>>>> Currently I am working on the BPELTaskEventListener. Once I complete
>>>>>> the event listeners, I will work on the data publisher.
>>>>>>
>>>>>> Then I will be able to work on the BAM dashboard and I am hoping to
>>>>>> complete the above before the mid review which is on 23rd June.
>>>>>>
>>>>>> After the mid review I will work on ODE Execution events.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, May 12, 2014 at 12:36 AM, Thilini Ishaka <[email protected]>wrote:
>>>>>>
>>>>>>> Hi Pubudu,
>>>>>>>
>>>>>>> Some more materials are given below.
>>>>>>> Please update the thread with the current progress.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *Data Publisher1.
>>>>>>> https://docs.wso2.org/display/BAM241/Data+Publisher
>>>>>>> <https://docs.wso2.org/display/BAM241/Data+Publisher> 2.
>>>>>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/data-agents/org.wso2.carbon.bam.service.data.publisher/4.2.1/src/main/java/org/wso2/carbon/bam/service/data/publisher/publish/EventPublisher.java
>>>>>>> <https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/data-agents/org.wso2.carbon.bam.service.data.publisher/4.2.1/src/main/java/org/wso2/carbon/bam/service/data/publisher/publish/EventPublisher.java>
>>>>>>> Sending event to BAM *
>>>>>>> 3. Through the REST API
>>>>>>> https://docs.wso2.org/display/BAM241/Sending+Events+through+the+REST+API
>>>>>>> 4. Samples 
>>>>>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/bps/3.2.0/modules/samples/product/
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *Monitoring with BAM *5.
>>>>>>> http://wso2.com/library/articles/2013/06/monitor-your-kpis-using-wso2-bam/
>>>>>>> 6.
>>>>>>> https://docs.wso2.org/display/BAM240/Monitoring+key+Performance+Indicators
>>>>>>> 7. Creating a custom toolbox
>>>>>>> https://docs.wso2.org/display/BAM241/Creating+a+Custom+Toolbox
>>>>>>>
>>>>>>>
>>>>>>> Thanks
>>>>>>> Thilini
>>>>>>>
>>>>>>>
>>>>>>> On Wed, May 7, 2014 at 4:49 AM, Pubudu Gunatilaka <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Hi Hasitha,
>>>>>>>>
>>>>>>>> Thank you for the information. I did not write a sample event
>>>>>>>> listener yet. Still trying to get some idea about BPEL and Human task
>>>>>>>> processes.
>>>>>>>>
>>>>>>>> I will work on what you have mentioned and let you know the
>>>>>>>> progress.
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> On Wed, May 7, 2014 at 4:31 PM, Hasitha Aravinda 
>>>>>>>> <[email protected]>wrote:
>>>>>>>>
>>>>>>>>> Hi Pubudu,
>>>>>>>>>
>>>>>>>>> For BPEL processes, you can enable ODE events via deploy.xml.
>>>>>>>>> Please refer [1] for more information. Similar to HumanTask you can
>>>>>>>>> register ODE event listener to BPS using bps.xml.
>>>>>>>>>
>>>>>>>>> were you able to write a sample HumanTaskEventListener ?
>>>>>>>>>
>>>>>>>>> Also try to write sample BPELEventListener and see what kind of
>>>>>>>>> information you can get from events about HumanTask/BPEL instances. 
>>>>>>>>> The
>>>>>>>>> idea is to identify data, which we are going to publish to the BAM.
>>>>>>>>>
>>>>>>>>> Also study about BAM data publishers. [2] will be a good point to
>>>>>>>>> start.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Hasitha.
>>>>>>>>>
>>>>>>>>> [1] - http://ode.apache.org/ode-execution-events.html
>>>>>>>>> [2] -
>>>>>>>>> http://wso2.com/library/articles/2012/07/creating-custom-agents-publish-events-bamcep/
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, May 7, 2014 at 1:47 PM, Pubudu Gunatilaka <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> These days I am working with samples that are in WSO2 BPS in
>>>>>>>>>> order to get some idea about BPEL and Human task processes. Some of 
>>>>>>>>>> the
>>>>>>>>>> processes generate events and some do not.
>>>>>>>>>>
>>>>>>>>>> For the processes which generate events can use
>>>>>>>>>> HumanTaskEventListener and BPELEventListener classes to write a 
>>>>>>>>>> custom
>>>>>>>>>> event listener. But for the processes that do not generate events 
>>>>>>>>>> have to
>>>>>>>>>> do using ODE Execution events.
>>>>>>>>>>
>>>>>>>>>> According to [1] this component can be added separately to BPS.
>>>>>>>>>>
>>>>>>>>>> I would really appreciate if you can provide me some useful
>>>>>>>>>> materials in order to move forward.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> [1]-
>>>>>>>>>> http://tryitnw.blogspot.com/2013/05/humantask-event-listeners-wso2-bps.html
>>>>>>>>>> --
>>>>>>>>>> Regards
>>>>>>>>>> P.C. Gunatilaka
>>>>>>>>>> Undergraduate,
>>>>>>>>>> Department of Computer Science And Engineering,
>>>>>>>>>> University of Moratuwa, Sri Lanka.
>>>>>>>>>>
>>>>>>>>>> Web <http://reddragonspace.blogspot.com/> , 
>>>>>>>>>> Facebook<https://www.facebook.com/djpc4ever><https://www.facebook.com/djpc4ever>,
>>>>>>>>>> LinkedIn<http://lk.linkedin.com/pub/pubudu-gunatilaka/32/2b8/20b>,
>>>>>>>>>> Google+ <https://plus.google.com/113204823932612396731/posts> ,
>>>>>>>>>> Twitter <http://twitter.com/#!/PubuduSpace> , 
>>>>>>>>>> About.me<http://about.me/pubudugunatilaka>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Hasitha Aravinda,
>>>>>>>>> Software Engineer,
>>>>>>>>> WSO2 Inc.
>>>>>>>>> Email: [email protected]
>>>>>>>>> Mobile: +94 71 8 210 200
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Regards
>>>>>>>> P.C. Gunatilaka
>>>>>>>> Undergraduate,
>>>>>>>> Department of Computer Science And Engineering,
>>>>>>>> University of Moratuwa, Sri Lanka.
>>>>>>>>
>>>>>>>> Web <http://reddragonspace.blogspot.com/> , 
>>>>>>>> Facebook<https://www.facebook.com/djpc4ever><https://www.facebook.com/djpc4ever>,
>>>>>>>> LinkedIn <http://lk.linkedin.com/pub/pubudu-gunatilaka/32/2b8/20b>,
>>>>>>>> Google+ <https://plus.google.com/113204823932612396731/posts> ,
>>>>>>>> Twitter <http://twitter.com/#!/PubuduSpace> , 
>>>>>>>> About.me<http://about.me/pubudugunatilaka>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thilini Ishaka
>>>>>>> Senior Software Engineer
>>>>>>> Phone: +94 11 214 5345
>>>>>>> WSO2 Inc. http://wso2.com
>>>>>>>
>>>>>>> blog: thiliniishaka.blogspot.com
>>>>>>> linkedin: http://lk.linkedin.com/in/thiliniishaka
>>>>>>> twitter: https://twitter.com/#!/ThiliniIsh
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Regards
>>>>>> P.C. Gunatilaka
>>>>>> Undergraduate,
>>>>>> Department of Computer Science And Engineering,
>>>>>> University of Moratuwa, Sri Lanka.
>>>>>>
>>>>>> Web <http://reddragonspace.blogspot.com/> , 
>>>>>> Facebook<https://www.facebook.com/djpc4ever><https://www.facebook.com/djpc4ever>,
>>>>>> LinkedIn <http://lk.linkedin.com/pub/pubudu-gunatilaka/32/2b8/20b> ,
>>>>>> Google+ <https://plus.google.com/113204823932612396731/posts> ,
>>>>>> Twitter <http://twitter.com/#!/PubuduSpace> , 
>>>>>> About.me<http://about.me/pubudugunatilaka>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards
>>>>> P.C. Gunatilaka
>>>>> Undergraduate,
>>>>> Department of Computer Science And Engineering,
>>>>> University of Moratuwa, Sri Lanka.
>>>>>
>>>>> Web <http://reddragonspace.blogspot.com/> , 
>>>>> Facebook<https://www.facebook.com/djpc4ever><https://www.facebook.com/djpc4ever>,
>>>>> LinkedIn <http://lk.linkedin.com/pub/pubudu-gunatilaka/32/2b8/20b> ,
>>>>> Google+ <https://plus.google.com/113204823932612396731/posts> ,
>>>>> Twitter <http://twitter.com/#!/PubuduSpace> , 
>>>>> About.me<http://about.me/pubudugunatilaka>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Hasitha Aravinda,
>>>> Software Engineer,
>>>> WSO2 Inc.
>>>> Email: [email protected]
>>>> Mobile: +94 71 8 210 200
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards
>>> P.C. Gunatilaka
>>> Undergraduate,
>>> Department of Computer Science And Engineering,
>>> University of Moratuwa, Sri Lanka.
>>>
>>> Web <http://reddragonspace.blogspot.com/> , 
>>> Facebook<https://www.facebook.com/djpc4ever><https://www.facebook.com/djpc4ever>,
>>> LinkedIn <http://lk.linkedin.com/pub/pubudu-gunatilaka/32/2b8/20b> ,
>>> Google+ <https://plus.google.com/113204823932612396731/posts> , 
>>> Twitter<http://twitter.com/#!/PubuduSpace> ,
>>> About.me <http://about.me/pubudugunatilaka>
>>>
>>>
>>
>>
>> --
>> Regards
>> P.C. Gunatilaka
>> Undergraduate,
>> Department of Computer Science And Engineering,
>> University of Moratuwa, Sri Lanka.
>>
>> Web <http://reddragonspace.blogspot.com/> , 
>> Facebook<https://www.facebook.com/djpc4ever><https://www.facebook.com/djpc4ever>,
>> LinkedIn <http://lk.linkedin.com/pub/pubudu-gunatilaka/32/2b8/20b> ,
>> Google+ <https://plus.google.com/113204823932612396731/posts> , 
>> Twitter<http://twitter.com/#!/PubuduSpace> ,
>> About.me <http://about.me/pubudugunatilaka>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nandika Jayawardana
> Senior Technical Lead
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>



-- 
Regards
P.C. Gunatilaka
Undergraduate,
Department of Computer Science And Engineering,
University of Moratuwa, Sri Lanka.

Web <http://reddragonspace.blogspot.com/> ,
Facebook<https://www.facebook.com/djpc4ever><https://www.facebook.com/djpc4ever>,
LinkedIn <http://lk.linkedin.com/pub/pubudu-gunatilaka/32/2b8/20b> ,
Google+<https://plus.google.com/113204823932612396731/posts>,
Twitter <http://twitter.com/#!/PubuduSpace> ,
About.me<http://about.me/pubudugunatilaka>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to