How to create Orchestrator Queues for emails in a mailbox?

email
queue

#1

Has anyone tried using the RE Framework wherein the source data are emails from a mailbox?
And then using Orchestrator Queues so that multiple bots can execute the package?

Thanks.


#2

Never tried it with emails but it should work:

Dispatcher:

  1. Read your emails into a collection with Get Mail Message
  2. Iterate through it with a for each mail message
  3. For each mail message Add queue item.

Performer:
Retrieve your mail messages one by one as you do with any type of variable.


#3

Thanks Bogdan. This is very helpful. I will try it out.


#4

Richard, did you manage to get it working? I’m working on a similar case were emails are used as an input in the process and I want to use the reframework as well. Please let me know!


#5

Question : usually queues are used in business processes which have huge number of transactions i.,e., 100’s of them per day. Is it effective to use them if we have just 5-10 transactions per day?


#6

There are a few ways to do this, and @bogdan.nastase suggested a good one: using a Dispatcher and a Performer.

The problem is that currently the contents of queue items need to be serializable into a JSON string, and MailMessage is not (you can test by calling MyEmailMessage.GetType().IsSerializable).

Two alternatives are:

About @yashaswiniGowda’s question: They can be useful not only to deal with volume, but also for easier maintenance and more flexibility; so I would say yes!


Unable to add variable of mailMessage type into Queue
Unable to add mail message to orchestrator queue
#7

Thanks a lot Mateus! I tried your second suggestion with the dispatcher and perfomer and adjusted it a little so now it performs perfectly for my situation.