env.set( EnvironmentName.TRANSACTION_MANAGER,
TransactionManagerServices.getTransactionManager() );
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
Collection<KnowledgePackage> kpkgs = getProcessWorkItems();
kbase.addKnowledgePackages( kpkgs );
Properties properties = new Properties();
properties.setProperty( "drools.commandService",
SingleSessionCommandService.class.getName() );
properties.setProperty( "drools.processInstanceManagerFactory",