IDEMPIERE-3974 Allow processUI to be access from rule scripts / based on patch from Diego Ruiz

This commit is contained in:
Carlos Ruiz 2019-05-22 11:16:38 +02:00
parent a1a7b80bd0
commit cf0d10a3e6
1 changed files with 1 additions and 0 deletions

View File

@ -464,6 +464,7 @@ public abstract class AbstractProcessCtl implements Runnable
if (!started && (!m_IsServerProcess || clientOnly ))
{
if (m_pi.getClassName().toLowerCase().startsWith(MRule.SCRIPT_PREFIX)) {
m_pi.setProcessUI(m_processUI);
return ProcessUtil.startScriptProcess(Env.getCtx(), m_pi, m_trx);
} else {
return ProcessUtil.startJavaProcess(Env.getCtx(), m_pi, m_trx, true, m_processUI);