Class MProcess

    • Constructor Detail

      • MProcess

        public MProcess​(Properties ctx,
                        int AD_Process_ID,
                        String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        AD_Process_ID - process
        trxName - transaction name
      • MProcess

        public MProcess​(Properties ctx,
                        ResultSet rs,
                        String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction name
      • MProcess

        public MProcess​(MProcess copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MProcess get​(int AD_Process_ID)
        Get MProcess from Cache (immutable)
        Parameters:
        AD_Process_ID - id
        Returns:
        MProcess
      • get

        public static MProcess get​(Properties ctx,
                                   int AD_Process_ID)
        Get MProcess from Cache (immutable)
        Parameters:
        ctx - context
        AD_Process_ID - id
        Returns:
        MProcess
      • getCopy

        public static MProcess getCopy​(Properties ctx,
                                       int AD_Process_ID,
                                       String trxName)
        Get updateable copy of MProcess from cache
        Parameters:
        ctx -
        AD_Process_ID -
        trxName -
        Returns:
        MProcess
      • get

        public static MProcess get​(String AD_Process_UU)
        Get MProcess from Cache based on UUID (immutable)
        Parameters:
        AD_Process_UU - UUID
        Returns:
        MProcess
      • get

        public static MProcess get​(Properties ctx,
                                   String AD_Process_UU)
        Get MProcess from Cache based on UUID (immutable)
        Parameters:
        ctx - context
        AD_Process_UU - UUID
        Returns:
        MProcess
      • getFromMenu

        public static MProcess getFromMenu​(Properties ctx,
                                           int AD_Menu_ID)
        Get MProcess from Menu
        Parameters:
        ctx - context
        AD_Menu_ID - id
        Returns:
        MProcess or null
      • getParameters

        public MProcessPara[] getParameters()
        Get Parameters
        Returns:
        parameters
      • getParameter

        public MProcessPara getParameter​(String name)
        Get Parameter with ColumnName
        Parameters:
        name - column name
        Returns:
        parameter or null
      • processIt

        public MPInstance processIt​(int Record_ID,
                                    Trx trx)
        Process w/o parameter
        Parameters:
        Record_ID - record
        trx - transaction
        Returns:
        Process Instance
      • processIt

        public MPInstance processIt​(int Record_ID,
                                    Trx trx,
                                    boolean managedTrx)
        Process w/o parameter
        Parameters:
        Record_ID - record
        trx - transaction
        Returns:
        Process Instance
      • processIt

        public boolean processIt​(ProcessInfo pi,
                                 Trx trx)
        Process It (sync)
        Parameters:
        pi - Process Info
        trx - transaction
        Returns:
        true if OK
      • processIt

        public boolean processIt​(ProcessInfo pi,
                                 Trx trx,
                                 boolean managedTrx)
        Process It (sync)
        Parameters:
        pi - Process Info
        trx - transaction
        Returns:
        true if OK
      • isJavaProcess

        public boolean isJavaProcess()
        Is this a Java Process
        Returns:
        true if java process
      • isDatabaseProcedure

        public boolean isDatabaseProcedure()
        Is this a db procedure
        Returns:
        true if db procedure
      • isForceBackground

        public boolean isForceBackground()
        Is Force Background
        Returns:
        true if force background
      • isForceForeground

        public boolean isForceForeground()
        Is Force Foreground
        Returns:
        true if force foreground
      • isWorkflow

        public boolean isWorkflow()
        Is it a Workflow
        Returns:
        true if Workflow
      • addStatistics

        public void addStatistics​(int seconds)
        Deprecated.
        - use UPDATE instead
        Update Statistics
        Parameters:
        seconds - sec
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success
      • getProcess_ID

        public static int getProcess_ID​(String value,
                                        String trxName)
        Grant independence to GenerateModel from AD_Process_ID
        Parameters:
        value -
        trxName -
        Returns:
      • copyFrom

        public void copyFrom​(MProcess source)
        Copy settings from another process overwrites existing data (including translations) and saves. Not overwritten: name, value, entitytype
        Parameters:
        source -
      • processItWithoutTrxClose

        public boolean processItWithoutTrxClose​(ProcessInfo pi,
                                                Trx trx)
        Process It without closing the given transaction - used from workflow engine.
        Parameters:
        pi - Process Info
        trx - transaction
        Returns:
        true if OK