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

@ -324,7 +324,11 @@ public class MProcess extends X_AD_Process
{
if (log.isLoggable(Level.INFO)) log.info(pi.getClassName());
if (pi.getClassName().toLowerCase().startsWith(MRule.SCRIPT_PREFIX)) {
return ProcessUtil.startScriptProcess(getCtx(), pi, trx);
} else {
return ProcessUtil.startJavaProcess(getCtx(), pi, trx, managedTrx);
}
} // startClass