Adempiere 3.5.2a

org.compiere.www
Class WProcessCtl

java.lang.Object
  extended by java.lang.Thread
      extended by org.compiere.www.WProcessCtl
All Implemented Interfaces:
Runnable

public class WProcessCtl
extends Thread

Process Interface Controller.

Version:
$Id: ProcessCtl.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
Author:
Jorg Janke

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WProcessCtl(Object parent, ProcessInfo pi, Trx trx, Properties wscctx)
          Constructor
 
Method Summary
static WProcessCtl process(Object parent, int WindowNo, ProcessInfo pi, Trx trx, HttpServletRequest request)
          Async Process - Do it all.
 void run()
          Execute Process Instance and Lock UI.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WProcessCtl

public WProcessCtl(Object parent,
                   ProcessInfo pi,
                   Trx trx,
                   Properties wscctx)
Constructor

Parameters:
parent - Container & ASyncProcess
pi - Process info
trx - Transaction Created in process(), VInvoiceGen.generateInvoices
Method Detail

process

public static WProcessCtl process(Object parent,
                                  int WindowNo,
                                  ProcessInfo pi,
                                  Trx trx,
                                  HttpServletRequest request)
Async Process - Do it all. - Get Instance ID - Get Parameters - execute (lock - start process - unlock) Creates a ProcessCtl instance, which calls lockUI and unlockUI if parent is a ASyncProcess
Called from ProcessCtl.startProcess, ProcessDialog.actionPerformed, APanel.cmd_print, APanel.actionButton, VPaySelect.cmd_generate

Parameters:
parent - ASyncProcess & Container
WindowNo - window no
pi - ProcessInfo process info
trx - Transaction
Returns:
worker started ProcessCtl instance or null for workflow

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
        

Specified by:
run in interface Runnable
Overrides:
run in class Thread

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.