clara

http://www.clara-rules.org/
Joel 2019-04-23T04:45:32.011700Z

thanks... that second question. I was able to look at the session and see a fired rule, so that seems workable. The link you sent looks good, it looks like it uses something called "meta" to determine (query or rule), but doesn't seem to work for me.

Joel 2019-04-23T04:50:46.012400Z

actually no, this works: (meta (resolve 'has-email))

Joel 2019-04-23T05:32:01.014600Z

@ethanc --- is there any examples around activation-group-fn. Maybe the documentation is good enough, but being a clojure newbie, I'm really not understanding what that function should be receiving (a map that always represents rules only? or the metadata?) Also the it's sort sibling is fuzzy to me.

ethanc 2019-04-23T12:50:05.019400Z

@joel380, This is a test demonstrating the usage of the activation-group-fn: https://github.com/cerner/clara-rules/blob/0.19.1/src/test/clojurescript/clara/test_salience.cljs#L76-L99 Please note that the manipulation of salience is typically reserved for tuning poor preforming rules. By poor performing, I mean rule scenarios where a pattern can be established where the execution order of rules will drastically impact the time that subsequent rules will take to execute and maintain truth.