To clarify what I'm trying to do, take a classic banking example.
I have a stream of payments coming from one bank account to another. I would like users of my web application to be able to create their own predicates for filtering payments, which will form input into some reports. I planned to write reports manually, and not with the existing reporting structure.
In order of priority, the types of predicates that I would like users to be able to create using the web interface are as follows:
payment.amount > 100.0payment.amount > 100.0 || payment.dayOfWeek = TUESDAY(payment.amount > 100.0 && payment.description.contains("foo")) || payment.dayOfWeek = TUESDAY
I would also like to keep these predicates for reuse later.
I believe that this should be such a general requirement that at least part of this must have already been developed, but itβs hard for me to determine what exactly I'm trying to find on Google. Does anyone come across a web framework for generating predicates and / or something else to store this data?
James source share