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.

  1. On the canvas, click ActionsIntegration actions icon and drag and drop the Stage File action outside both the for-each loops.

    The Configure Stage File Action dialog is displayed.

  2. On the Basic Info page, enter a name for the action (Create_Zip). Click Next.
  3. 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.

  4. On the Summary page, review the data you've entered and click Done.
  5. Click Save.