Re: [rules-users] Inserting a JRuby object via Spring JRubyScriptFactory in Drools

2009-03-20 Thread Premkumar Stephen
[mailto: > rules-users-boun...@lists.jboss.org] *On Behalf Of *Edson Tirelli > *Sent:* 19 March 2009 16:06 > *To:* Rules Users List > *Subject:* Re: [rules-users] Inserting a JRuby object via Spring > JRubyScriptFactory in Drools > > >Drools always looks for getters/setters

RE: [rules-users] Inserting a JRuby object via Spring JRubyScriptFactory in Drools

2009-03-20 Thread Anstis, Michael (M.)
Mike From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli Sent: 19 March 2009 16:06 To: Rules Users List Subject: Re: [rules-users] Inserting a JRuby object via Spring JRubyScriptFa

Re: [rules-users] Inserting a JRuby object via Spring JRubyScriptFactory in Drools

2009-03-19 Thread Edson Tirelli
Drools always looks for getters/setters, never for the actual internal attribute. As long as you have an instance of a given interface and your rules are written against the interface you should be fine in Drools 5. Drools 4 used shadow facts, so, there would be more considerations to ma

[rules-users] Inserting a JRuby object via Spring JRubyScriptFactory in Drools

2009-03-19 Thread Premkumar Stephen
Hello Folks, I have been looking at options of using ruby objects as fact objects in Drool's working memory. One obvious way is using services. Another path that I have been researching about is to use Spring as outlined here http://www.jroller.com/habuma/entry/spring_meet_ruby Now, in this exam