03-22-2013
02:17 PM
- last edited on
03-25-2019
07:22 PM
by
ciscomoderator
Dear All,
I configure an integration between UCCX and a salesforce through 3rd party webserver. UCCX script send the HTTP get to the webserver to get caller info based on the caller ID or an input from the caller. these infor is passed to the CAD agents using the workflow.
My issue appears if the webserver goes down for any reason, like reachability or even restart, the caller hears the cisco message "we have face technical problems".
My question how to configure error handler for this case, I have tried the exception clear without success. I am looking to a solution like the branch "Connection not available" under DB Read
Thanks in advance
Solved! Go to Solution.
03-24-2013 10:35 PM
Basically, you need to tell the system that when a certain type of failure occurs, you want the engine to Go To a certain step in the script. In order for that to happen, you need to tell the system your intentions prior to the failure. I like to either put my exception handlers at the top of the script, or just before a step I know is likely to fail.
The quickest way to set yourself up is to use the On Exception Goto step and pick the WFExecutionException (fourth from bottom) and choose a label to go to when that happens.
I can tell you that if the site is offline, the normal HTTP timeout will need to expire first before the exception will be thrown. To prove that, reactive debug your script and see how long the HTTP call sits there before failing.
Here's an exception handling helper utility script I made which could tell you what exact exception to pick.
https://supportforums.cisco.com/docs/DOC-26839
Lastly, you really don't even need the On Exception Clear step. It's use is simply to negate a On Exception Goto step. If you design your script properly, you could end up not even using it. However, if you're just learning, the best place to use it is right after the label you're sending the On Exception Goto step to. Be sure to pick the same exception in the On Exception Clears step as you did in the On Exception Goto step. Remember it's cancelling the handler for a specific exception you set earlier.
Good luck and happy exception handling.
Anthony Holloway
Please use the star ratings to help drive great content to the top of searches.
03-24-2013 01:37 AM
Can any one help me with the above ?
thanks in advance
03-24-2013 10:35 PM
Basically, you need to tell the system that when a certain type of failure occurs, you want the engine to Go To a certain step in the script. In order for that to happen, you need to tell the system your intentions prior to the failure. I like to either put my exception handlers at the top of the script, or just before a step I know is likely to fail.
The quickest way to set yourself up is to use the On Exception Goto step and pick the WFExecutionException (fourth from bottom) and choose a label to go to when that happens.
I can tell you that if the site is offline, the normal HTTP timeout will need to expire first before the exception will be thrown. To prove that, reactive debug your script and see how long the HTTP call sits there before failing.
Here's an exception handling helper utility script I made which could tell you what exact exception to pick.
https://supportforums.cisco.com/docs/DOC-26839
Lastly, you really don't even need the On Exception Clear step. It's use is simply to negate a On Exception Goto step. If you design your script properly, you could end up not even using it. However, if you're just learning, the best place to use it is right after the label you're sending the On Exception Goto step to. Be sure to pick the same exception in the On Exception Clears step as you did in the On Exception Goto step. Remember it's cancelling the handler for a specific exception you set earlier.
Good luck and happy exception handling.
Anthony Holloway
Please use the star ratings to help drive great content to the top of searches.
03-27-2013 02:51 PM
Hi Anthony,
thanks a lot for your reply. I will check it and get back to you
regards
Anas
04-08-2013 07:23 AM
Hi Anthony,
thanks a lot for your response. I test it today and it works. You made my day
regards
Anas
Sent from Cisco Technical Support Android App
04-08-2013 07:34 AM
Thank you for replying to let us all know you were able to get it working. Have a good day!
Anthony Holloway
Please use the star ratings to help drive great content to the top of searches.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide