Class ProcCOFTransmitirNotaExpedicao

java.lang.Object
org.compiere.process.SvrProcess
org.brerp.sped.nfe.process.ProcCOFTransmitirNotaExpedicao
All Implemented Interfaces:
ProcessCall

public class ProcCOFTransmitirNotaExpedicao extends SvrProcess
  • Constructor Details

    • ProcCOFTransmitirNotaExpedicao

      public ProcCOFTransmitirNotaExpedicao()
  • Method Details

    • prepare

      protected void prepare()
      Description copied from class: SvrProcess
      Prepare - e.g., get Parameters.
      
      		ProcessInfoParameter[] para = getParameter();
      		for (int i = 0; i < para.length; i++)
      		{
      			String name = para[i].getParameterName();
      			if (para[i].getParameter() == null)
      				;
      			else if (name.equals("A_Asset_Group_ID"))
      				p_A_Asset_Group_ID = para[i].getParameterAsInt();
      			else if (name.equals("GuaranteeDate"))
      				p_GuaranteeDate = (Timestamp)para[i].getParameter();
      			else if (name.equals("AttachAsset"))
      				p_AttachAsset = "Y".equals(para[i].getParameter());
      			else
      				log.log(Level.SEVERE, "Unknown Parameter: " + name);
      		}
        
      Specified by:
      prepare in class SvrProcess
    • doIt

      protected String doIt() throws Exception
      Description copied from class: SvrProcess
      Perform process.
      Specified by:
      doIt in class SvrProcess
      Returns:
      Message (variables are parsed)
      Throws:
      Exception - if not successful e.g. throw new AdempiereUserError ("@FillMandatory@ @C_BankAccount_ID@");
    • postProcess

      protected void postProcess(boolean success)
      Description copied from class: SvrProcess
      Post process actions (outside trx). Please note that at this point the transaction is committed so you can't rollback. This method is useful if you need to do some custom work when the process complete the work (e.g. open some windows).
      Overrides:
      postProcess in class SvrProcess
      Parameters:
      success - true if the process was success