Hi all

I changed the xml message format of the message related to events. Just like
Dumindu and Ratha suggested here
I organized the message as Key/Value pairs of server level data. And here I
also used a unique Id to identify a one particular life cycle of events of a
process. The message looks as follows (but this message is still missing the
server information at the begining).

<svrusrdata:Event xmlns:svrusrdata="
http://wso2.org/ns/2009/09/bps/server/user-defined/data";>
 <svrusrdata:BpelStatisticsData>
    <svrusrdata:Data>

<svrusrdata:Key>eb7d2d8a-3842-4c35-a3b5-4cd62395cbd8_ProcessName</svrusrdata:Key>
        <svrusrdata:Value>{http://ode/bpel/unit-test}HelloWorld3-11
</svrusrdata:Value>
    </svrusrdata:Data>
    <svrusrdata:Data>

<svrusrdata:Key>eb7d2d8a-3842-4c35-a3b5-4cd62395cbd8_TimeStamp</svrusrdata:Key>
        <svrusrdata:Value>Tue Jun 01 18:31:14 IST 2010</svrusrdata:Value>
    </svrusrdata:Data>
    <svrusrdata:Data>

<svrusrdata:Key>eb7d2d8a-3842-4c35-a3b5-4cd62395cbd8_InstanceId</svrusrdata:Key>
        <svrusrdata:Value>0</svrusrdata:Value>
    </svrusrdata:Data>
    <svrusrdata:Data>

<svrusrdata:Key>eb7d2d8a-3842-4c35-a3b5-4cd62395cbd8_Operation</svrusrdata:Key>
        <svrusrdata:Value></svrusrdata:Value>
    </svrusrdata:Data>
    <svrusrdata:Data>

<svrusrdata:Key>eb7d2d8a-3842-4c35-a3b5-4cd62395cbd8_MessageExchangeId</svrusrdata:Key>
        <svrusrdata:Value></svrusrdata:Value>
    </svrusrdata:Data>
    <svrusrdata:Data>

<svrusrdata:Key>eb7d2d8a-3842-4c35-a3b5-4cd62395cbd8_PartnerLinkModelId</svrusrdata:Key>
        <svrusrdata:Value>29</svrusrdata:Value>
    </svrusrdata:Data>
    <svrusrdata:Data>

<svrusrdata:Key>eb7d2d8a-3842-4c35-a3b5-4cd62395cbd8_PartnerLinkName</svrusrdata:Key>
        <svrusrdata:Value>MultiplierPartnerLink</svrusrdata:Value>
    </svrusrdata:Data>
    <svrusrdata:Data>

<svrusrdata:Key>eb7d2d8a-3842-4c35-a3b5-4cd62395cbd8_InstanceCompleationStatus</svrusrdata:Key>
        <svrusrdata:Value></svrusrdata:Value>
    </svrusrdata:Data>
    <svrusrdata:Data>

<svrusrdata:Key>eb7d2d8a-3842-4c35-a3b5-4cd62395cbd8_FailureReason</svrusrdata:Key>
        <svrusrdata:Value></svrusrdata:Value>
    </svrusrdata:Data>
 </svrusrdata:BpelStatisticsData>
</svrusrdata:Event>

The project is now continuing towards Data receivers, persisting Event data
on database, writing appropriate gadgets for data representation.

Kindly request feedbacks and suggestions

Thank you
IsuruW



On Tue, May 25, 2010 at 5:49 PM, Vijayaratha Vijayasingam
<rat...@wso2.com>wrote:

>
>
> On 24 May 2010 17:56, Isuru Wimalasundera <isu...@wso2.com> wrote:
>
>> Hi all
>>
>> Yes the Event contains a XML message , as I have implemented a statistics
>> data publisher for this task
>> the generating XML message looks like below.
>>
>> <statdata:Event xmlns:statdata="
>> http://wso2.org/ns/2009/09/bps/bpel/statistics/data";>
>>     <statdata:BpelStatisticsData>
>>         
>> <statdata:ProcessName>{http://ode/bpel/unit-test}HelloWorld3-10<http://ode/bpel/unit-test%7DHelloWorld3-10>
>> </statdata:ProcessName>
>>         <statdata:TimeStamp>Mon May 24 17:17:00 IST
>> 2010</statdata:TimeStamp>
>>         <statdata:InstanceId>1</statdata:InstanceId>
>>         <statdata:Operation></statdata:Operation>
>>         <statdata:MessageExchangeId></statdata:MessageExchangeId>
>>         <statdata:PartnerLinkModelId>29</statdata:PartnerLinkModelId>
>>
>> <statdata:PartnerLinkName>MultiplierPartnerLink</statdata:PartnerLinkName>
>>
>> <statdata:InstanceCompleationStatus></statdata:InstanceCompleationStatus>
>>         <statdata:FailureReason></statdata:FailureReason>
>>     </statdata:BpelStatisticsData>
>> </statdata:Event>
>>
>> A XML message in this format get created for all the events given in the
>> event plan. This is a xml related to a partner service invocation of a bpel
>> process.
>>
>> But I just need to clarify whether my use of a statistics data publisher
>> for this task is ok, since Dumindu has told
>> me that its better to get these events as server level user defined data
>> with Key/Value pairs.
>
>
> yes it would be easy rather introducing new tables. Like Samisa told, you
> can use uniqueid/activityid to identify new instance and the related partner
> services of a process.
> Then the each key element would start with the uniqueid.
> eg;- uniqueid_bpelprocessname
>      uniqueid_bpelprocessstarttime
> You can follow mediation publisher as an example for a such formatting of
> the event.
>
> Thanks.
> -Ratha.
>
>
>> Request kind attention on this matter and please let some feedback on
>> this.
>>
>> currently working on learning how the BAM Data Receivers work, and how to
>> implement a one for this project with the help of Ratha.
>>
>> Thank You
>> IsuruW
>>
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to