Posted: Tue Feb 09, 2010 6:50 am Post subject: File Handling
Apprentice
Joined: 18 Apr 2008 Posts: 28
Hi
i have a requirement as below, please help me with the ways to achieve these
1. read the messages from the queue at different time frames (timer node sceduled to run 7 times daily), and create the delimited file(File output node).
Every time the scheduled flow runs the back of the file created by previous run should be taken and new records should be appended into the file (so for 7 runs we should have 6 back up files and one complete file). Can we create the file in append mode or open an existing file to write records into?
Pls Note: we are not suppose to use another Queue for backup/storage purpose.
2. the output file (containing the records from all the 7 runs) will be picked by a third party some time between the time frames say during the 5PM will we be able to stop the scheduled flow at this time, since we dont want the messages to drop in while the third party is processing the file.
I got suggestions to to implement this in Java, but i hope there should be ways to do this in MB flows aswell,
Don't use Java to directly access files in WMB through lack of knowledge or unwillingness to read the documentation.
Fileoutput nodes can append records. You have to decide when to finalise the file in the message flow.
Sometimes handling message to file can be confusing to develop (the first time at least), but using compute node propagates, mqget nodes and fileoutput properly it can be done.
Then you will have a properly written WMB message flow and not some sort of frankenstein's monster!
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