on 07-05-2008 8:09 AM
Hi Experts,
Could you pleas solve the below issue.
In a file to file scenario, the input file will be picked from a directory location and after processing output file will be placed in the output directory location specified in the receiver communication channel.
In the sender communication channel for the scenario mentioned above, if the processing mode is given as delete, the input file will be delete as soon as the file was successfully read by the adapter, but this will not ensure that the file processing is complete and the output file is being created.
If we have a scenario in such as way that the input file should be deleted from the input folder only if the complete process is successful and the output is generated. how can we achieve this functionality?.
And one more thing if we got the successful output the output file should be placed in one folder. and the if the output file is having errors it should be placed in other folder.
Hi ,
How do u identify whether file is processed sucessfuly or not ?
According to u what do u mean by file got processed in correct mode ?
Well i think to achieve this u have to write command line (batch file) , no other option would work out.
Your logic has to be completetly put across in Command line.
Guys any views
regards
sRINI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In Receiver communication channel I have used the below command in Run Operating System
.And I have kept the processing mode of sender communication channel as test.
cmd.exe: /C "del /Leela/test.xml"
You are running the comman line program configured in the receiver File Adapter,but in command line you mentioned the Sender File Folder , So i guess it's not getting processed.
Try this:
Try to run the command line in the Sender File Adapter Side
"Place this in " --> Run OS Command After Message Processing.
Hope this would work and get in parrallel with u r requirement.
regards
Srini
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.