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

2013-08-20 Thread V Vignesh
Ya i am using the hash map in my rules. (So i was wondering how to access it) As I am new to Drools, I started doing samples with script task. I will sure soon, learn to use workItemHandler and update you. -- View this message in context: http://drools.46999.n3.nabble.com/Process-Compilatio

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

2013-08-20 Thread Mauricio Salatino
Yeah I noticed that you are trying to do that.. but my question is why are you doing that. Are you using the hashmap in some rules? Why are you using a script task? You can use a workItemHandler to have more control on the objects that you are using and also to have auto completion, compilation tim

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

2013-08-20 Thread V Vignesh
Hi Mauricio Thanks for your explanation buddy. sure i will check on it. Target to achieve: == I have a HashMap in my ProcessTest.java as - -- HashMap hMap = new HashMap(); hMap

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

2013-08-20 Thread Mauricio Salatino
The kcontext is a special variable of the type RuleContext. If you take a look at that interface and all the inheritance you will find out which methods you can use. You can do something like: kcontext.getKnowledgeRuntime().getObjects() and then look for the HashMap. I'm not sure what do you want t

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

2013-08-20 Thread V Vignesh
Hi Mauricio Thanks a lot buddy. I would like to know how this syntax functions. If i need the HashMap from process Test.java (as i have mentioned first) how should i alter this line? -- View this message in context: http://drools.46999.n3.nabble.com/Process-Compilation-Error-Drools-can-not-be-

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

2013-08-20 Thread Mauricio Salatino
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 wrote: > Hi guys, > >

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

2013-08-20 Thread V Vignesh
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");