Question

How can I compress the output of Automation Action as zip file?

  • 21 March 2022
  • 1 reply
  • 9 views

Hello

 

I have an automation action that generates some files inside the FME Server 2021 Data folder, I need to zip the output folder after the action is complete. Can some one please advise?

 

e.g. after the action is complete, all results will be populated in 

$(FME_SHAREDRESOURCE_DATA)/ALIM3263/destination/Extraction/

I want to compress whatever files in the extraction folder as one single zip file and save it to:

$(FME_SHAREDRESOURCE_DATA)/ALIM3263/destination/Compression/

 

image


1 reply

Badge +2

Hi @mustafa.salah​ ,

 

I think you could approach this in two different ways:

  1. Zip the output within the workspace. E.g. Swap out the writer(s) for Feature Writers, followed by a FeatureHolder to wait until all files have been written and then zip the output e.g. using the ZipArchiver
  2. Create a second workspace that performs the zip process, and add it to the successful port of this workspace.

Reply