IDEMPIERE-1165 #resolve Fitnesse and Web Services cannot run script processes

This commit is contained in:
Carlos Ruiz 2013-07-11 10:31:21 -05:00
parent 8ce47a9e01
commit 35e289c3b2
1 changed files with 6 additions and 2 deletions

View File

@ -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