Is it ok to do http requests from openl rules?
I will need to call some services to execute some rules. I dont want to put those values as parameters in my rules because our rule manager team can change it anytime, and those values are used only in those rules.
Say we have a service that returns account data, and we have to validate that data inside some rules. What is the best way to make that http call? and to reuse this data in many rules? any configuration to make?
Right now i made a jar with static method wich makes the http call and return the data, but i think this is blocking threads and making openl tablets ws much less responsive in our tests. It starts to give timeout erros too soon.
Last edit: Jean Robert 2018-12-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it ok to do http requests from openl rules?
I will need to call some services to execute some rules. I dont want to put those values as parameters in my rules because our rule manager team can change it anytime, and those values are used only in those rules.
Say we have a service that returns account data, and we have to validate that data inside some rules. What is the best way to make that http call? and to reuse this data in many rules? any configuration to make?
Right now i made a jar with static method wich makes the http call and return the data, but i think this is blocking threads and making openl tablets ws much less responsive in our tests. It starts to give timeout erros too soon.
Last edit: Jean Robert 2018-12-26
Hello,
Your question is moved to the Github OpenL Discussions.
You can track it by the following link:
https://github.com/openl-tablets/openl-tablets/discussions/645
Best regards,
Alena.