ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Does anyone have advice for creating an inbound email flow?

Post new topic  Reply to topic
 Does anyone have advice for creating an inbound email flow? « View previous topic :: View next topic » 
Author Message
jrsetters
PostPosted: Mon Dec 10, 2012 8:21 am    Post subject: Does anyone have advice for creating an inbound email flow? Reply with quote

Acolyte

Joined: 24 Aug 2011
Posts: 72
Location: Cincinnati, OH

This is completely new to me and I am trying to work through the IBM sample.

My organization wants to take a simple email message that is generated by our transport tracking system and convert it into an outbound HL7 message to our EMR system.

What I will get is a very simple message that contains about 2 lines in the message body, always formatted in the same way:

JOB #12345, SMITH, JOHN 823456, FROM CCU RM 200 BED 01 TO LOBBY by Transport, BY Wheelchair

Basically, I would need to extract the following fields, store them in the environment then use a mapping node or eSQL compute node to build an HL7 message and plug them into the appropriate fields.

JOBNO - '12345'
LASTNAME - 'SMITH'
FIRSTNAME - 'JOHN'
ACCOUNTNUM - '823456'
FROMUNIT - 'CCU'
FROMROOM - '200'
FROMBED - '01'
TOLOCATION - 'LOBBY'
BYSERVICE - 'Trasnport'
BYMECHANISM - 'Wheelchair'

I don't think it will be a problem to extract the data because the deliminations used above are always the same. That is, the job number will be preceeded by the text "JOB #", the Last Name will always be after the first comma and so forth.

What I am having trouble understanding is how best to get the emails into the email input node in the first place. From the sample it sounds like my main options are to set up a POP or IMAP connection to an email server address and use configurable services to create a security token (mqsisetdbparms). Or it looks like I can use configurable services to create a local email service and create an inbound email port there.

We do not currently have any flows that are originated by inbound email, so this will be the first one configured in our organization.

I am wondering if anyone has configured an email input using a simple Exchange configuration. It seems like it would be pretty easy just to have an additional address added to our Exchange server where these messages are forwarded.

What is the best option here?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Dec 10, 2012 8:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

When you ran these two flows (sample input and sample output), what were your results?

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.samples.email.doc/doc/running.htm
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Dec 10, 2012 8:30 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Where I've done it, I've done it by creating a POP connection to the existing email server and leaving the mail administrators to worry about space, storage, spam and all the other fun stuff.

It also allows for greater flexibility in the email address exposed and the mailbox used; there are all sorts of forwarding rules, tricks and tips than might be of benefit.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
goffinf
PostPosted: Mon Dec 10, 2012 11:10 am    Post subject: Re: Does anyone have advice for creating an inbound email fl Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

jrsetters wrote:

I am wondering if anyone has configured an email input using a simple Exchange configuration. It seems like it would be pretty easy just to have an additional address added to our Exchange server where these messages are forwarded.

What is the best option here?


Did this recently in v6.1. Just started the flow with a timer so the in-basket is polled at regular intervals (configured via UDP), then just wrote a JavaCompute with calls to the Java mail API. I used IMAP because I need to deal with emails with fairly large attachments (using POP would have used too much memory). I also employed some of the large message processing techniques to move the emails from Exchange to MQ. After that it's just straight-forward broker stuff. Works pretty well, Java is relatively simple (it's definitely not my strength but got thru ok).

Fraser.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 10, 2012 4:35 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Which version of WMB? If on v8 then DFDL is the obvious choice for parsing the incoming delimited data.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Does anyone have advice for creating an inbound email flow?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.