05-08-22 12:25 PM
05-08-22 02:05 PM
05-08-22 04:22 PM
08-08-22 06:40 AM
18-09-23 08:19 AM
Thanks for the insights in the topic on sub process as this is often less explored across teams. I agree with the 2nd reason you stated wrt processes that can be built as actions into VBOs.
But, one thing I would like to clarify on your 1st reason to not use sub process "for easier management and retry" is that we can use Process startup parameters to fix that. Explained broadly below -
We have a requirement to automate a big process that has 6 different sub processes to run by using inputs from the same source and generate 1 processing report at the end. We can use a main process to add the items to the queue and call each sub process at a time to work on the items it is tagged with. Once done the bot will generate the report. Now , we can have a 7 startup parameters ; 6 flags suggesting which process to run and 1 to determine if queue addition is needed. Incase of a termination, say 2nd process terminates, we can manually trigger the Main process with set queue addition as False, and all other flags starting from 2nd one as True. Based on these flag setup and the Main process design, the bot will continue processing from the 2nd one(also retried items) and complete till the 6th.
This seems like an easy way to deal with subprocess termination etc. Could you add onto this as why using a set of subprocesses is not feasible ?
------------------------------
Swapnadeep Deb
Tech Lead, Robotics
TCS
------------------------------
18-09-23 10:25 AM
Hi swapnadeep Deb,
There are some good points Michael O'Neil mentioned above, but as you mentioned on your specific automation, using different approach based on the requirment There is always not one approach will not fit for all the automation.
There's always tradeoff between one vs other . I always use either one of the approach mentioned
1) using main process to call subprocess( as long there will be less chance to fail what i mean that is all the exception are well handled, forethought about memory consideration,easy for maintenance of the automation and allow for multi bots to run)
2) creating separate subprocess all together.( for better management and allow multi bots to run) obviously this will give lot of flexibility for the support and memory management.
What I'm against is building everything in one process.