BF [ 1960523 ] Server Process functionality not working
This commit is contained in:
parent
9e5d5ada4a
commit
ff35be4493
|
|
@ -58,6 +58,7 @@ import org.compiere.wf.MWFProcess;
|
||||||
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
||||||
* <li>BF [ 1757523 ] Server Processes are using Server's context
|
* <li>BF [ 1757523 ] Server Processes are using Server's context
|
||||||
* <li>FR [ 1807922 ] Pocess threads should have a better name
|
* <li>FR [ 1807922 ] Pocess threads should have a better name
|
||||||
|
* <li>BF [ 1960523 ] Server Process functionality not working
|
||||||
*/
|
*/
|
||||||
public class ProcessCtl implements Runnable
|
public class ProcessCtl implements Runnable
|
||||||
{
|
{
|
||||||
|
|
@ -550,7 +551,7 @@ public class ProcessCtl implements Runnable
|
||||||
{
|
{
|
||||||
log.fine(AD_Workflow_ID + " - " + m_pi);
|
log.fine(AD_Workflow_ID + " - " + m_pi);
|
||||||
boolean started = false;
|
boolean started = false;
|
||||||
if (DB.isRemoteProcess())
|
if (DB.isRemoteProcess() || m_IsServerProcess)
|
||||||
{
|
{
|
||||||
Server server = CConnection.get().getServer();
|
Server server = CConnection.get().getServer();
|
||||||
try
|
try
|
||||||
|
|
@ -603,7 +604,7 @@ public class ProcessCtl implements Runnable
|
||||||
} catch (Exception e) {}
|
} catch (Exception e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DB.isRemoteProcess() && !clientOnly)
|
if ((DB.isRemoteProcess() || m_IsServerProcess) && !clientOnly)
|
||||||
{
|
{
|
||||||
Server server = CConnection.get().getServer();
|
Server server = CConnection.get().getServer();
|
||||||
try
|
try
|
||||||
|
|
@ -668,7 +669,7 @@ public class ProcessCtl implements Runnable
|
||||||
log.fine(ProcedureName + "(" + m_pi.getAD_PInstance_ID() + ")");
|
log.fine(ProcedureName + "(" + m_pi.getAD_PInstance_ID() + ")");
|
||||||
boolean started = false;
|
boolean started = false;
|
||||||
String trxName = m_trx != null ? m_trx.getTrxName() : null;
|
String trxName = m_trx != null ? m_trx.getTrxName() : null;
|
||||||
if (DB.isRemoteProcess())
|
if (DB.isRemoteProcess() || m_IsServerProcess)
|
||||||
{
|
{
|
||||||
Server server = CConnection.get().getServer();
|
Server server = CConnection.get().getServer();
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue