Syntax:
com.ibi.agents.XDZipOutAgent
iIT Service Object:
misc: Zip Out Agent
Description:
This service converts an input document into a compressed .zip file.
Parameters:
Parameter |
Description |
---|---|
Entry name * |
The name of the output .zip file that will be generated. |
Comment |
A comment associated with this entry. |
Edges:
The following table lists the available line edges for the Zip Out Service (com.ibi.agents.XDZipOutAgent).
Line Edge |
Description |
---|---|
OnError |
Error |
OnSuccess |
Success |
OnFailure |
Failure |
OnCustom |
|
Example:
The following image shows configuration settings specified in the Properties tab for a Zip Out service object in iIT Designer:
You can test the Zip Out service by configuring a channel with a basic File listener as the inlet and a route, which is associated with a process flow containing a Zip Out service object.
When you run this channel, the contents of the incoming message (picked up by the File listener) are added to a .zip file, which is placed in the destination folder specified by your File listener. The name of the entry that is added to the .zip file is composed from the value that is specified for the Entry name parameter (for example, testzip.xml). When you configure the File listener, it is recommended to specify zip for the Suffix Out parameter. However, you can always rename the extension of the output file that is generated to .zip and extract the contents.