Hi,
If you want to move the processed file to an archive folder, you can first attach a Script connector as a initial connector and store the original filename in a message header. This ensures that even if the name changes later in the flow, the initial filename remains available. You can use a script like:
<arc:set attr="output.header:name" value="[FileName]" />
<arc:set attr="output.filepath" value="[filepath]" />
<arc:push item="output" />
After the flow completes, attach another Script connector and use the fileMove(https://cdn.cdata.com/help/AZM/mft/op_FileMove.html) operation to move the file from the original folder to the archive folder, for example:
<arc:set attr="input.source" value="D:\kk/[Header:name]" />
<arc:set attr="input.destination" value="D:\kk\archive/[Header:name]" />
<arc:call op="fileMove" item="input">
<arc:set attr="_log.info" value="The file [input.file:source], was moved to [input.file:destination]"/>
</arc:call>
If you have any further questions, you can reach out to us at [removed by moderator] .