From 81fa88f9f13a77204c7e7fef03dd4b9099b2a500 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 6 Oct 2007 07:59:15 +0000 Subject: [PATCH] BF [ 1807922 ] Pocess threads should have a better name --- client/src/org/compiere/apps/ProcessCtl.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/apps/ProcessCtl.java b/client/src/org/compiere/apps/ProcessCtl.java index 4b9485e922..8f45480353 100644 --- a/client/src/org/compiere/apps/ProcessCtl.java +++ b/client/src/org/compiere/apps/ProcessCtl.java @@ -42,7 +42,9 @@ import org.compiere.wf.*; * - Added support for having description and parameter in one dialog * - Added support to run db process remotely on server * - * @author Teo Sarca, SC ARHIPAC SERVICE SRL - BF [ 1757523 ] + * @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 */ public class ProcessCtl implements Runnable { @@ -234,7 +236,11 @@ public class ProcessCtl implements Runnable */ public void start() { - new Thread(this).start(); + Thread thread = new Thread(this); + // Set thread name - teo_sarca FR [ 1807922 ] + if (m_pi != null) + thread.setName(m_pi.getTitle()+"-"+m_pi.getAD_PInstance_ID()); + thread.start(); } /**