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. |
In this example, the constant is XMLConst.
The Name and Description pane opens.
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.
<test/>
The output obtained is a file a0.txt output:
XMLConst.