final List results = new ArrayList();
session.setGlobal( "results",
results );
StockTickInterface tick1 = new StockTickEvent( 1,
"DROO",
50,
10000 );
StockTickInterface tick2 = new StockTickEvent( 2,
"ACME",
10,
10010 );
StockTickInterface tick3 = new StockTickEvent( 3,
"ACME",
10,
10100 );
StockTickInterface tick4 = new StockTickEvent( 4,
"DROO",
50,
11000 );
InternalFactHandle handle1 = (InternalFactHandle) session.insert( tick1 );