OpenWGA 7.9 - TMLScript reference

ZipStream
Method :

addFile(file)
addFile(document, attachmentname)

On object ZipStream
Usage Add a file or attachment to the zip stream.
Parameters

Variant 1:

file (WGAFile | FILE):

The file object (eigther a WGAFile object or a java.io.File object) to put (copy) into the stream.

Variant 2:

document (WGDocument | TMLContext)

The document to search for the given file.

attachmentname (String)

The name of the attachment to be added to the zip stream.

Return value The ZipStream for further chaining
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events