How do I retrieve a Validated Task at a later time?

In my unnattended workflow, documents that are not Classified are sent to the Action Center with “Create Classification Task”, and similar “Create Validation Task” if the extracted fields have a low confidence.
No pause in the job, just create the task and move on to the next file.

The idea is that a person will use the Action Center at a later time, and then the RPA will get the validated data to make an output.
But I don’t see a “Retrieve Validation Task” in the activity package?

If I use “Get task” I’ll get a zip.file that is hard to compute further.

I’m using only UiPath.DocumentUnderstanding.ML package, in Studio 23.10.

@Ferdinand

ideally if there is afurther process then you need to modify a little ..you can save all the output of create tasks and in end process with parallel for each use wait for resume and in the same loop after resume save the docuemnt data and add a item to queue with details and can have a separate process triggered from there for further modification

cheers

I think it’s better to have a job that just fills up the Action Center with tasks, without pausing.
Then e.g. the invoice department can finish the tasks when they feel to.
And then, an RPA gets the validated information and process it further.

My current workaround for each task:

  • Download Storage File
  • Unzip files: output_results.zip
  • Deserialize JSON
  • Get the output and make some output…

@Ferdinand

it would be in suspended mode..but not for each invoice but for all together and when each completes next task will happen

even now the invoice department can finish anytime and only when all are done you will move on till then it would waiting in suspended with no license utilization and other bots can run

cheers

Ok, for classification I use “Create Classification Validation Task” and store all the objects in an array, then after that I need to run a “Parallel For Each”-loop on the array with a “Wait for Classification Validation Task & Resume”.
This will put the job in Orchestrator in Suspended mode (VM logs out and is free).
Then after someone completes a task in Action Center, the job will automatically start up again and get the output data.
Is this correct?
What if the job fails after the first resume…how can it then retrieve the other completed jobs? (array is lost)

Why on earth have UiPath made it so complex.
There really should be an activity that just read all completed tasks from Action Center with it’s output.

@Ferdinand

thats why you would not do complex tasks after wait..instead you would only add item to queue and save the items ..no possibility to fail ideally..unless you add so many activities

I do agree but this is there for form tasks as they work in different manner the purpose of adding items to action center for du is to reuse with wait

you use parallel for each because it waits for all so the array is already in play..Unexpected terminations will happen anyway

also that is the reason this should be used a one job one flow ..so that each job starts separately and waits separately and fails separately when you introducer transactions into the process then yes there needs to be handling on an individual basis..else make the process itself to be at individual level so that the fail would not effect other invoices

cheers

1 Like

Thanks for the clarifications! I will try to do it the right way.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.