The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Rule::Engine::Session - A Rule Engine Session

ATTRIBUTES

environment

rules

A hash of rules.

METHODS

add_ruleset($name, $ruleset)

Add a ruleset.

execute($ruleset, \@objects)

Execute the rules against the objects provided

get_ruleset($name)

Gets the RuleSet (if it exists) with the specified name.

rule_count

Returns the number of rules for this session.