Create the Emitter

To create the emitter for our channel:

  1. From iWay Service Manager, under Components, select Emitters.

    The Emitters pane opens on the right with a list of existing emitters.

  2. Click Add.

    The Select emitter type pane opens.

  3. From the Type of new emitter drop down list, select the type of emitter you want to create. In our example, it is a File emitter, as shown in the following image.

    emitter drop-down list

  4. Click Next.

    The Emitters Configuration parameters pane opens, as shown in the following image.

    Emitters Configuration parameters pane diagram

  5. In the Destination field, type a path to the directory where you want the documents moving through the channel to be saved, and include the XML file name format for the output files.

    Note:The emitter creates a file for each row in the database when running and automatically numbers the files according to the format you provide in the Destination field. In the file name format, designate how many digits the number will contain with hash marks (#).

    The following is an example of an entry for the Destination field:

    C:/SearchData/Retail/######.xml

    This example designates six digits for the file name, therefore, the file names that are output will be 000001.xml. 000002.xml, 000003.xml, and so on. If you designate one digit (#.xml), the file names will be 1.xml, 2.xml, 3.xml, and so on. The automatic numbering always starts with 1.

  6. In the Create Directory field, select:

    true to create the directory you specified in the Destination field if it does not exist.

    false to not create the directory if it does not exist.

  7. Click Next.

    The Provide a name for the new emitter pane opens.

  8. Type a name and a brief description of the emitter.

    Our example names the emitter RetailDB_FileEmitter, as shown in the following image.

    emitter diagram

  9. Click Finish.

    The Emitters pane opens and displays the new emitter in the list of emitters.

Now create the outlet to contain the new emitter.


WebFOCUS