Class MTask

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_Task, I_Persistent, Evaluatee

public class MTask extends X_AD_Task
Operating System Task Model
Version:
$Id: MTask.java,v 1.2 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MTask

      public MTask(Properties ctx, String AD_Task_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_Task_UU - UUID key
      trxName - Transaction
    • MTask

      public MTask(Properties ctx, int AD_Task_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_Task_ID - id
      trxName - trx
    • MTask

      public MTask(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - ctx
      rs - result set
      trxName - trx
  • Method Details

    • execute

      public String execute()
      Execute Task and wait
      Returns:
      execution info
    • executeLocal

      public String executeLocal(String cmd)
      Execute command locally and wait
      Parameters:
      cmd - command
      Returns:
      output from execution of command
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_Task
      Returns:
      info
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      Description copied from class: PO
      Called after Save for Post-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - true if it is a new record
      success - true if save operation was success
      Returns:
      if save was a success