What about when a mediator alters something? A msg comes in and a rule for http://glen.org doesn't match but a rule for http://fremantle.org does, so a mediator is invoked and that changes it to http://glen.org?

   ...ant

On 10/18/05, Paul Fremantle <[EMAIL PROTECTED]> wrote:
Aha - now thats a fine question!

There are two ways out of that.

1) The mediator can say it has dealt with the message (return false).
2) We can (and *need*) to build a data structure from the rules based on the potential matches. For example, you cannot match http://glen.org if you have already matched http://fremantle.org because they are incompatible. The typical way of doing this is to build a state machine that captures possible "follow-on" rules from each rule.

Paul


On 10/18/05, Glen Daniels < [EMAIL PROTECTED]> wrote:

> If the Rule Engine is a handler that takes over control of
> the message then it can iterate through the rules. Each time
> it comes to a hit, it uses a separate (i.e. not the one that
> this handler is running under) AxisEngine to execute the
> modules and mediator for that rule. It retains control until
> no more rules match and then sends the message on.

"until no more rules match" - are you saying that EVERY run through the
matching engine has to check EVERY rule?

I really hope you're not saying that....

--G

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to