Order order = new Order( 1,
"bob" );
OrderItem item = new OrderItem( order,
1 );
order.addItem( item );
order.setStatus( new OrderStatus() );
order.getStatus().setActive( true );
org.drools.runtime.rule.FactHandle orderFH = ksession.insert( order );
Order order2 = new Order( 2,
"bob" );
OrderItem item2 = new OrderItem( order,
2 );
order2.addItem( item2 );
order2.setStatus( new OrderStatus() );
order2.getStatus().setActive( true );
org.drools.runtime.rule.FactHandle order2FH = ksession.insert( order2 );
ksession.startProcess( "ruleflow" );