- Create a new channel with a name Channel1.
- Set data types to delimited text.
- Goto source tab, choose channel reader from the connector type dropdown.
- Goto destination tab , choose channel Writer(Because we are providing this channel output as an input for the another channel) from the connector type dropdown.
- In channel writer ,channel name as None(after created the Channel2 we give that name here).
- From Destination mapping in right side,click and drag the Encoded data into the template field (or write ${message.encodedData}).
- Save the channel.
- Then again go and create the new channel with the name Channel2.
- Set data types to delimited text.
- Goto source tab, choose channel reader from the connector type drop down.
- Goto destination tab ,from connector type choose FileWriter from drop down.
- Method -> File
- Directory -> Give your directory path(example D:/MirthTool/Output).
- File Name -> Give your file name(Ex:Myfile).
- Append To file -> Yes. (or No,Depends on user)
- From Destination mapping in right side,click and drag the Encoded data into the template field (or write ${message.encodedData}).
- Now save and go to Channel1 and change the channel name as Channel2 in the destination tab (As mentioned in the 5th step) .
- Now save and deploy both the channel .
- Now right click on the channel 1 from the Dashboard ,choose send message .Write something and click process message button.
- Now go to the given path(example D:/MirthTool/Output).There you can see the file which you named(Myfile).
- Open and see,there will be the text that you have wrote in the message field .
Tuesday, January 15, 2013
Writing into another channel(One channel output as a another channel's input) in Mirth
Labels:
Mirth related
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment