cancel
Showing results for 
Search instead for 
Did you mean: 

Pass Value from Object at the time of exception

arghya.b
Level 6
​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
------------------------------
2 REPLIES 2

david.l.morris
Level 15
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

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
------------------------------