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,


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -