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
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
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
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
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-
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,
>
>
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");