Class 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
    • 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

        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
      • 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: