Posted: Wed Aug 19, 2009 10:09 am Post subject: flow-wide variable set once only question
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
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