Menu

extractFromZipArchiveAction

Adam Tauno Williams

OIE

extractFromZipArchiveAction

Extracts a file from a ZIP action into a workflow message

See also:
- [appendToZipFileAction] for storing content into a ZIP file.
- [sshGetFilesToZipAction] for retrieving files over SCP into a ZIP archive.

Parameters

Parameter Description
filename The filename to extract from the ZIP archive; if not specified the first object in the ZIP archive will be extracted.
mimetype MIME-type to use for message containing the extracted content; if not specified defaults to "application/octet-stream".

Example

Extracts the first object from the ZIP data contained in RetrievedData into the work-flow message labeled "CrossData" having a MIME type of "text/plain".

<action name="actionActivity" id="000020"
        extensionAttributes="V200RetrieveCrossFile/000020">
  <input property="CrossData" formatter="StandardRaw"/>
  <output><source property="RetrievedData"/></output>
  <attributes xmlns="">
    <extension name="activityName">extractFromZipArchive</extension>
    <extension name="mimetype">text/plain</extension>
  </attributes>
</action>

Possible Errors

File Does Not Exist

TBD


Related

Wiki: OpenGroupwareIntegrationEngine

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.