There's now possibility to declare facts in the drl, like:
declare Person
name: String
age: int
endMy question is how do I instantiate this fact object during runtime? Do I still need to have class Person compiled and existing somewhere in classpath, or there's a helper class which I can use "fake the fact", something like:
FakeFact person = FakeFact("Person");
person.setField("name", "Oleg");
person.setField("age", "42");
session.insert(person);Or there's another nicer way?
Thank you,
-Oleg Zenzin
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev