Menu

Is it ok to make http requests from openl rules?

Help
2018-12-26
2022-08-10
  • Jean Robert

    Jean Robert - 2018-12-26

    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
  • Elena Kosolapova

    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.

     

Log in to post a comment.