Package org.compiere.process
Class ServerProcessCtl
java.lang.Object
org.compiere.process.ServerProcessCtl
- All Implemented Interfaces:
Runnable
Controller for running of process
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Is java process call will commit/rollback trxstatic ServerProcessCtl
process
(ProcessInfo pi, Trx trx) Run a process
- Get Instance ID - Get Parameters - execute (lock - start process - unlock)static ServerProcessCtl
process
(ProcessInfo pi, Trx trx, boolean managedTrxForJavaProcess) Run a process
- Get Instance ID - Get Parameters - execute (lock - start process - unlock)void
run()
Execute Process Instance and Lock UI.void
setManagedTrxForJavaProcess
(boolean managedTrx) set whether java process call will commit/rollback trx (default is true)void
start()
Deprecated.protected boolean
startDBProcess
(String ProcedureName) Start Database Processprotected boolean
Start Java or Script Process.protected boolean
startWorkflow
(int AD_Workflow_ID) Start Workflow.
-
Constructor Details
-
ServerProcessCtl
Constructor- Parameters:
pi
- Process infotrx
- Transaction
-
-
Method Details
-
process
Run a process
- - Get Instance ID
- - Get Parameters
- - execute (lock - start process - unlock)
- Parameters:
pi
- ProcessInfo process infotrx
- Transaction- Returns:
- worker started ServerProcessCtl instance
-
process
Run a process
- - Get Instance ID
- - Get Parameters
- - execute (lock - start process - unlock)
- Parameters:
pi
- process infotrx
- TransactionmanagedTrxForJavaProcess
- true to perform rollback/commit of transaction- Returns:
- worker started ServerProcessCtl instance
-
start
Deprecated.Run this process in a new thread -
run
public void run()Execute Process Instance and Lock UI.- - Get Process Information
- - Call Class
- - Submit SQL Procedure
- - Run SQL Procedure
-
startWorkflow
protected boolean startWorkflow(int AD_Workflow_ID) Start Workflow.- Parameters:
AD_Workflow_ID
- workflow id- Returns:
- true if started
-
startProcess
protected boolean startProcess()Start Java or Script Process.- Returns:
- true if success
-
startDBProcess
Start Database Process- Parameters:
ProcedureName
- PL/SQL procedure name- Returns:
- true if success
-
setManagedTrxForJavaProcess
public void setManagedTrxForJavaProcess(boolean managedTrx) set whether java process call will commit/rollback trx (default is true)- Parameters:
managedTrx
-
-
isManagedTrxForJavaProcess
public boolean isManagedTrxForJavaProcess()Is java process call will commit/rollback trx- Returns:
- true if java process call will commit/rollback trx
-