diff --git a/client/src/org/compiere/apps/ProcessCtl.java b/client/src/org/compiere/apps/ProcessCtl.java index 07c9cf9f79..9161e01191 100644 --- a/client/src/org/compiere/apps/ProcessCtl.java +++ b/client/src/org/compiere/apps/ProcessCtl.java @@ -58,6 +58,7 @@ import org.compiere.wf.MWFProcess; * @author Teo Sarca, SC ARHIPAC SERVICE SRL *
  • BF [ 1757523 ] Server Processes are using Server's context *
  • FR [ 1807922 ] Pocess threads should have a better name + *
  • BF [ 1960523 ] Server Process functionality not working */ public class ProcessCtl implements Runnable { @@ -550,7 +551,7 @@ public class ProcessCtl implements Runnable { log.fine(AD_Workflow_ID + " - " + m_pi); boolean started = false; - if (DB.isRemoteProcess()) + if (DB.isRemoteProcess() || m_IsServerProcess) { Server server = CConnection.get().getServer(); try @@ -603,7 +604,7 @@ public class ProcessCtl implements Runnable } catch (Exception e) {} } - if (DB.isRemoteProcess() && !clientOnly) + if ((DB.isRemoteProcess() || m_IsServerProcess) && !clientOnly) { Server server = CConnection.get().getServer(); try @@ -668,7 +669,7 @@ public class ProcessCtl implements Runnable log.fine(ProcedureName + "(" + m_pi.getAD_PInstance_ID() + ")"); boolean started = false; String trxName = m_trx != null ? m_trx.getTrxName() : null; - if (DB.isRemoteProcess()) + if (DB.isRemoteProcess() || m_IsServerProcess) { Server server = CConnection.get().getServer(); try