Class ProcessUtil

java.lang.Object
org.adempiere.util.ProcessUtil

public final class ProcessUtil extends Object
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 Details

    • 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 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:
        true if process completed successfully
      • 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:
        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

        public static boolean startScriptProcess(Properties ctx, ProcessInfo pi, Trx trx)
        Start process written in script (javascript, groovy, etc)
        Parameters:
        ctx -
        pi -
        trx -
        Returns:
        true if process completed successfully
      • startWorkFlow

        public static MWFProcess startWorkFlow(Properties ctx, ProcessInfo pi, int AD_Workflow_ID)
        Start workflow
        Parameters:
        ctx -
        pi -
        AD_Workflow_ID -
        Returns:
        MWFProcess
      • 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:
        true if process completed successfully