Package org.adempiere.util
Class ProcessUtil
java.lang.Object
org.adempiere.util.ProcessUtil
Helper methods for server process
- Author:
- Low Heng Sin, Teo Sarca, SC ARHIPAC SERVICE SRL
- BF [ 1757523 ] Server Processes are using Server's context
- BF [ 2528297 ] Poor error message on jasper fail
- BF [ 2530847 ] Report is displayed even if java process fails
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
startDatabaseProcedure
(ProcessInfo processInfo, String ProcedureName, Trx trx) Start database store procedurestatic boolean
startDatabaseProcedure
(ProcessInfo processInfo, String ProcedureName, Trx trx, boolean managedTrx) Start database store procedurestatic boolean
startJavaProcess
(Properties ctx, ProcessInfo pi, Trx trx) static boolean
startJavaProcess
(Properties ctx, ProcessInfo pi, Trx trx, boolean managedTrx) static boolean
startJavaProcess
(Properties ctx, ProcessInfo pi, Trx trx, boolean managedTrx, IProcessUI processMonitor) static boolean
startJavaProcess
(ProcessInfo pi, Trx trx) Deprecated.static boolean
startJavaProcessWithoutTrxClose
(Properties ctx, ProcessInfo pi, Trx trx) Start a java process without closing the given transaction.static boolean
startScriptProcess
(Properties ctx, ProcessInfo pi, Trx trx) Start process written in script (javascript, groovy, etc)static MWFProcess
startWorkFlow
(Properties ctx, ProcessInfo pi, int AD_Workflow_ID) Start workflow
-
Field Details
-
JASPER_STARTER_CLASS
- See Also:
-
-
Method Details
-
startDatabaseProcedure
public static boolean startDatabaseProcedure(ProcessInfo processInfo, String ProcedureName, Trx trx) Start database store procedure- Parameters:
processInfo
-ProcedureName
-trx
-- Returns:
- boolean
-
startDatabaseProcedure
public static boolean startDatabaseProcedure(ProcessInfo processInfo, String ProcedureName, Trx trx, boolean managedTrx) Start database store procedure- Parameters:
processInfo
-ProcedureName
-trx
-managedTrx
- false if trx is managed by caller- Returns:
- boolean
-
startJavaProcess
Deprecated. -
startJavaProcess
- Parameters:
ctx
-pi
-trx
-- Returns:
- true if process completed successfully
-
startJavaProcess
- Parameters:
ctx
-pi
-trx
-managedTrx
- false if trx is managed by caller- Returns:
- true if process completed successfully
-
startJavaProcess
public static boolean startJavaProcess(Properties ctx, ProcessInfo pi, Trx trx, boolean managedTrx, IProcessUI processMonitor) - Parameters:
ctx
-pi
-trx
-managedTrx
- false if trx is managed by caller- Returns:
- true if process completed successfully
-
startScriptProcess
Start process written in script (javascript, groovy, etc)- Parameters:
ctx
-pi
-trx
-- Returns:
- true if process completed successfully
-
startWorkFlow
Start workflow- Parameters:
ctx
-pi
-AD_Workflow_ID
-- Returns:
- MWFProcess
-
startJavaProcessWithoutTrxClose
Start a java process without closing the given transaction. Is used from the workflow engine.- Parameters:
ctx
-pi
-trx
-- Returns:
- true if process completed successfully
-