Package org.compiere.process
Class CopyProduct
- java.lang.Object
-
- org.compiere.process.SvrProcess
-
- org.compiere.process.CopyProduct
-
- All Implemented Interfaces:
ProcessCall
public class CopyProduct extends SvrProcess
Process that copies product information such as substitutes, related, prices, downloads etc from another product. Purchase information and accounting is not copied at this moment.- Author:
- Daniel Tamm (usrdno)
-
-
Field Summary
-
Fields inherited from class org.compiere.process.SvrProcess
log, MSG_InvalidArguments, MSG_SaveErrorRowNotFound, PROCESS_INFO_CTX_KEY, PROCESS_UI_CTX_KEY, processUI
-
-
Constructor Summary
Constructors Constructor Description CopyProduct()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdoIt()Perform process.protected voidprepare()Prepare - e.g., get Parameters.-
Methods inherited from class org.compiere.process.SvrProcess
addBufferLog, addLog, addLog, addLog, commit, commitEx, doIt, get_TrxName, getAD_Client_ID, getAD_PInstance_ID, getAD_User_ID, getCtx, getName, getParameter, getProcessInfo, getRecord_ID, getRecord_IDs, getTable_ID, isLocked, lockObject, postProcess, rollback, setProcessUI, startProcess, statusUpdate, unlockObject
-
-
-
-
Method Detail
-
prepare
protected void prepare()
Description copied from class:SvrProcessPrepare - 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:
preparein classSvrProcess
-
doIt
protected String doIt() throws Exception
Description copied from class:SvrProcessPerform process.- Specified by:
doItin classSvrProcess- Returns:
- Message (variables are parsed)
- Throws:
Exception- if not successful e.g. throw new AdempiereUserError ("@FillMandatory@ @C_BankAccount_ID@");
-
-