Package org.compiere.apps
Class AbstractProcessCtl
- java.lang.Object
-
- org.compiere.apps.AbstractProcessCtl
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
WProcessCtl
public abstract class AbstractProcessCtl extends Object implements Runnable
Process Interface Controller.- Version:
- $Id: ProcessCtl.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
- Author:
- Jorg Janke, Low Heng Sin
- Added support for having description and parameter in one dialog
- Added support to run db process remotely on server, 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
-
-
Constructor Summary
Constructors Constructor Description AbstractProcessCtl(IProcessUI aProcessUI, int WindowNo, ProcessInfo pi, Trx trx)Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected IProcessUIgetParent()protected ProcessInfogetProcessInfo()protected IProcessUIgetProcessMonitor()protected intgetWindowNo()protected booleanisServerProcess()Deprecated.protected abstract voidlock()Lock UI and show Waitingvoidrun()Execute Process Instance and Lock UI.voidstart()Run this process in a new threadprotected abstract voidunlock()Unlock UI and dispose Waiting.protected abstract voidupdateProgressWindowTimerEstimate(int estSeconds)protected abstract voidupdateProgressWindowTitle(String title)
-
-
-
Constructor Detail
-
AbstractProcessCtl
public AbstractProcessCtl(IProcessUI aProcessUI, int WindowNo, ProcessInfo pi, Trx trx)
Constructor- Parameters:
aProcessUI-WindowNo-pi- Process infotrx- Transaction Created in process(), VInvoiceGen.generateInvoices
-
-
Method Detail
-
start
public void start()
Run this process in a new thread
-
run
public void run()
Execute Process Instance and Lock UI. Calls lockUI and unlockUI if parent is a ASyncProcess- Get Process Information - Call Class - Submit SQL Procedure - Run SQL Procedure
-
updateProgressWindowTimerEstimate
protected abstract void updateProgressWindowTimerEstimate(int estSeconds)
-
updateProgressWindowTitle
protected abstract void updateProgressWindowTitle(String title)
-
lock
protected abstract void lock()
Lock UI and show Waiting
-
unlock
protected abstract void unlock()
Unlock UI and dispose Waiting. Called from run()
-
getWindowNo
protected int getWindowNo()
-
getProcessInfo
protected ProcessInfo getProcessInfo()
-
getProcessMonitor
protected IProcessUI getProcessMonitor()
-
getParent
protected IProcessUI getParent()
-
isServerProcess
@Deprecated protected boolean isServerProcess()
Deprecated.
-
-