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 » WebSphere Message Broker (ACE) Support » GDM Updates 2 tables and I want to add the updatedRows...

Post new topic  Reply to topic
 GDM Updates 2 tables and I want to add the updatedRows... « View previous topic :: View next topic » 
Author Message
JosephGramig
PostPosted: Thu Jul 16, 2015 9:04 am    Post subject: GDM Updates 2 tables and I want to add the updatedRows... Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

I'm using the GDM to update two tables and build one SOAP response. It all works, but what I cannot figure out is how to add the NumberOfRowsUpdated in the Return part and assign that to a field in the SOAP response.

Anybody doing that?

I'm sure the answer is simple, once you know it.

MQ 7.5.0.4, IIB 9.0.0.3, zLinux
Back to top
View user's profile Send private message AIM Address
martinb
PostPosted: Fri Jul 17, 2015 10:50 pm    Post subject: Reply with quote

Master

Joined: 09 Nov 2006
Posts: 210
Location: UK

Hi Joseph

Each of your Update transforms has a Return part in the transform group.
The predefined input inside the nested mapping of the Return is "NumberOfRowsUpdated".

If you have two separate elements in your response message you can simply wire the output of each of your two Update Returns to the relevant element.

However maybe what you actually need is a single response element to be set to the sum of these?

That is still achievable. While you cannot wire the output of the two Return's into an additional Transform step that summed them, the answer is to nest of chain the Updates.

So in your Map you'd do one of the Update transforms. On the Return of that first Update wire the output to the whole SOAP Response, and wire all the data you need from the SOAP Request into this Return as well.
Next inside the nested mapping of the first Update,you add the second Update. Now in for the Return of the second Update you can wire the First Update's "NumberOfRowsUpdated" into the second's Return, and connect it's output to your single element that wants the sum of rows updated.

HTH
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 » WebSphere Message Broker (ACE) Support » GDM Updates 2 tables and I want to add the updatedRows...
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.