Permalink
Browse files

解决升级到5.12加签报错问题

  • Loading branch information...
1 parent 12aa415 commit 9b4313eae62f6efe01951f5a93bd3ef11e19316c @henryyan committed Jun 21, 2013
View
@@ -9,3 +9,5 @@
.settings
target
.DS_Store
+.idea
+*.iml
View
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.activiti</groupId>
<artifactId>activiti-dry-cargo</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.1.0-SNAPSHOT</version>
<!-- developers -->
<developers>
@@ -19,7 +19,7 @@
<!-- project's properties -->
<properties>
<!-- activiti -->
- <activiti.version>5.11</activiti.version>
+ <activiti.version>5.12</activiti.version>
<!-- spring -->
<spring.version>3.1.2.RELEASE</spring.version>
@@ -46,6 +46,10 @@
<!-- repositores -->
<repositories>
+ <repository>
+ <id>kafeitu</id>
+ <url>http://maven.kafeitu.me/nexus/content/groups/public/</url>
+ </repository>
<repository>
<id>Activiti</id>
<url>https://maven.alfresco.com/nexus/content/groups/public</url>
@@ -2,7 +2,7 @@
import java.util.Arrays;
-import org.activiti.engine.impl.form.AbstractFormType;
+import org.activiti.engine.form.AbstractFormType;
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.StringUtils;
@@ -199,7 +199,7 @@ public void addSign(String taskId, String... userIds) {
// history task
counter = 1;
- ps = connection.prepareStatement("insert into act_hi_taskinst values(?, ?, ?, ?, ?, null, ?, null, null, ?, ?, null, null, null, ?, null)");
+ ps = connection.prepareStatement("insert into act_hi_taskinst values(?, ?, ?, ?, ?, null, ?, null, null, ?, ?, null, null, null, ?, null, null, null)");
ps.setString(counter++, newTaskId.toString());
ps.setString(counter++, processDefinitionId + "'");
ps.setString(counter++, taskDefinitionKey + "'");
@@ -260,7 +260,7 @@ public void addSign(String taskId, String... userIds) {
try {
ps.close();
} catch (SQLException e) {
- // do nothing
+ logger.error("failed on execute sql", e);
}
}
sqlSession.close();

0 comments on commit 9b4313e

Please sign in to comment.