Because the fact is not already in the kbase (so i can't modify it and then
insert it).
I resolved my problem by adding a new constructor to my fact class with 2
parameters.
So now I do this:
rule "My rule"
when
Some logic
then
insert( new Fact("just a string", $id) );
System.out.println( "Inserted" );
end
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Possibly-stupid-question-bu...
Sent from the Drools: User forum mailing list archive at
Nabble.com.