Clara-rules 0.21.0
Released under the Apache License Version 2.0
Clara Rules Engine.
Installation
To install, add the following dependency to your project or build file:
[com.cerner/clara-rules "0.21.0"]
Namespaces
clara.rules
Forward-chaining rules for Clojure. The primary API is in this namespace.
Public variables and functions:
clara.rules.accumulators
A set of common accumulators usable in Clara rules.
clara.rules.dsl
Implementation of the defrule-style DSL for Clara. Most users should simply use the clara.rules namespace.
Public variables and functions:
clara.rules.durability
Support for persisting Clara sessions to an external store. Provides the ability to store and restore an entire session working memory state. The restored session is able to have additional insert, retract, query, and fire rule calls performed immediately after.
Public variables and functions:
- add-accumulator
- add-alpha-fn
- add-join-filter-fn
- add-rhs-fn
- add-test-fn
- assemble-restored-session
- cache-node
- clj-struct->idx
- clj-struct-holder
- clj-struct-holder-add-fact-idx!
- clj-struct-holder-add-obj!
- clj-struct-idx->obj
- create-map-entry
- deserialize-rulebase
- deserialize-session-state
- find-index
- find-internal-idx
- find-mem-idx
- index-accum-memory
- index-activation-map
- index-alpha-memory
- index-beta-memory
- index-production-memory
- indexed-session-memory-state
- ISessionSerializer
- IWorkingMemorySerializer
- mem-facts
- mem-internal
- node-fn-cache
- node-id->node
- node-id->node-cache
- opts->get-alphas-fn
- rulebase->rulebase-with-opts
- seq->sorted-map
- seq->sorted-set
- serialize-rulebase
- serialize-session-state
- sorted-comparator-name
clara.rules.listener
Event listeners for analyzing the flow through Clara. This is for primarily for use by tooling, but advanced users may use this to analyze sessions.
Public variables and functions:
clara.tools.inspect
Tooling to inspect a rule session. The two major methods here are:
Public variables and functions:
clara.tools.tracing
Support for tracing state changes in a Clara session.
Public variables and functions: