Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [bpel-dev] ExtensionActivity Deserializer problem

Hi Hasitha,
 
I will try to answer instead of Bob.
 
The problem is not your Serializer/Deserializer, but your implementation of ExtensionActivity (PeopleActivityRTImpl?). Without knowing that class I can only guess, that you are using this.getElement() in PeopleActivityRTImpl.basicSetRemoteTask(RemoteTask rt) to add the the element of the remote task. This will add the RemoteTask element to the <bpel:extensionActivity> element, as this is the one which is connected to an implementation of ExtensionActivity.
 
Finally some remarks on HTDeserializer:
  1. A serializer/deserializer must be stateless (your instance variables may lead to unexpected side effects).
  2. XML is case sensitive. Don't use equalsIgnoreCase when comparing the element name.
  3. Why are you iterating twice over the list of child nodes?
Hope that helps,
Tobias
 

Von: bpel-dev-bounces@xxxxxxxxxxx [bpel-dev-bounces@xxxxxxxxxxx] im Auftrag von Hasitha Aravinda [mail.hasitha27@xxxxxxxxx]
Gesendet: Dienstag, 19. Juli 2011 08:10
An: BPEL Designer project developer discussions.
Betreff: [bpel-dev] ExtensionActivity Deserializer problem

Hi Bob,

I am trying to implement an extensionActivity . This activity generates following XML code.

<bpel:extensionActivity>
<b4p:peopleActivity name="PeopleActivityRT">
<b4p:remoteTask></b4p:remoteTask>
</b4p:peopleActivity>
</bpel:extensionActivity>

But I have found an error when I open a saved bpel file using business process editor. When I open a bpel file using business process editor, it changes like this,

<bpel:extensionActivity>
<b4p:peopleActivity name="PeopleActivityRT">

</b4p:peopleActivity>
<b4p:remoteTask></b4p:remoteTask>
</bpel:extensionActivity>

This is not happened when I open a file using XML editor. So I thing it is a problem of Deserilizer of the extensionActivity. Any Idea about what went wrong ?.

I have attached Deserializer and Serializer classes.

--

Hasitha Aravinda,
Undergraduate,
Department of Computer Science and Engineering,
University of Moratuwa,
Sri Lanka.

My web portal : http://hasitha.comze.com


Back to the top