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 » flow-wide variable set once only question

Post new topic  Reply to topic
 flow-wide variable set once only question « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Wed Aug 19, 2009 10:09 am    Post subject: flow-wide variable set once only question Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

Hello,

I use a simple flow:

FileInput out - Compute_1 - FileOutput In
FileInput End-of-Data - Compute_2 - FileOutput Finish File.

The Compute_1 node transforms each record into appropriate format before sending to FileOutput. Compute_2 does nothing except set the OutputLocalEnvironment.Destination.File.Name to the same as in Compute_1.

The setting of OutputLocalEnvironment.Destination.File.Name involves complicated string manipulation operations.

Since for each record read from the file, exactly the same FileName is assigned to OutputLocalEnvironment.Destination.File.Name, I wonder if it is possible to use a flow-wide global variable so it gets assigned only once and used in the two routes, for subsequent records. It can be set to null upon completion of the processing of a file.

thanks for any insight.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
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 » flow-wide variable set once only question
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.