79462807

Date: 2025-02-24 08:15:09
Score: 3.5
Natty:
Report link

As i said, I want to use $lookup as a Set so that I can later check against other values ​​using contains. For more clarity, this is the actual rule:

import java.util.Set;
global java.util.Map lookupValues;
dialect "java"
rule "ruleName"
when
$fact : MyFact($systematic : systematic)
$lookup : Set() from lookupValues["systematic"]
eval($lookup contains $lookup)

then
System.out.println("Error");

end

So, my question ist, whats wrong with the declaration of $lookup? Or is this something, Drools can't handle?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Arti