Error Handling Multi Thread Processing
Jump to navigation
Jump to search
Main record and Record per Thread
- each thread record saves it's status and errorsFound
- if any thread has error update a boolean in the main record
- must update boolean before processing main record complete
- after AwaitingMultipleSteps complete check boolean, if true, main record add errorsFound and status error
- eg: ComplexFilter/SearchResult/SortResult/ImportData
Main record and no Record per Thread
- if fixed number of threads could save error from each thread into main record errorsFound
- otherwise, if any thread has error update a boolean in the main record
- must update errorsFound/boolean before processing main record complete
- after AwaitingMultipleSteps complete check errorsFound/boolean, if true, main record add errorsFound and status error
- eg: Image upload checking multiple Account Limits