[rules-users] Possibly stupid question... but I have to ask

menada eujenia at gmail.com
Thu Jul 28 17:36:10 EDT 2011


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-but-I-have-to-ask-tp3207666p3207973.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list