Hi everyone, I was wondering if the following scenario is possible or not:
I have 5 Queue Item containing the file path to Invoice documents. A performer will consume the first queue item, extract information from the Invoice document then create a new Document Validation Task in Action Center. The bot will then wait for that task to be completed on Action Center by a user.
So my question is that is there a way to process the next queue item within the same process while waiting for the task to be completed on Action Center? I know the process will be suspended once it hit the wait activity but is there a work around this?
My Suggestions is, you can build your performer using the Orchestration Process template instead of the REFramework. because it is built for the kind of situation you are discribing it comes with the UiPath.Persistance.Activities.
and
My answer is yes this is possible, you can use the Parallel activity this allows for your sequences or processes to run concurrently.
Thank you for replying. What would be a good way to implement the Parallel activity? Iâve tried adding the parallel activity the process is still suspended at the wait activity
You could always do âwait and resumeâ activities in a separate parallel for each than the same âfor eachâ where you âcreate actionâ as it will suspend workflow in every iteration which might not be useful. Create all tasks/actions , add TaskObject to a list and then later do âwait and resumeâ in a parallel for each for all items in TaskObject list so that you process all the items that doesnât require validation or human actions and workflow is suspended only for the list of items that requires human action.
Hey, But after extraction of resultsâŚqueue items for all documents are not created. Since, we need to keep Wait for Validation activity outside the Parallel for each loopâŚadding queue item is also outside the loop. How to create for example 4 queues for 4 invoices?
may be I am missing lot of context, however you could perform all the steps required (or possible) before waiting for actions. In summary, keep processing all the âgoodâ data to its completion , keep creating actions as and when you find anomalies (and add those action objects to a list/collection) so that you could process those âbadâ data based on action from the user in a parallel for each.