cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1113
Views
5
Helpful
5
Replies

UCCX 8.5 HTTP Integration- Error and Exception handler

Anas Abueideh
Level 9
Level 9

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

1 Accepted Solution

Accepted Solutions

Anthony Holloway
Cisco Employee
Cisco Employee

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.

View solution in original post

5 Replies 5

Anas Abueideh
Level 9
Level 9

Can any one help me with the above  ?

thanks in advance

Anthony Holloway
Cisco Employee
Cisco Employee

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.

Hi Anthony,

thanks a lot for your reply. I will check it and get back to you

regards

Anas

Anas Abueideh
Level 9
Level 9

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

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.