Subscription Service - Processing Tab

The Processing tab contains the Processing, Operation for Process Script and Options for Modifying Output Filename panels. Check the listed fields in each panel.

Processing

The Processing panel contains the following fields:
Field Description
Working Directory

Specifies the directory where contents for the actual output file is composed from received messages.

When the files generated by Subscription Services are independent of each other, the services share the working, output and error directories. Otherwise, the directories must be unique.

Note: On Unix, the processing directories such as the working directory, and the done or output directory are required to be on the same file system.
Output Directory Specifies the directory where files in the working directory are moved to.
Error Directory When you use Simple File Transfer mode, this field is mandatory. When you use Record Transfer mode, this field is not mandatory. However, if specified, an XML file containing the name of the input file and the error details are created in this directory.

For details about the usage and contents of this directory, see Error Handling.

Progress Directory Specifies the directory where the progress file is written to. It applies to both Record and Simple File transfer modes. If no directory is specified in this field, the progress file is created in the directory where the adapter is started.

Operation for Process Script

The Operation for Process Script panel contains the following fields:

Field Description
Post Processing Script File Specifies the name of the script that is executed after the file is moved to the output directory. Click Browse to locate and load the script.
Post Processing Arguments Specifies the arguments you want to pass to the postprocessing script. The sequence of arguments contains the name of the file, followed by the arguments specified in the Post Processing Arguments field.

Options for Modifying Output Filename

The Options for Modifying Output Filename panel provides options to modify the name of the generated output file by appending a timestamp or sequence number. This panel contains the following fields:
Field Description
Append Three options are available:
  • None

    Does not append anything to the filename.

  • Timestamp

    Appends a timestamp to the filename. The format is YYYYMMDDHHMMSSmm. Selecting this option activates the Location field.

  • Sequence Number

    Appends a sequence number to the filename. Selecting this option activates the Location and Sequence Number Width fields.

Location Two options are available:
  • Prefix

    Appends the timestamp or sequence number to the filename as a prefix.

  • Suffix

    Appends the timestamp or sequence number to the filename as a suffix.

The separator between the prefix and suffix is assumed to be a period (.).

Sequence Number Width Specifies the width of the sequence number. For example, when you select 4 as the width of the sequence number, the number that is appended to the file is 0000. The sequence number begins with 0 and is incremented for each file that is moved to the output directory. Upon reaching the maximum value for a given width, the sequence number rolls over.

When the adapter is restarted, Subscription Service remembers the previous sequence number and continues from there.