ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Copying business process variables of complex type in WPC

Post new topic  Reply to topic
 Copying business process variables of complex type in WPC « View previous topic :: View next topic » 
Author Message
prasadpav
PostPosted: Fri Jun 03, 2005 4:18 am    Post subject: Copying business process variables of complex type in WPC Reply with quote

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
View user's profile Send private message
prasadpav
PostPosted: Fri Jun 03, 2005 4:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Copying business process variables of complex type in WPC
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.