How to make the Bot process tasks one after another?

Hi all,

I have developed a bot which extracts few data from PDF file and sends it to Pega.

This task will be triggered by two events:

1. Pega Work item

2. on receiving New e-mail

The challenge here is, after deploying the solution in the Test Machine, The Bot starts processing when new work item appears in Work Queue, meanwhile, if a new mail is received, the Bot start processing the Document from the mail before the Work item from Pega Work queue is processed. This is creating conflicts in the output values.

Kindly, let me understand how to configure the Solution to process one event at a time.

Best Regards


Keep up to date on this post and subscribe to comments

September 26, 2019 - 9:27am

You should not have a single bot be coded to respond to work from more than one source. In this case, I would create a case whenever an email arrives and then that case could be added to a new work queue for the bot to work. Since RM passes work sequentially, it would continue working on the current work queue until that work was exhausted before moving on to the "email" one (or you could change the priority and make the "email" queue a higher priority).

October 15, 2019 - 9:15am
Response to tsasnett

Hi Tsasnett,

Thanks for your response.

We have decided to create a new Solution for Mail Automation. I would like to reuse the Project from the existing solution.

I have created a solution and imported the Existing Project.

But When i deploy it to the Robot Manager, the newly deployed Packages are getting added to the old solution's packages.

Kindly help me configure the new solution to be deployed in robot manager.


October 15, 2019 - 9:22am
Response to SanjayKumarM4322

I don't understand. If you created a new project from scratch and added a reference to the existing project, then it would deploy as a new project. Is your new project set as the startup project? Are you certain that is what you are deploying? When you deploy the project, you need to make sure you have the correct one highlighted in the Solution Explorer window.