Compiere 3.1

org.compiere.apps
Class ProcessCtl

java.lang.Object
  extended by java.lang.Thread
      extended by org.compiere.apps.ProcessCtl
All Implemented Interfaces:
Runnable

public class ProcessCtl
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
ProcessCtl(ASyncProcess parent, ProcessInfo pi, Trx trx)
          Constructor
 
Method Summary
static ProcessCtl process(ASyncProcess parent, int WindowNo, ProcessInfo pi, Trx trx)
          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

ProcessCtl

public ProcessCtl(ASyncProcess parent,
                  ProcessInfo pi,
                  Trx trx)
Constructor

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

process

public static ProcessCtl process(ASyncProcess parent,
                                 int WindowNo,
                                 ProcessInfo pi,
                                 Trx trx)
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

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.