This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-22
Channels
- # announcements (1)
- # beginners (179)
- # boot (8)
- # calva (3)
- # cider (4)
- # clara (3)
- # cljdoc (31)
- # clojure (9)
- # clojure-austin (1)
- # clojure-chicago (5)
- # clojure-dev (19)
- # clojure-nl (2)
- # clojure-uk (1)
- # clojurescript (13)
- # core-matrix (1)
- # cursive (86)
- # datascript (2)
- # datomic (13)
- # emacs (3)
- # figwheel-main (1)
- # fulcro (66)
- # off-topic (250)
- # pathom (7)
- # re-frame (19)
- # reitit (5)
- # sql (37)
- # uncomplicate (5)
(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?
@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.