I'm migrating my Drools rules from Drools 7 syntax to OOPath syntax and for this, I have created a RuleUnit. I can't determine what to do with the insertLogical() statements.
I'm following the migration guide:
It says that the insert statements:
... then
insert(new Measurement("monochrome", "false"));
end
need to be replaced with adding the facts to a DataSource in RuleUnit:
.... then
measurements.add(new Measurement("monochrome", "false"));
end
But what to do with the insertLogical() statements?
Can I bring these facts to RuleUnit or do I need to leave them as is? I cannot select them using OOPath syntax when I go them as is.
Thanks!
Juhan