Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-481

LeftInputAdater.updateNewNode does incorrect propagation

    XMLWordPrintable

    Details

      Description

      // Get the newly attached TupleSink
      final TupleSink sink = (TupleSink) getTupleSinks().get( getTupleSinks().size() - 1 );

      // Iterate the memory and assert all tuples into the newly attached TupleSink
      final Map memory = (Map) workingMemory.getNodeMemory( this );
      for ( final Iterator it = memory.values().iterator(); it.hasNext(); ) {
      final LinkedList list = (LinkedList) it.next();
      for ( LinkedListNode node = list.getFirst(); node != null; node = node.getNext() )

      { sink.assertTuple( (ReteTuple) ((LinkedListObjectWrapper) node).getObject(), context, workingMemory ); }

      }

      We get the last Sink but then we send through ALL tuples in the list to that single sink. yet we know that each tuple is for a specific sink. we instead should grab the handle and create a new tuple which we add to the list.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                mark.proctor Mark Proctor
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: