[rules-users] Process Compilation Error: Drools can not be resolved

V Vignesh vignesh_v at solartis.net
Tue Aug 20 06:42:30 EDT 2013


Hi guys, 

I am new new to Rule Flow. 
I am using eclipse for rule flow. 

In a new Drools-Project 
in ProcessTest.java 
I tried to insert a HashMap in a knowledge base session 
------------------------------------------------------- 
HashMap hMap = new HashMap(); 
            hMap.put("Id", "10"); 
            hMap.put("RollNumber", "456"); 
            FactHandle qMapHandle = ksession.insert(hMap); 
            ksession.startProcess("sample.ruleflow"); 
            ksession.fireAllRules();   
------------------------------------------------------   

but in my ruleflow.rf 
I added a script Task 
when in its Action, i tried accessing this fact Handle i get an error 
"Drools cannot be resolved" 
--------------------------------------------- 
if(drools.getWorkingMemory().getFactHandles()){ 
System.out.println("Inside the Script Task"); 
} 
--------------------------------------------- 

Can you please help me to figure out the Reasons for Compilation Error



--
View this message in context: http://drools.46999.n3.nabble.com/Process-Compilation-Error-Drools-can-not-be-resolved-tp4025623.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list