PropagationContext pContext = new PropagationContextImpl( wm.getNextPropagationIdCounter(),
PropagationContext.MODIFICATION,
null,
null,
handle );
ModifyPreviousTuples modifyPreviousTuples = new ModifyPreviousTuples( handle.getFirstLeftTuple(),
handle.getFirstRightTuple() );
handle.setFirstLeftTuple( null );
handle.setFirstRightTuple( null );
handle.setLastLeftTuple( null );
handle.setLastRightTuple( null );
((ObjectSink) sink).modifyObject( handle,
modifyPreviousTuples,
pContext,
wm );
modifyPreviousTuples.retractTuples( pContext,
wm );
} else {
List<InternalFactHandle> tlist = (List<InternalFactHandle>) element;
String id = getTupleId( tlist );
LeftTuple tuple = (LeftTuple) context.get( id );