Package org.adempiere.util
Class ProcessUtil
- java.lang.Object
-
- org.adempiere.util.ProcessUtil
-
public final class ProcessUtil extends Object
- 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
Fields Modifier and Type Field Description static String
JASPER_STARTER_CLASS
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
startDatabaseProcedure(ProcessInfo processInfo, String ProcedureName, Trx trx)
static boolean
startDatabaseProcedure(ProcessInfo processInfo, String ProcedureName, Trx trx, boolean managedTrx)
static 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)
static MWFProcess
startWorkFlow(Properties ctx, ProcessInfo pi, int AD_Workflow_ID)
-
-
-
Field Detail
-
JASPER_STARTER_CLASS
public static final String JASPER_STARTER_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
startDatabaseProcedure
public static boolean startDatabaseProcedure(ProcessInfo processInfo, String ProcedureName, Trx trx)
- Parameters:
processInfo
-ProcedureName
-trx
-- Returns:
- boolean
-
startDatabaseProcedure
public static boolean startDatabaseProcedure(ProcessInfo processInfo, String ProcedureName, Trx trx, boolean managedTrx)
- Parameters:
processInfo
-ProcedureName
-trx
-managedTrx
- false if trx is managed by caller- Returns:
- boolean
-
startJavaProcess
@Deprecated public static boolean startJavaProcess(ProcessInfo pi, Trx trx)
Deprecated.
-
startJavaProcess
public static boolean startJavaProcess(Properties ctx, ProcessInfo pi, Trx trx)
- Parameters:
ctx
-pi
-trx
-- Returns:
- boolean
-
startJavaProcess
public static boolean startJavaProcess(Properties ctx, ProcessInfo pi, Trx trx, boolean managedTrx)
- Parameters:
ctx
-pi
-trx
-managedTrx
- false if trx is managed by caller- Returns:
- boolean
-
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:
- boolean
-
startScriptProcess
public static boolean startScriptProcess(Properties ctx, ProcessInfo pi, Trx trx)
-
startWorkFlow
public static MWFProcess startWorkFlow(Properties ctx, ProcessInfo pi, int AD_Workflow_ID)
-
startJavaProcessWithoutTrxClose
public static boolean startJavaProcessWithoutTrxClose(Properties ctx, ProcessInfo pi, Trx trx)
Start a java process without closing the given transaction. Is used from the workflow engine.- Parameters:
ctx
-pi
-trx
-- Returns:
-
-