Search code examples
xmlxml-parsingblueprismrpa

Extract XML content using Action parallely


I have to extract data from a config file which is in XML format using BP. I have about 25 tags from where attributes are to be extracted.

The current process I am using is to process the tags in a serial order and this takes probably a minute to extract the contents of the tag of the XML file and store it in variables. The tags pertain to extracting email data, file paths, and ServiceNow work notes and closure logs.

I would like ok if to know if actions can be executed in parallel rather than in serial order to fasten the process.

Any help in this regard would be grateful.

Regards.


Solution

  • As of this writing, Blue Prism (now v6.5) doesn't support parallel execution in a Process or Object.

    You could, hypothetically, design a brand new XML parsing VBO that leverages System.Threading to parse through multiple lines concurrently, but this SO answer lays out exactly why that won't net you any significant performance benefit, and actually may negatively affect total processing time:

    [To accomplish this], you need to fully parse the XML, which means you're doing the same amount of work as before on the main thread. The only difference is that you're doing some additional work on the background threads.