[jbpm-commits] JBoss JBPM SVN: r5807 - in jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm: graph/def and 1 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Oct 27 02:43:39 EDT 2009
Author: alex.guizar at jboss.com
Date: 2009-10-27 02:43:39 -0400 (Tue, 27 Oct 2009)
New Revision: 5807
Modified:
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/db/hibernate/LimitedTextType.java
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/graph/def/Action.java
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/scheduler/def/CreateTimerAction.java
Log:
[JBPM-2603] Restore automatic save of timer actions, part deux
Modified: jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/db/hibernate/LimitedTextType.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/db/hibernate/LimitedTextType.java 2009-10-27 06:34:58 UTC (rev 5806)
+++ jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/db/hibernate/LimitedTextType.java 2009-10-27 06:43:39 UTC (rev 5807)
@@ -44,9 +44,7 @@
public void set(PreparedStatement st, Object value, int index) throws SQLException {
String text = (String) value;
- if (text.length() > limit) text = text.substring(0, limit);
-
- st.setCharacterStream(index, new StringReader(text), text.length());
+ st.setCharacterStream(index, new StringReader(text), limit);
}
public void setParameterValues(Properties parameters) {
Modified: jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/graph/def/Action.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/graph/def/Action.java 2009-10-27 06:34:58 UTC (rev 5806)
+++ jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/graph/def/Action.java 2009-10-27 06:43:39 UTC (rev 5807)
@@ -39,16 +39,16 @@
private static final long serialVersionUID = 1L;
- long id = 0;
- protected String name = null;
+ long id;
+ protected String name;
protected boolean isPropagationAllowed = true;
- protected boolean isAsync = false;
- protected boolean isAsyncExclusive = false;
- protected Action referencedAction = null;
- protected Delegation actionDelegation = null;
- protected String actionExpression = null;
- protected Event event = null;
- protected ProcessDefinition processDefinition = null;
+ protected boolean isAsync;
+ protected boolean isAsyncExclusive;
+ protected Action referencedAction;
+ protected Delegation actionDelegation;
+ protected String actionExpression;
+ protected Event event;
+ protected ProcessDefinition processDefinition;
public Action() {
}
Modified: jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/scheduler/def/CreateTimerAction.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/scheduler/def/CreateTimerAction.java 2009-10-27 06:34:58 UTC (rev 5806)
+++ jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/scheduler/def/CreateTimerAction.java 2009-10-27 06:43:39 UTC (rev 5807)
@@ -43,13 +43,13 @@
public class CreateTimerAction extends Action {
private static final long serialVersionUID = 1L;
- static BusinessCalendar businessCalendar = new BusinessCalendar();
+ static final BusinessCalendar businessCalendar = new BusinessCalendar();
- String timerName = null;
- String dueDate = null;
- String repeat = null;
- String transitionName = null;
- Action timerAction = null;
+ String timerName;
+ String dueDate;
+ String repeat;
+ String transitionName;
+ Action timerAction;
public void read(Element actionElement, JpdlXmlReader jpdlReader) {
timerName = actionElement.attributeValue("name");
More information about the jbpm-commits
mailing list