From 35e289c3b2f5a8892c20751019cba0dcb58aec44 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 11 Jul 2013 10:31:21 -0500 Subject: [PATCH] IDEMPIERE-1165 #resolve Fitnesse and Web Services cannot run script processes --- org.adempiere.base/src/org/compiere/model/MProcess.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MProcess.java b/org.adempiere.base/src/org/compiere/model/MProcess.java index a3f87f95ee..cad10b3dad 100644 --- a/org.adempiere.base/src/org/compiere/model/MProcess.java +++ b/org.adempiere.base/src/org/compiere/model/MProcess.java @@ -323,8 +323,12 @@ public class MProcess extends X_AD_Process private boolean startClass (ProcessInfo pi, Trx trx, boolean managedTrx) { if (log.isLoggable(Level.INFO)) log.info(pi.getClassName()); - - return ProcessUtil.startJavaProcess(getCtx(), pi, trx, managedTrx); + + if (pi.getClassName().toLowerCase().startsWith(MRule.SCRIPT_PREFIX)) { + return ProcessUtil.startScriptProcess(getCtx(), pi, trx); + } else { + return ProcessUtil.startJavaProcess(getCtx(), pi, trx, managedTrx); + } } // startClass