Yeah, that's because "drools" doesn't exist.
I think that you can use the kcontext, in order to do that..
Try something like:
kcontext.getKnowledgeRuntime().getFactHandles() instead of
drools.getWorkingMemory().getFactHandles()
On Tue, Aug 20, 2013 at 11:42 AM, V Vignesh <vignesh_v(a)solartis.net> wrote:
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-no...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- MyJourney @
http://salaboy.com <
http://salaboy.wordpress.com>
- Co-Founder @
http://www.jugargentina.org
- Co-Founder @
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -