Example
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.
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.

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

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

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.

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.

File | Link | Security Key |
---|---|---|
Data Stream | Unzip Example.xuc | C0mp|ex123 |
Last modified 2mo ago