You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2022/04/14 15:42:20 UTC
[GitHub] [incubator-eventmesh] jinrongluo commented on issue #825: [Feature] Event Filter
jinrongluo commented on issue #825:
URL: https://github.com/apache/incubator-eventmesh/issues/825#issuecomment-1099315094
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 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: dev-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org