I’m working on a drools rule that need to be address following requirement.
I have some configurable keywords e.g.: – gun,coin,remmitance,drug,etc. I should be able to declare these values in a drools file. Secondly, I have an input field that user will key in his nature of business (business_activity) e.g.: – I’m managing a drug store using digital coins.
I need to write a logic that need to match 1 more words from keyword list against business_activity field (highlighted above). Also count of hits should be more than 2 regardless if it’s the same word repeated or distinguished words from the keywords list.
If the criteria is met, I set a flag.
Is this feasible in a drools file? If yes can help to share the code?