Fixes Issue 0024780: Process type PL/SQL Procedure cannot be executed as scheduled
authorAdrián Romero <adrianromero@openbravo.com>
Tue, 17 Sep 2013 12:00:46 +0530
changeset 21149 a549285cc9f0
parent 21148 0d3aa8e2d409
child 21150 e8206f71dbfc
child 21153 1c53d622fc50
Fixes Issue 0024780: Process type PL/SQL Procedure cannot be executed as scheduled

The scheduler tries to instantiate the abstract class org.openbravo.erpCommon.ad_process.ProcedureProcess.
Instead of tha instantiating the class org.openbravo.erpCommon.ad_process.PinstanceProcedure.
src/org/openbravo/scheduling/ProcessBundle.java
--- a/src/org/openbravo/scheduling/ProcessBundle.java	Tue Sep 17 06:34:30 2013 +0200
+++ b/src/org/openbravo/scheduling/ProcessBundle.java	Tue Sep 17 12:00:46 2013 +0530
@@ -30,7 +30,6 @@
 import org.openbravo.database.SessionInfo;
 import org.openbravo.erpCommon.ad_process.JasperProcess;
 import org.openbravo.erpCommon.ad_process.PinstanceProcedure;
-import org.openbravo.erpCommon.ad_process.ProcedureProcess;
 
 import com.thoughtworks.xstream.XStream;
 import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver;
@@ -316,7 +315,7 @@
 
     } else if (data.procedurename != null && !data.procedurename.equals("")) {
       this.impl = data.procedurename;
-      this.processClass = ProcedureProcess.class;
+      this.processClass = PinstanceProcedure.class;
     }
     // TODO Load parameters - not required as we're still using pinstanceId
     setParams(new HashMap<String, Object>());