SystemException and Business Exception

i had a interview scenario…
Q - i have set of queue transactions say 20, out of which, when there are consecutive System Exception say 3 or consecutive Business Exception say 3 the BOT should stop… the BOT should not stop for 1 or 2 Exceptions?
i have Mentioned for System Exception we can configure in ConfigFile but the interviewer did not accepted the sol… what is the solution

@devasaiprasad_K

If config max is not to be used…then before doing gwt teansaction we can use get queue items and get last 3 successful or failed items and check if all of the 3 are failed then stop else move forward

Or if order by is also needed then use get queue items api where you can order by last processing date with same success and failed filters

Cheers

@devasaiprasad_K ,

For system Exception we have control at Config level.

For System Exception bot will reinitialize all the Applications but for BRE it will not.

May be interviewer would be looking answer for Business Rule Exception .

For Business Rule Exception we neither have prebuilt control at Queue Level not at Config Level. This is this way because, Business Rule Exception could be different for each QueueItem. Logic to control would require to develop as per business requirement.

Thanks,
Ashok :slight_smile: