Page 1 of 1

Specify max time limit for a single call

Posted: Sat Aug 25, 2018 8:20 am
by mushfek0001
Hi,

I was looking for any way to specify max time limit for a single call but couldn't find anywhere in the documentation. Is there a feature like that? I'd also like to know if there's any default settings that I can set when one of my REST backend service is down. Like setting a different prompt for that. Currently the default prompt says "An unexpected error has occurred" and then quits for any unhandled non 2xx response. How can I determine it was a timeout and put a more appropriate prompt in that case?

Thanks.

Re: Specify max time limit for a single call

Posted: Mon Aug 27, 2018 9:29 am
by support
Hi,

Currently there is not a max time limit for a single call, but if you would like to adjust your input timeout or webservice timeout settings, that can be found under the Application Settings tab in your application. There is also a transfer duration setting here you can set to allow a maximum amount of time for a transfer to last.

To use custom error handling on your REST modules, you can click the gear icon in the top right corner of the module and select Show Custom Errors; this will add a red branch to the module that you can then connect to other modules in whatever way you would like to handle the error. If you want to branch on webservice errors that are timeouts vs. non-2XX responses, you can branch off the shadow variables returned by your webservice module, name$.http_code, name$.headers, and name$.error, where name is the name of your module.

You can find more information on shadow variables in our documentation here: https://www.plumvoice.com/docs/fuse/shadow_variables

Regards,
Plum Support

Re: Specify max time limit for a single call

Posted: Tue Aug 28, 2018 4:54 am
by mushfek0001
Thanks. Shadow variables will be of great help but I needed one more clarification. By transfer you mean call transfer not data transfer during a webservice call, right?

Re: Specify max time limit for a single call

Posted: Tue Aug 28, 2018 8:18 am
by support
Hi,

Yes, you are correct - by transfer, we mean a call transfer.

Regards,
Plum Support