VS::RuleEngine::Constants - Constants used by the engine


VS-RuleEngine documentation Contained in the VS-RuleEngine distribution.

Index


Code Index:

NAME

Top

VS::RuleEngine::Constants - Constants used by the engine

EXPORTED SYMBOLS

Top

Hook return codes

KV_ABORT

Used to indicate execution of the engine should be aborted.

KV_CONTINUE

Used to indicate execution of the engine should continue.

Rule return codes

KV_NO_MATCH

Used to indicate a rule didn't match.

KV_MATCH

Used to indicate a rule matched.

Arguments

KV_SELF

The invoked object - that is the rule-, input-, output-, action- etc. instance.

KV_GLOBAL

The global data for the engine.

KV_LOCAL

The local iteration data for the engine.

KV_INPUT

The engine inputs.


VS-RuleEngine documentation Contained in the VS-RuleEngine distribution.

package VS::RuleEngine::Constants;

use strict;
use warnings;

use constant KV_ABORT		=> 0;
use constant KV_CONTINUE	=> 1;

use constant KV_NO_MATCH    => 0;
use constant KV_MATCH       => 1;
use constant KV_SKIP        => 2;

use constant KV_SELF		=> 0;
use constant KV_INPUT       => 1;
use constant KV_GLOBAL		=> 2;
use constant KV_LOCAL		=> 3;

require Exporter;

our @ISA = qw(Exporter);

our @EXPORT = qw(
    KV_ABORT
    KV_CONTINUE
    
    KV_MATCH
    KV_NO_MATCH
    KV_SKIP
    
    KV_GLOBAL
    KV_INPUT
    KV_LOCAL
    KV_SELF
);

our @EXPORT_OK = @EXPORT;

our %EXPORT_TAGS = (
	constants => [@EXPORT],
);

1;
__END__