Permalink
Browse files

mysql下act模块事务提交bug修正。

1 parent 11e536c commit 4074f811ac4eac9a43fa2ebcd52355ac8bd17b57 @think-gem think-gem committed Mar 23, 2016
Binary file not shown.
@@ -161,6 +161,7 @@ public void export(String id, HttpServletResponse response) {
/**
* 更新Model分类
*/
+ @Transactional(readOnly = false)
public void updateCategory(String id, String category) {
org.activiti.engine.repository.Model modelData = repositoryService.getModel(id);
modelData.setCategory(category);
@@ -172,6 +173,7 @@ public void updateCategory(String id, String category) {
* @param id
* @return
*/
+ @Transactional(readOnly = false)
public void delete(String id) {
repositoryService.deleteModel(id);
}
@@ -428,6 +428,7 @@ public Task getTask(String taskId){
* @param taskId 任务ID
* @param deleteReason 删除原因
*/
+ @Transactional(readOnly = false)
public void deleteTask(String taskId, String deleteReason){
taskService.deleteTask(taskId, deleteReason);
}
@@ -487,6 +488,7 @@ public void complete(String taskId, String procInsId, String comment, String tit
* 完成第一个任务
* @param procInsId
*/
+ @Transactional(readOnly = false)
public void completeFirstTask(String procInsId){
completeFirstTask(procInsId, null, null, null);
}
@@ -498,6 +500,7 @@ public void completeFirstTask(String procInsId){
* @param title
* @param vars
*/
+ @Transactional(readOnly = false)
public void completeFirstTask(String procInsId, String comment, String title, Map<String, Object> vars){
String userId = UserUtils.getUser().getLoginName();
Task task = taskService.createTaskQuery().taskAssignee(userId).processInstanceId(procInsId).active().singleResult();
@@ -36,6 +36,7 @@
return super.findPage(page, comment);
}
+ @Transactional(readOnly = false)
public void delete(Comment entity, Boolean isRe) {
super.delete(entity);
}

0 comments on commit 4074f81

Please sign in to comment.