Add a Stage File Action to Zip the Modified Files
Let's add a stage file action to combine all the individual files, which have been transformed, into a new zip file that will be sent back to your FTP server.
- On the canvas, click Actions
and drag and drop the Stage File action outside both the for-each loops.
The Configure Stage File Action dialog is displayed.
- On the Basic Info page, enter a name for the action (
Create_Zip
). Click Next. - On the Configure Operation page, enter the following details.
Field Information to Enter Choose Stage File Operation Select Zip Files.
Specify the File Name Type the following expression into the Specify File Name field:
'test-data-modified.zip'
.Specify the Directory to zip Type the following expression into the Specify the Directory to zip field:
'/tmp/zip-test/staged/modified'
.Specify the Output Directory Type the following expression into the Specify the Output Directory field:
'/tmp/zip-test/staged/modified'
.Click Next.
- On the Summary page, review the data you've entered and click Done.
- Click Save.