Posted: 20 Sep 2019 6:55 EDT Last activity: 15 Oct 2019 9:22 EDT
How to make the Bot process tasks one after another?
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.
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).
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.