Unable to make async rest request from a before business rule?

dachtman
Kilo Contributor

I have a business rule that runs on insert and update on a app scoped table.The business rule calls a restful webservice and based on the response the operation should either be aborted or continue.


When I run this as a before rule I get an error stating Use an async business rule to perform outbound HTTP requests. I have tried switching the webservice to use executeasync and that has caused more errors with truncation of the endpoint. I have also tried switching the business rule to async but that doesn't allow for me to stop the current operation.

22 REPLIES 22

Bryan Barnard, did you have anything else to add to this? I was out for a few days, and in getting ready to submit my app I realized the way we are doing it now is not usable. The user is forced to wait 20+ seconds for the request to complete. I'm not sure why this is different, in Eureka we did the same and the user did not experience this 20+ second ui freeze.


Bryan Barnard, We have a use case that makes a PUT followed by a POST and both are async (because otherwise they would throw the big bad error message above). However, this freezes the UI for a full 40 seconds.



It seems like doing an async call should not freeze the UI like this because the call is done "asynchronously". Is this expected behavior?


That does not seem right. Can you give me instance version info this is occurring on?


I've seen it all through Fuji. My latest test was Patch 6.


Can you share the business rule scripts you are running either here or offline?