clara

http://www.clara-rules.org/
Joel 2019-04-22T03:43:10.005200Z

(dir clararules.core) will give me a list of the rules in that ns, but how can i tell rules from other items in the namespace?

Joel 2019-04-22T05:15:44.005800Z

how do i see which rules are/were fired? I don't see an example.

ethanc 2019-04-22T12:46:45.009Z

@joel380, Im not sure if this is an implementation detail or not, but clara uses a protocol and metadata to determine productions in a given namespace. https://github.com/cerner/clara-rules/blob/0.19.1/src/main/clojure/clara/rules.cljc#L270-L305 To your second question, i believe the way you would determine if rules have or have not fired would be to use the tracing listener. http://www.clara-rules.org/docs/listeners/ Either that or the end state of the session could be used via queries and facts returned from those queries.