The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.