//This is a small ruleset , so we can add a debug listener to see what is going on
workingMemory.addEventListener(
new DebugWorkingMemoryEventListener( ) );
//Let the rule engine know about the facts
workingMemory.assertObject(stockToBuy);
//Let the rule engine do it's stuff!!
workingMemory.fireAllRules( );