org.compiere.apps
Class ProcessCtl
java.lang.Object
java.lang.Thread
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
| 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 |
ProcessCtl
public ProcessCtl(ASyncProcess parent,
ProcessInfo pi,
Trx trx)
- Constructor
- Parameters:
parent - Container & ASyncProcesspi - Process infotrx - Transaction
Created in process(), VInvoiceGen.generateInvoices
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 & ContainerWindowNo - window nopi - ProcessInfo process infotrx - 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® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.