Package org.adempiere.pipo2
Class PackInFolder
- java.lang.Object
-
- org.compiere.process.SvrProcess
-
- org.adempiere.pipo2.PackInFolder
-
- All Implemented Interfaces:
ProcessCall
public class PackInFolder extends SvrProcess
Apply all zip files from a folder following the rules and conventions of Automatic Pack In process This process apply all the pack in files found in a folder recursively - ordered by timestamp. The filename of the pack in files is important, it must follow the following convention: [Timestamp]_[ClientValue][_AdditionalInformation].zip - Timestamp: must be in the format yyyymmddHHMM - ClientValue: case sensitive and compared against AD_Client.Value to find the tenant where the pack in must be applied - AdditionalInformation: Any additional information to identify the zip file NOTE that AD_Client.Value must not contain underscore in order for this process to work. There is a special case for ClientValue, if the ClientValue is ALL-CLIENTS then the 2pack is intended to be applied in all active non-system clients. If there is a need to apply initially in a seed tenant then the ClientValue must take the form ALL-CLIENTS-Seed. For example: 201803151607_ALL-CLIENTS-GardenWorld_Test123.zip- Author:
- Carlos Ruiz
-
-
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 PackInFolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
doIt()
Processprotected void
prepare()
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()
Prepare - e.g., get Parameters.- Specified by:
prepare
in classSvrProcess
-
doIt
protected String doIt() throws Exception
Process- Specified by:
doIt
in classSvrProcess
- Returns:
- info
- Throws:
Exception
-
-