|
|
@@ -1296,6 +1296,10 @@ public class WorkflowExecuteServiceImpl implements IWorkflowExecuteService {
|
|
|
session.quietRollback();
|
|
|
}
|
|
|
throw new MyException("【表单id: " + formConfig.getFormId() + "】 提交错误, 请联系管理员!");
|
|
|
+ }finally {
|
|
|
+ for (Session session : sessionList) {
|
|
|
+ session.close();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -1458,6 +1462,10 @@ public class WorkflowExecuteServiceImpl implements IWorkflowExecuteService {
|
|
|
session.quietRollback();
|
|
|
}
|
|
|
throw new MyException("【表单id: " + formConfig.getFormId() + "】 提交错误, 请联系管理员!");
|
|
|
+ }finally {
|
|
|
+ for (Session session : sessionList) {
|
|
|
+ session.close();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|