The way RETE works, is you start with a single root node in your tree. The tree gets wider as you add various column-generator nodes to it, and starts to get narrowed back down as your use join-nodes to combine 2 nodes into 1 in the next level of the tree.
Eventually, the last level will contain a single node, typically just the last join-node. Regardless, this last level that only has 1 node is all that remains in the attachableNodes list onces the do/while has run its course. To that last node, we attach the final terminal-node which is responsible for firing the action of the rule once a tuple reaches it. -bob On Thu, 30 May 2002, Maheedhar (STP) wrote: > HI , > > In the > AddRule() method of Builder Class there is a statement > > TupleSource lastNode = (TupleSource) attachableNodes.iterator().next(); > > Coulld U please tell me What the LastNode refers to. What If the > AttchableNodes set has more than one node and what if it does not have any > node? > > > Thank you, > Maheedhar Vishwanathula > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > drools-interest mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/drools-interest > _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ drools-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/drools-interest