[great-users] Will this work or crash?

Gabriele Trombetti gabtromb at isis.vanderbilt.edu
Wed Jun 16 16:47:59 CDT 2004


Aditya Agrawal wrote:

>[Adi] 
>I think in this case both will be deleted. If you want to have the match
>happen again after the first is deleted you should do the following. 
>
>1. In the rule make the "For all" attribute to false. This will only
>execute the rule once. 
>
>2. From outside the rule send the outputs of the rule to the inputs.
>This will cause the rule to fire once, match A, B. A will be deleted.
>The rule will end, the output go back to input. Next time there aren't
>two objects and the rule will fail.
>  
>

This really sounds like an EXCELLENT algorithm!
Thank you!
Gabriele


More information about the great-users mailing list