Skip to main content
Question

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

  • March 21, 2022
  • 1 reply
  • 24 views

mustafa.salah

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

Forum|alt.badge.img+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.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings