How to get logically inserted fact or insrt fact in code in Drools guvnor -
my guvnor rule :
rule "aa" dialect "mvel" when fund( amount> 10000 ) alert fact0 = new alert(); fact0.setsummary( "hi" ); insert( fact0 ); end
and using stateless knowledge session. want fact0
in code. how that?
please me.
the drools-friendly way using queries. option use ksession.getobjects(). can take answer: retrieving facts of specific type working memory
hope helps,