Qus:    How do you setup a try/catch sequence in flow code in Developer?
Jan 19, 2012 05:30 1 Answers Views: 1986 Tomas
Prev Next
Answers (1)
Tomas Jan 19, 2012 05:30
Answer:  

Sequence 1( main sequence,set to exit on sucess)


Sequence 2(logic  sequence,set to exit on failure)


service 1


service 2


Sequence 3(error sequence set to exit on done as required)


pub.flow: get lost error


custom: log error, custom: notify error


Parameters in get/last error:


1)  Time(string) [yyyy/mm/dd HH:MM:SS.SS]


2)  error type [ exception type that was thrown]


3)  error dump [ more detailed  information about exception]


4)  service  [ fully qualified name]


5)  user   [ user r requested the service to generate]


6)  thread ID [ identifying the thread that invoked the service]


7)  session ID [ exception in which session]


Limitations of get last error:


1)  A flow exist $parent and report FAILURE will cause the logic sequence to fail and execution will transfer to error handling sequence calling get last error will not return a Last error ID object.


2)  An Access Exception caused when a service is called without the required  permission will cause to logic sequence to fail and the execution will transfer to error handling sequence calling get last error will not return a get last error ID object in it is case.


 


 


Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect