clara

http://www.clara-rules.org/
EsakkiSundar Varatharajan 2021-05-30T07:12:25.028600Z

I wanted to learn ClaraRules and use with Java. There are not enough tutorials out there in youtube or udemy. Could you please let me where to get started and become familiar with this? Please share your experience how did you get started.

2021-06-01T07:23:11.029500Z

There is an example of using Clara from Java at https://github.com/cerner/clara-examples/blob/master/src/main/java/clara/examples/java/ExampleMain.java

2021-06-01T07:23:59.029800Z

Also see the docs at http://www.clara-rules.org/docs/java/

2021-06-01T07:25:45.030100Z

Note that the actual process of writing rules etc. is the same as in Clojure, since they will be in Clojure source files. The Java wrapper basically makes invoking Clojure from Java easier - you could also do this yourself in any domain-specific way that makes sense. That said, IMO the subset of Clojure you need to understand to write basic rules is relatively small.

EsakkiSundar Varatharajan 2021-06-01T17:43:43.030500Z

Thanks wparker. I have few questions and hope you can clarify my doubts. 1) Do I need to get solid understanding on Clojure to write Clara rules? 2) What is your recommendation for people who are not familiar with Clojure. Is there a way to generate Clara rules from a excel based sheet or provide the Excel sheet as input to Clara. As an example, in Drools it has support to define the rules defined in an excel and pass to the engine. 3) Also could you please explain more on "you could also do this yourself in any domain-specific way that makes sense"

2021-06-04T03:14:51.032900Z

1) I think you’d need to know some basic clj to write rules typically. Not necessarily too advanced though. 2) no spreadsheet features built in 3) making your own DSL would likely require more clj - but see http://www.toomuchcode.org/blog/2015/11/14/insta-declarative-dsls/ for the concept