xwm1992 commented on issue #825: URL: https://github.com/apache/incubator-eventmesh/issues/825#issuecomment-1099922916
> I have a quick look at Drools and EasyRule, their rules are not for filtering. I think we need the simple rules like RocketMQ filters > > https://rocketmq.apache.org/docs/filter-by-sql92-example/ > > for example: $.subject == 'myservice' > > We can implement our own simple Rule engine to process this rules using Parse Tree (https://en.wikipedia.org/wiki/Parse_tree) and JsonPath SDK > > Concrete Implementation: > > 1. Parse the Filter Expression into Parse Tree > 2. Evaluate each node of the Parse Tree using JsonPath, and Java API This is a good proposal,may be we can learn more about the `Parse Tree` and `JsonPath SDK`. If we want to implement our own rule engine another direction to consider is implement this under the `JSR 94`, looking forward to other people opinion. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
