Open vikas8352 opened 3 years ago
Hi, in my company, I stored rules data (JSON) on MySQL (mongo is ok too) and cached them to Redis or LocalJVM cache.
We're doing that at my company. It may not be a perfect match, but we are using jsep. Here's the proof of concept I did on parsing it out. Make sure you scroll to the bottom, there's a little proof of concept for constructing the expression from the ui. Note: It's using React as we are heavily invested React. But between the jsep library and the stringify function I have in the expressions.js file that should give you the ability to parse out an expression to predictable structure that you can use to render what you need and then you need to be able to produce a similar structure to stringify it back to an expression string.
Hi We have used SpELRuleFactory to load rules from Json. Our requirement is :
How can we achieve this ?