tc = new SimpleTransactionContext(DW_DSN);
}else{
tc = instance.getProcessTransactionContext();
}
PerformanceFactDAOType performanceFactDAOType = PerformanceFactDAOType.getInstance(tc);
PerformanceFactDAO performanceFact = performanceFactDAOType.createDAOForInsert();{
performanceFact.setACT_ID(humanActivity.getTracingTag());
performanceFact.setINST_ID(new Long(instance.getInstanceId()));
performanceFact.setROOTINST_ID(new Long(instance.getRootProcessInstanceId()));
performanceFact.setACT_NAME(humanActivity.getName().getText());
performanceFact.setCOST(new Long(humanActivity.getCost()));