return txm;
}
protected ProcessDAO assertInstanceCleanup(int instances, int activityRecoveries, int correlationSets, int faults, int exchanges, int routes, int messsages, int partnerLinks, int scopes, int variables, int events, int largeData) throws Exception {
initTM();
ProcessInstanceProfileDAO profile = daoConn.createProcessInstanceProfile(getInstance());
assertEquals("Number of instances", instances, profile.findInstancesByProcess().size());
assertEquals("Number of activity recoveries", activityRecoveries, profile.findActivityRecoveriesByInstance().size());
assertEquals("Number of correlation sets", correlationSets, profile.findCorrelationSetsByInstance().size());
assertEquals("Number of faults", faults, profile.findFaultsByInstance().size());
assertEquals("Number of message exchanges", exchanges, profile.findMessageExchangesByInstance().size());
assertEquals("Number of message routes", routes, profile.findMessageRoutesByInstance().size());
assertEquals("Number of messages", messsages, profile.findMessagesByInstance().size());
assertEquals("Number of partner links", partnerLinks, profile.findPartnerLinksByInstance().size());
assertEquals("Number of scopes", scopes, profile.findScopesByInstance().size());
assertEquals("Number of variables", variables, profile.findXmlDataByInstance().size());
assertEquals("Number of events", events, profile.countEventsByInstance());
assertEquals("Number of large data", largeData, getLargeDataCount(largeData) - initialLargeDataCount);
return profile.getProcess();
}