Hi @xavigarciamar
Since you now already you should take a look at the FileCopy writer and the Path Reader, I will not go into their specific configuration.
In order to use the destination path from the text file, just create a text reader that reads this file and send the feature (I suppose there is only 1) to the suppliers port of a FeatureMerger. The features read by the Path Reader should go to the Requestor.
When you 'join on' requestor: '1' and supplier: '1', every feature read by the path reader will get the destination path from the text reader.
Now you can use this path in the FileCopy writer.
Good luck!
Hi @xavigarciamar
Since you now already you should take a look at the FileCopy writer and the Path Reader, I will not go into their specific configuration.
In order to use the destination path from the text file, just create a text reader that reads this file and send the feature (I suppose there is only 1) to the suppliers port of a FeatureMerger. The features read by the Path Reader should go to the Requestor.
When you 'join on' requestor: '1' and supplier: '1', every feature read by the path reader will get the destination path from the text reader.
Now you can use this path in the FileCopy writer.
Good luck!
Hi Jero ,
Ok , many thanks for the help !!
I 'll try and I say you something , thanks again !!
Hi Jero ,
there is something that I can't do , the configuration of the feature merger and the path reader and text reader is OK , but how can I configure the attributes of the filecopy ??? the filecopy_source_dataset ,filecopy_dest_dataset , and the filecopy_dest_filename ??
Sorry for the question I'm begining with FME ,
Thanks again for your help !!
Hi Jero ,
there is something that I can't do , the configuration of the feature merger and the path reader and text reader is OK , but how can I configure the attributes of the filecopy ??? the filecopy_source_dataset ,filecopy_dest_dataset , and the filecopy_dest_filename ??
Sorry for the question I'm begining with FME ,
Thanks again for your help !!
Hi @xavigarciamar possibly this old blog post might help you:
http://blog.safe.com/2013/07/fmeevangelist117/
thanks for your always apreciate help Itay , I will look it !!
Finally I have been able to do it , I post it for if helps to anybody !!
The solution that I have used is :
1 -. A path reader and a File text reader
2 -. Any of this reader elements are passed to attribute creator to create a attribute called key_unique to be able to do the merge , and like I only have one line for the text file , there is no problem. The key unique , always have value = 1
3 -. I use to the exit of atribute creators a featuremerger for any file of the input directory
4 -. Finally I use a attributerenameer connected to filecopy to take the attributes to configurate the filecopy
And it's finish , it move all the elements of a input directory to a directory configured in text file.
Thanks itay and jero for your help !!