Pass Value from Object at the time of exception
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-20 11:34 AM
Hi All,
Is there is any way to pass the value from object to process at the time of any exception happen in the object .
one way is to concatenate with the exception details and pass it, but I think it is so much complicated.
Any help?
Regards,
Arghya
------------------------------
Arghya Bhattacharyya
RPA Developer
Infosys Ltd
Asia/Kolkata
------------------------------
Is there is any way to pass the value from object to process at the time of any exception happen in the object .
one way is to concatenate with the exception details and pass it, but I think it is so much complicated.
Any help?
Regards,
Arghya
------------------------------
Arghya Bhattacharyya
RPA Developer
Infosys Ltd
Asia/Kolkata
------------------------------
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-20 12:29 PM
The only way to do it is either (1) to include it in the Exception Details as you mentioned by using an Exception Stage to throw an exception with the details you want in it or (2) to include it in the text of one or more output parameters. For #1, the process will need a catch block with a recover/resume and a Calc stage to get the ExceptionDetail(). For #2, the process would probably just need a decision and/or calc stage to look at or deal with the output data.
Common practice (sometimes incorrectly stated as 'Best Practice') is to include those details in the ExceptionDetail() data. It doesn't effectively matter which method you choose as long as the developers who are calling that object/action understand how to interact with it.
------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------
Dave Morris, 3Ci at Southern Company
Common practice (sometimes incorrectly stated as 'Best Practice') is to include those details in the ExceptionDetail() data. It doesn't effectively matter which method you choose as long as the developers who are calling that object/action understand how to interact with it.
------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------
Dave Morris, 3Ci at Southern Company
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-20 12:42 PM
Thanks Dave, its helpful, i will check also if i can find anything , i will share also ..
Arghya
------------------------------
Arghya Bhattacharyya
RPA Developer
Infosys Ltd
Asia/Kolkata
------------------------------
Arghya
------------------------------
Arghya Bhattacharyya
RPA Developer
Infosys Ltd
Asia/Kolkata
------------------------------
