Unarchive activity map output
About this task
Procedure
- Select the Map Outputs task in the Checklist. The Map Inputs task is displayed.The archiveEntries output parameter is displayed in the From Activity pane. The archiveEntries/entry node is a recurring node and each entry represents a either a single file or directory in the archive. The nodes of the archiveEntries/entry node are described in the following table:
Node Name Required xsd Type Description name Yes string Specifies the name of the directory or file that was extracted from the archive. If the file or directory is located in a sub-directory the value returned by the name node during run time includes the relative directory path of the file or directory. For example, if the archive contains the file called file1.txt located in the directory called cat, the value: cat\file1.txt is returned. datetime No dateString Specifies the creation date and time of the file or the directory in the archive. isdirectory No boolean Specifies if the current entity is a directory or a file: - true specifies the entity is a directory
- false specifies the entity is a file
content No base64Binary Specifies the contents of the file or directory. size No long Specifies the size of the file or directory. userid No string Specifies the user ID of the file or directory. groupid No string Specifies the group IDof the file or directory. permissions No string Specifies the permissions of the file or directory. - Map variables to the archiveEntries output
parameter. See Creating a Map for general instructions
on mapping. For example, you could map the archiveEntries output
parameter to an archiveEntries variable and then
add an For Each activity after the Unarchive activity
to iterate through the instances of the archiveEntries variable.
Each instance of the archiveEntries variable represents
a file or a directory. You could add a If..Then activity
to the For Each loop that tests the value of
the isdirectory node and if the entity is not
a directory, place the extracted file on an FTP Server using the FTP
Put File activity. This example orchestration
is shown in the following figure:
Parent topic: Unarchive Activity