Skip navigation links

Package clara.rules

The Java API for working Clara rules.

See: Description

Package clara.rules Description

The Java API for working Clara rules. It contains three simple pieces:

Note this API does not have a separate "knowledge base" class like those of other rules engines. Instead, the user can simply create and reuse a single, empty WorkingMemory object for multiple rule instances -- optionally sticking the initial empty working memory in a static variable. This type of pattern is efficient and possible since the WorkingMemory is immutable, creating a new instance that shares internal state when changes occur.

See the Clara Examples project for an example of this in action.
Skip navigation links