Fork me on GitHub
#clara
<
2019-04-23
>
joel38004:04:32

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.

joel38004:04:46

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

joel38005:04:01

@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.

ethanc12:04:05

@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.