From cf0d10a3e6058b5391025ace40fd7f3e035af649 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 22 May 2019 11:16:38 +0200 Subject: [PATCH] IDEMPIERE-3974 Allow processUI to be access from rule scripts / based on patch from Diego Ruiz --- org.adempiere.ui/src/org/compiere/apps/AbstractProcessCtl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.adempiere.ui/src/org/compiere/apps/AbstractProcessCtl.java b/org.adempiere.ui/src/org/compiere/apps/AbstractProcessCtl.java index 0f2c91f501..c0a48f59ad 100644 --- a/org.adempiere.ui/src/org/compiere/apps/AbstractProcessCtl.java +++ b/org.adempiere.ui/src/org/compiere/apps/AbstractProcessCtl.java @@ -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);