|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Copying business process variables of complex type in WPC |
« View previous topic :: View next topic » |
Author |
Message
|
prasadpav |
Posted: Fri Jun 03, 2005 4:18 am Post subject: Copying business process variables of complex type in WPC |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
Hi,
In Websphere process choreographer, i'm trying to copy the complex type (XML tree) which I get in Receive activity of business process to another business process variable using java snippet. I've a choice element in my XML message, which is not being correctly copied.
In my XML schema if I have a choice type that has three elements: ItemA, ItemB, Itemc and the Receive activity gets a message which has ItemB in the message, then while copying this message to another business process variable, ItemB is always lost, instead i get blank ItemA element. Any thoughts of why this is happening? Rest of tree copy is working fine.
In my java snippet, this is what I've:
getAnotherVariable(true).setContents(getReceiveActivityVariable().getContents());
where, ReceiveActivityVariable is the input variable at receive activity and AnotherVariable is the variable to which i'm trying to copy to.
Also, during this copy lot of blank XML elements are created (Ex: <InputItem/>)(if they are not present in the original Receive message). Is there a way to stop creating these blank element creation?
Thanks in advance...
cheers,
Prasad |
|
Back to top |
|
 |
prasadpav |
Posted: Fri Jun 03, 2005 4:43 am Post subject: |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
I'm sorry, in the above post, i realised that it is not the problem with copying the contents across the variables, the copying is working fine, but when this variable is used as a Request variable in one-way invoke, then i'm loosing the original element witin choice type. Hope I made my problem clear.
Prasad |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|