[rules-users] Accessing drools object in function

Mark Proctor mproctor at codehaus.org
Mon Mar 24 21:34:01 EDT 2008


ferry97 wrote:
> Hi,
> Is it possible to access drools object in drools function ?
> eg:
> function void doSomething(MyObject obj) {
>     //do something first
>     drools.insert(obj);
> }
>
> When trying to do this, drools object is not recognized.
> Is there other way ?
> Thanks
>   
If you pass it as a parameter, yes.



More information about the rules-users mailing list