pi.setExeStatus(Integer.valueOf(ProcessInstance.STATUS_INIT));
pi.setPtUid(pt.getObjUid());
String ptName = pt.getPtName();
BOInstance bi = pt.getDoBO().getCorrInstance();
if (bi == null) {
t.rollback();
throw new WFException("启动工作流失败:没有与业务表关联!");
}
pi.setInstanceUid(bi.getUid());
if (bi.getName() != null && !bi.getName().equals("N/A")) {
ptName = bi.getName();