Re: BRE and Forward Chaining



I think you've got stuck in a recursive loop caused by the update action.
(The new fact values cause some other rule to fire, updating another value
etc., etc.)

I had a similar problem, which I posted a while back
(http://hugorodgerbrown.blogspot.com/2005/02/rules-engine-investigations.htm
l). The solution seemed to be to add further predicates to the rules to
ensure that the recursion would no longer cause rules to refire endlessly
(http://hugorodgerbrown.blogspot.com/2005/02/rules-engine-iii.html). The
forward chaining seems a bit suspect to me.

Hugo

"Todd Sussman" <todd.sussman@xxxxxxxxxxxxxxxxxxx> wrote in message
news:AHA3e.52605$AN1.45141@xxxxxxxxxxxxx
> I seem to be having a problem with my forward chaining, and was hoping
> someone could help me out. I have a series of rules that looks like this
>
> IF
> XML1.FieldA = DataBase.RowA
> ACTION
> XML2.FieldA = Database.RowB
> Update XML2
>
> IF
> XML2.FieldA = DataBase2.RowA
> ACTION
> XML2.FieldB = DataBase2.RowB
> Update XML2
> Etc...
>
> But when I go to test this in BRC, it never seems to complete the policy
> execution.
>
> Any help is greatly appreciatted.
>
> Todd
>
>


.


Loading