Constant PE (com.ibi.preemit.XDConstantPE)

How to:

Syntax:

com.ibi.preemit.XDConstantPE

Description:

Replaces output with constant value (evaluated). This preemitter is used to return a constant document.

Use the Constant preemitter if the user needs to return a constant output, say for testing purposes.

Parameters:

Parameter

Description

Constant

This value will after evaluation be emitted.



x
Procedure: How to Use a ConstantPE Preemitter
  1. Select a ConstantPE preemitter from the list.
  2. Click Next.
  3. Enter the constant that you want to output for the field Constant to Emit.

    In this example, the constant is XMLConst.

    The Name and Description pane opens.

  4. Provide a name and optionally, a description for the preemitter.
  5. Click Finish.
  6. Name the preemitter ConstantPE.

    After the ConstantPE preemitter is added to iWay Service Manager, create an outlet, say, PreemitterOutlet. Create a file emitter which writes to a flat file a0.txt. Add the ConstantPE preemitter and file emitter to this outlet.

    Construct the channel PreemitChannel using a file listener case1 as inlet, a simple move route and the outlet created in the previous step.

    Let the input to this channel be:

    <test/>

    The output obtained is a file a0.txt output:

    XMLConst.

iWay Software