Hello-
I have this scenario:
I have one mainBot with 3 subBots. In the subBots I pass an Employee ID from the mainBot to the subBots. Each bot is responsible for checking one system for information. If there is information in any one of these systems then it will trigger a boolean flag that means that I will then need to do or more substantial check. Is there a way to do this more efficiently then just using an if statement? Essentially I am looping through three bots…. If a flag equals true then exit and go to another subBot that does the more substantial check.
i.e. Here are two scenarios:
Scenario 1:
subBotA runs there is info found which triggers flag to TRUE
subBotB is now skipped
subBotC is now Skipped
subBotX (substantial check) is now run
Scenario 2:
subBotA runs there is no info found so the flag is FALSE
subBotB runs there is info found which triggers flag to TRUE
subBotC is now Skipped
subBotX (substantial check) is now run
i.e. I want the Flag being TRUE to trigger the event to go to the substantial check…..
This is the way I was thinking I would have to do it unless there is a better alternative (Using IF statements)?
subBotA runs an returns the Flag value
mainBot runs an if statement to check if the Flag is TRUE if TRUE
Run subBotX substantial bot
ELSE
Run subBotB and then a flag is returned
mainBot runs an if statement to check if the Flag is TRUE if TRUE
Run subBotX substantial bot
ELSE Run subBotC
mainBot runs an if statement to check if the Flag is TRUE if TRUE
if TRUE Run subBotX substantial bot
If FALSE exit the bot procedure…..
Any help or insight would be very much appreciated! Thank you again!
Ideally, I think I would run all these subBots asynchronously and then evaluate the flag in one step…..