details:   https://code.openbravo.com/erp/devel/pi/rev/a549285cc9f0
changeset: 21149:a549285cc9f0
user:      Adrián Romero <adrianromero <at> openbravo.com>
date:      Tue Sep 17 12:00:46 2013 +0530
summary:   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.

diffstat:

 src/org/openbravo/scheduling/ProcessBundle.java |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 0d3aa8e2d409 -r a549285cc9f0 
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>());

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to