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 » How can we access Environment tree node in Mapping node?

Post new topic  Reply to topic
 How can we access Environment tree node in Mapping node? « View previous topic :: View next topic » 
Author Message
vara
PostPosted: Mon Jul 08, 2013 2:39 am    Post subject: How can we access Environment tree node in Mapping node? Reply with quote

Newbie

Joined: 08 Jul 2013
Posts: 1

How can we map Environment Variable to Target fields in Mapping node.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 08, 2013 3:21 am    Post subject: Re: How can we access Environment tree node in Mapping node? Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

vara wrote:
How can we map Environment Variable to Target fields in Mapping node.


By reading the InfoCentre or attending the training.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbr28801_.htm

Quote:
XPath 2.0 functions (prefix fn:). All XPath 2.0 functions are supported by the Mapping node.


http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbr28671_.htm
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER


Last edited by lancelotlinc on Mon Jul 08, 2013 3:23 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Mon Jul 08, 2013 3:22 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

This question has been asked before
The search option (upper right of the window) can return wonderful results.

Have you tried it?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jul 08, 2013 8:23 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can't.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 08, 2013 8:29 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mqjeff wrote:
You can't.


Are you sure?

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbr28672_.htm


Quote:
An ESQL module with no inputs can be used to assign to an output element.


Code:
SET returnValue = Environment.Variables.XMLNSC.inputCounter;

_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Jul 08, 2013 8:52 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
mqjeff wrote:
You can't.


Are you sure?

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbr28672_.htm


Quote:
An ESQL module with no inputs can be used to assign to an output element.


Code:
SET returnValue = Environment.Variables.XMLNSC.inputCounter;


What happens when you try it?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 08, 2013 9:22 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

I'm busy with IIB V9 atm. If I get around to it, I'll let you know.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Jul 08, 2013 9:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
I'm busy with IIB V9 atm. If I get around to it, I'll let you know.


ESQL routines called from Mapping node are not called in a scope that has Environment as a defined correlation name.

So you'd have to do something horrendous like stick a reference in LocalEnvironment that pointed to Environment and then access that to get at Environment.

But it's a horrible horrible idea.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 08, 2013 9:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mqjeff wrote:
lancelotlinc wrote:
I'm busy with IIB V9 atm. If I get around to it, I'll let you know.


ESQL routines called from Mapping node are not called in a scope that has Environment as a defined correlation name.

So you'd have to do something horrendous like stick a reference in LocalEnvironment that pointed to Environment and then access that to get at Environment.

But it's a horrible horrible idea.


Does this seem like Global Cache may be a good application here?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
rekarm01
PostPosted: Mon Jul 08, 2013 10:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

mqjeff wrote:
So you'd have to do something horrendous like stick a reference in LocalEnvironment that pointed to Environment and then access that to get at Environment.

Is that even possible, to create a message tree element with REFERENCE data type?

lancelotlinc wrote:
Does this seem like Global Cache may be a good application here?

Probably not.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jul 08, 2013 10:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

rekarm01 wrote:
mqjeff wrote:
So you'd have to do something horrendous like stick a reference in LocalEnvironment that pointed to Environment and then access that to get at Environment.

Is that even possible, to create a message tree element with REFERENCE data type?


Dunno. Probably not. Might be able to use a SCHEMA level variable, but again it gets ugly pretty darn quick.

Again, best thing is to simply not expect to use Environment from GDM.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 08, 2013 10:22 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

So the OP is left with copying whatever interested elements from Environment to LocalEnvironment before the call to mapping node?

What's the technical challenge that makes it difficult to give mapping node access to the Environment tree natively?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Jul 08, 2013 10:29 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
So the OP is left with copying whatever interested elements from Environment to LocalEnvironment before the call to mapping node?

And back, afterwards, yes.

lancelotlinc wrote:
What's the technical challenge that makes it difficult to give mapping node access to the Environment tree natively?


I'm not aware.
Back to top
View user's profile Send private message
martinb
PostPosted: Mon Nov 16, 2015 4:48 am    Post subject: Reply with quote

Master

Joined: 09 Nov 2006
Posts: 210
Location: UK

Just to update this thread as it sill comes up in peoples searches...

From IIB v10 you can now access the Environment in a Graphical Data Map

- See Mapping the environment tree

From IIB 10.0.0.2 you can now access the Global Cache, using built in transforms

- See Accessing a global cache by using a Mapping node
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 » How can we access Environment tree node in Mapping node?
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.