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

Mauricio Salatino salaboy at gmail.com
Tue Aug 20 06:47:13 EDT 2013


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 at 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-not-be-resolved-tp4025623.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at 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 -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130820/fcf65746/attachment.html 


More information about the rules-users mailing list