IDEMPIERE-3974 Allow processUI to be access from rule scripts / based on patch from Diego Ruiz
This commit is contained in:
parent
a1a7b80bd0
commit
cf0d10a3e6
|
@ -464,6 +464,7 @@ public abstract class AbstractProcessCtl implements Runnable
|
||||||
if (!started && (!m_IsServerProcess || clientOnly ))
|
if (!started && (!m_IsServerProcess || clientOnly ))
|
||||||
{
|
{
|
||||||
if (m_pi.getClassName().toLowerCase().startsWith(MRule.SCRIPT_PREFIX)) {
|
if (m_pi.getClassName().toLowerCase().startsWith(MRule.SCRIPT_PREFIX)) {
|
||||||
|
m_pi.setProcessUI(m_processUI);
|
||||||
return ProcessUtil.startScriptProcess(Env.getCtx(), m_pi, m_trx);
|
return ProcessUtil.startScriptProcess(Env.getCtx(), m_pi, m_trx);
|
||||||
} else {
|
} else {
|
||||||
return ProcessUtil.startJavaProcess(Env.getCtx(), m_pi, m_trx, true, m_processUI);
|
return ProcessUtil.startJavaProcess(Env.getCtx(), m_pi, m_trx, true, m_processUI);
|
||||||
|
|
Loading…
Reference in New Issue