This example demonstrates how to monitor a directory for zip files and once a new zip file is discovered, use this Action Agent to extract its contents.
Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the Unzip Action Agent onto the canvas and rename the agent. Link the input endpoint to the monitor, the output to the printer, and save the Data Stream.

Step 2: Configure General

Select the Agent and click Configure. In this case, keep the default Collection.

Step 3: Configure Properties

Specify the Output Directory. Leave blank for the files to be extracted in the same folder as the zip file and applied the changes.

Step 4: Input Mapping

Select the Unzip Action Agent's input arrow and click Configure.
Map one of the parent Agent's output attributes that represent the path to a zip file. In this case, set the File (String) input to 'Path (String)'.
Apply the changes and save the Data Stream.

Step 5: Results

Publish the Data Stream and let's look at the Live Data View. Place a zip file into the folder that is being monitored and observe that as soon as a zip file is found, the Unzip function extracts it and outputs the paths of files found in the zip file.


Security Key
Data Stream
Unzip Example.xuc
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.