On Friday, 8 August 2014 11:59:26 UTC-4, Ruby-Forum.com User wrote:
>
> Alright, so I apologize if this meanders a bit: 
>
> I am very new to Ruby in general (I've self taught and studied up, but 
> don't have much experience at all).  What I'm trying to make is 
> proof-of-concept web app that will take user input from a form, put it 
> into a format usable by OpenRules (something with which I have even less 
> experience), execute it, and display the output. 
>
> I realize this sounds convoluted (which is why I'm thoroughly confused), 
> but I need to figure out how to make this work. 
>
> The way I see it, it shouldn't be difficult to acquire a record from the 
> user and put it into a friendly format (.xls, I believe), but even 
> ignoring my unfamiliarity with OpenRules, I'm not sure how to go about 
> executing the rules (which seem to be tied to Java), or how to get the 
> result back. 
>
> Sorry for all the confusion!  I'm on my first internship at an IT firm, 
> and this was just "assigned" to me.  I greatly appreciate any 
> insight/advice/examples/etcetera that anyone has to offer! 
>
>
I don't have any experience with OpenRules, but here's some thoughts:

* before anything else, figure out how to get it up and running. The 
OpenRules site suggests Eclipse is involved, so that should be fun.

* get JRuby. If you're going to have any chance at invoking OpenRules from 
Ruby, this is likely it.

* read up on invoking Java code from JRuby. This is a good start: 
https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby

* last but should be done first: ASK SOMEBODY. It's possible that all the 
above have been addressed by internal documentation / tooling.

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/9e2d564b-348b-4c78-832b-ee4c930360c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to