IDEMPIERE-1165 #resolve Fitnesse and Web Services cannot run script processes
This commit is contained in:
parent
8ce47a9e01
commit
35e289c3b2
|
@ -323,8 +323,12 @@ public class MProcess extends X_AD_Process
|
||||||
private boolean startClass (ProcessInfo pi, Trx trx, boolean managedTrx)
|
private boolean startClass (ProcessInfo pi, Trx trx, boolean managedTrx)
|
||||||
{
|
{
|
||||||
if (log.isLoggable(Level.INFO)) log.info(pi.getClassName());
|
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
|
} // startClass
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue