Fork me on GitHub
#clara
<
2019-04-22
>
Joel03:04:10

(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?

Joel05:04:44

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

ethanc12:04:45

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