Rules Engines

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!

Thanks for your time,
Connor

On Friday, 8 August 2014 11:59:26 UTC-4, Ruby-Forum.com User wrote:

but I need to figure out how to make this work.

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:
    CallingJavaFromJRuby · jruby/jruby Wiki · GitHub

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

–Matt J.