[riftsaw-commits] riftsaw SVN: r973 - in branches: RiftSaw-ODE-2.1.x/bpel-runtime/src/main/java/org/apache/ode/bpel/engine and 1 other directory.

riftsaw-commits at lists.jboss.org riftsaw-commits at lists.jboss.org
Wed Sep 22 12:56:09 EDT 2010


Author: objectiser
Date: 2010-09-22 12:56:08 -0400 (Wed, 22 Sep 2010)
New Revision: 973

Modified:
   branches/ODE/RiftSaw-ODE-trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelEngineImpl.java
   branches/ODE/RiftSaw-ODE-trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
   branches/RiftSaw-ODE-2.1.x/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelEngineImpl.java
   branches/RiftSaw-ODE-2.1.x/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
Log:
RIFTSAW-288 - version is stored as a long, so should not be converted to int.

Modified: branches/ODE/RiftSaw-ODE-trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelEngineImpl.java
===================================================================
--- branches/ODE/RiftSaw-ODE-trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelEngineImpl.java	2010-09-22 04:27:24 UTC (rev 972)
+++ branches/ODE/RiftSaw-ODE-trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelEngineImpl.java	2010-09-22 16:56:08 UTC (rev 973)
@@ -762,7 +762,7 @@
     }
 
     public BpelProcess getNewestProcessByType(QName processType) {
-        int v = -1;
+        long v = -1;
         BpelProcess q = null;
         for (BpelProcess p : _activeProcesses.values()) {
             if (p.getProcessType().equals(processType) && v < p.getVersion()) {

Modified: branches/ODE/RiftSaw-ODE-trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
===================================================================
--- branches/ODE/RiftSaw-ODE-trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java	2010-09-22 04:27:24 UTC (rev 972)
+++ branches/ODE/RiftSaw-ODE-trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java	2010-09-22 16:56:08 UTC (rev 973)
@@ -1152,7 +1152,7 @@
         return timeout;
     }
 
-    public int getVersion() {
-        return Integer.parseInt(_pid.getLocalPart().substring(_pid.getLocalPart().lastIndexOf('-') + 1));
+    public long getVersion() {
+        return Long.parseLong(_pid.getLocalPart().substring(_pid.getLocalPart().lastIndexOf('-') + 1));
     }
 }

Modified: branches/RiftSaw-ODE-2.1.x/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelEngineImpl.java
===================================================================
--- branches/RiftSaw-ODE-2.1.x/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelEngineImpl.java	2010-09-22 04:27:24 UTC (rev 972)
+++ branches/RiftSaw-ODE-2.1.x/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelEngineImpl.java	2010-09-22 16:56:08 UTC (rev 973)
@@ -762,7 +762,7 @@
     }
 
     public BpelProcess getNewestProcessByType(QName processType) {
-        int v = -1;
+        long v = -1;
         BpelProcess q = null;
         for (BpelProcess p : _activeProcesses.values()) {
             if (p.getProcessType().equals(processType) && v < p.getVersion()) {

Modified: branches/RiftSaw-ODE-2.1.x/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
===================================================================
--- branches/RiftSaw-ODE-2.1.x/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java	2010-09-22 04:27:24 UTC (rev 972)
+++ branches/RiftSaw-ODE-2.1.x/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java	2010-09-22 16:56:08 UTC (rev 973)
@@ -1152,7 +1152,7 @@
         return timeout;
     }
 
-    public int getVersion() {
-        return Integer.parseInt(_pid.getLocalPart().substring(_pid.getLocalPart().lastIndexOf('-') + 1));
+    public long getVersion() {
+        return Long.parseLong(_pid.getLocalPart().substring(_pid.getLocalPart().lastIndexOf('-') + 1));
     }
 }



More information about the riftsaw-commits mailing list