diff --git a/org.adempiere.base.process/src/org/adempiere/base/process/AcceptCtxHelpSuggestion.java b/org.adempiere.base.process/src/org/adempiere/base/process/AcceptCtxHelpSuggestion.java index 95e84ef26c..3fd74b2488 100644 --- a/org.adempiere.base.process/src/org/adempiere/base/process/AcceptCtxHelpSuggestion.java +++ b/org.adempiere.base.process/src/org/adempiere/base/process/AcceptCtxHelpSuggestion.java @@ -5,10 +5,10 @@ package org.adempiere.base.process; import java.util.ArrayList; import java.util.List; -import java.util.logging.Level; import org.compiere.model.I_AD_CtxHelpMsg; import org.compiere.model.MCtxHelpMsg; +import org.compiere.model.MProcessPara; import org.compiere.model.Query; import org.compiere.model.X_AD_CtxHelpSuggestion; import org.compiere.process.ProcessInfoParameter; @@ -45,7 +45,7 @@ public class AcceptCtxHelpSuggestion extends SvrProcess { else if (name.equals("IsSaveAsTenantCustomization")) p_isSaveAsTenantCustomization = para.getParameterAsBoolean(); else - log.log(Level.WARNING, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } diff --git a/org.adempiere.base.process/src/org/adempiere/base/process/AcceptFieldSuggestion.java b/org.adempiere.base.process/src/org/adempiere/base/process/AcceptFieldSuggestion.java index a4e9bce6c1..2e6cfd0981 100644 --- a/org.adempiere.base.process/src/org/adempiere/base/process/AcceptFieldSuggestion.java +++ b/org.adempiere.base.process/src/org/adempiere/base/process/AcceptFieldSuggestion.java @@ -5,9 +5,9 @@ package org.adempiere.base.process; import java.util.ArrayList; import java.util.List; -import java.util.logging.Level; import org.compiere.model.MField; +import org.compiere.model.MProcessPara; import org.compiere.model.M_Element; import org.compiere.model.X_AD_FieldSuggestion; import org.compiere.process.ProcessInfoParameter; @@ -47,7 +47,7 @@ public class AcceptFieldSuggestion extends SvrProcess { else if (name.equals("FieldSuggestionTarget")) p_fieldSuggestionTarget = para.getParameterAsString(); else - log.log(Level.WARNING, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } diff --git a/org.adempiere.base.process/src/org/adempiere/process/ASPGenerateFields.java b/org.adempiere.base.process/src/org/adempiere/process/ASPGenerateFields.java index c649bbdf5b..de44f83a83 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/ASPGenerateFields.java +++ b/org.adempiere.base.process/src/org/adempiere/process/ASPGenerateFields.java @@ -78,7 +78,7 @@ public class ASPGenerateFields extends SvrProcess else if (name.equals("ASP_Status")) p_ASP_Status = (String) para.getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } p_ASP_Tab_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/adempiere/process/ASPGenerateLevel.java b/org.adempiere.base.process/src/org/adempiere/process/ASPGenerateLevel.java index 47d169e9cf..53640ed9b8 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/ASPGenerateLevel.java +++ b/org.adempiere.base.process/src/org/adempiere/process/ASPGenerateLevel.java @@ -98,7 +98,7 @@ public class ASPGenerateLevel extends SvrProcess else if (name.equals("IsGenerateFields")) p_IsGenerateFields = para.getParameter().equals("Y"); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } p_ASP_Level_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/adempiere/process/ClientAcctProcessor.java b/org.adempiere.base.process/src/org/adempiere/process/ClientAcctProcessor.java index d36e53bb81..994ee689e8 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/ClientAcctProcessor.java +++ b/org.adempiere.base.process/src/org/adempiere/process/ClientAcctProcessor.java @@ -42,6 +42,7 @@ import org.compiere.acct.DocManager; import org.compiere.model.MAcctSchema; import org.compiere.model.MClient; import org.compiere.model.MCost; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.AdempiereUserError; @@ -86,7 +87,7 @@ public class ClientAcctProcessor extends SvrProcess else if (name.equals("AD_Table_ID")) p_AD_Table_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/adempiere/process/ExpenseTypesFromAccounts.java b/org.adempiere.base.process/src/org/adempiere/process/ExpenseTypesFromAccounts.java index 8e879b5313..ac9b2770a0 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/ExpenseTypesFromAccounts.java +++ b/org.adempiere.base.process/src/org/adempiere/process/ExpenseTypesFromAccounts.java @@ -32,7 +32,6 @@ import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.TreeMap; -import java.util.logging.Level; import org.compiere.model.I_C_ElementValue; import org.compiere.model.I_C_ValidCombination; @@ -42,6 +41,7 @@ import org.compiere.model.MAccount; import org.compiere.model.MElementValue; import org.compiere.model.MPriceList; import org.compiere.model.MPriceListVersion; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProductPrice; import org.compiere.model.Query; @@ -103,7 +103,7 @@ public class ExpenseTypesFromAccounts extends SvrProcess { } else if (name.equals("EndElement")) { m_endElement = para[i].getParameter().toString(); } else { - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/adempiere/process/Export.java b/org.adempiere.base.process/src/org/adempiere/process/Export.java index 29efd9a820..8ed9f695d5 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/Export.java +++ b/org.adempiere.base.process/src/org/adempiere/process/Export.java @@ -44,6 +44,7 @@ import org.compiere.model.MClient; import org.compiere.model.MColumn; import org.compiere.model.MEXPFormat; import org.compiere.model.MEXPFormatLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.PO; import org.compiere.model.X_EXP_FormatLine; @@ -115,7 +116,7 @@ public class Export extends SvrProcess else if (name.equals("AD_Table_ID")) p_AD_Table_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } // TODO - we can get Language from Business Partner diff --git a/org.adempiere.base.process/src/org/adempiere/process/HouseKeeping.java b/org.adempiere.base.process/src/org/adempiere/process/HouseKeeping.java index 6b0b422aae..e7edb65267 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/HouseKeeping.java +++ b/org.adempiere.base.process/src/org/adempiere/process/HouseKeeping.java @@ -37,10 +37,10 @@ import java.sql.ResultSet; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.Date; -import java.util.logging.Level; import org.adempiere.model.GenericPO; import org.compiere.model.MHouseKeeping; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -67,7 +67,7 @@ public class HouseKeeping extends SvrProcess{ else if (name.equals("AD_HouseKeeping_ID")) p_AD_HouseKeeping_ID = parameter[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), parameter[i]); } if (p_AD_HouseKeeping_ID == 0) p_AD_HouseKeeping_ID = getRecord_ID(); diff --git a/org.adempiere.base.process/src/org/adempiere/process/ImmediateBankTransfer.java b/org.adempiere.base.process/src/org/adempiere/process/ImmediateBankTransfer.java index 5c6dd8e3a4..90559dd7cc 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/ImmediateBankTransfer.java +++ b/org.adempiere.base.process/src/org/adempiere/process/ImmediateBankTransfer.java @@ -39,6 +39,7 @@ import org.compiere.model.MBankAccount; import org.compiere.model.MCash; import org.compiere.model.MCashBook; import org.compiere.model.MCashLine; +import org.compiere.model.MProcessPara; import org.compiere.process.DocAction; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -104,7 +105,7 @@ public class ImmediateBankTransfer extends SvrProcess else if (name.equals("DateAcct")) p_DateAcct = (Timestamp)para[i].getParameter(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/adempiere/process/ImportPriceList.java b/org.adempiere.base.process/src/org/adempiere/process/ImportPriceList.java index a7cbcb9766..a7e771fd25 100755 --- a/org.adempiere.base.process/src/org/adempiere/process/ImportPriceList.java +++ b/org.adempiere.base.process/src/org/adempiere/process/ImportPriceList.java @@ -31,6 +31,7 @@ import java.util.logging.Level; import org.compiere.model.MPriceList; import org.compiere.model.MPriceListVersion; +import org.compiere.model.MProcessPara; import org.compiere.model.MProductPrice; import org.compiere.model.X_I_PriceList; import org.compiere.model.X_M_ProductPriceVendorBreak; @@ -77,7 +78,7 @@ public class ImportPriceList extends SvrProcess else if (name.equals("IsImportPriceLimit")) p_importPriceLimit = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/adempiere/process/InOutGenerateRMA.java b/org.adempiere.base.process/src/org/adempiere/process/InOutGenerateRMA.java index cf753b6dc8..362828dcc0 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/InOutGenerateRMA.java +++ b/org.adempiere.base.process/src/org/adempiere/process/InOutGenerateRMA.java @@ -28,6 +28,7 @@ import org.compiere.model.I_C_InvoiceLine; import org.compiere.model.MInOut; import org.compiere.model.MInOutLine; import org.compiere.model.MInvoiceLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MRMA; import org.compiere.model.MRMALine; import org.compiere.model.Query; @@ -78,7 +79,7 @@ public class InOutGenerateRMA extends SvrProcess else if (name.equals("MovementDate")) p_movementDate = para[i].getParameterAsTimestamp(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (p_movementDate == null) { p_movementDate = Env.getContextAsDate(getCtx(), Env.DATE); diff --git a/org.adempiere.base.process/src/org/adempiere/process/InitialClientSetup.java b/org.adempiere.base.process/src/org/adempiere/process/InitialClientSetup.java index 2288959bcf..cfdf8a70cb 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/InitialClientSetup.java +++ b/org.adempiere.base.process/src/org/adempiere/process/InitialClientSetup.java @@ -36,6 +36,7 @@ import org.adempiere.exceptions.AdempiereException; import org.compiere.Adempiere; import org.compiere.model.MCity; import org.compiere.model.MCurrency; +import org.compiere.model.MProcessPara; import org.compiere.model.MSetup; import org.compiere.model.MSysConfig; import org.compiere.print.PrintUtil; @@ -162,7 +163,7 @@ public class InitialClientSetup extends SvrProcess else if (name.equals("NormalUserEmail")) p_NormalUserEmail = (String) para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/adempiere/process/InvoiceGenerateRMA.java b/org.adempiere.base.process/src/org/adempiere/process/InvoiceGenerateRMA.java index 9e1427cab3..c6c7648ee9 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/InvoiceGenerateRMA.java +++ b/org.adempiere.base.process/src/org/adempiere/process/InvoiceGenerateRMA.java @@ -26,6 +26,7 @@ import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MRMA; import org.compiere.model.MRMALine; import org.compiere.process.DocAction; @@ -71,7 +72,7 @@ public class InvoiceGenerateRMA extends SvrProcess else if (name.equals("DocAction")) p_docAction = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_dateinvoiced = Env.getContextAsDate(getCtx(), Env.DATE); diff --git a/org.adempiere.base.process/src/org/adempiere/process/PrepareMigrationScripts.java b/org.adempiere.base.process/src/org/adempiere/process/PrepareMigrationScripts.java index e6e574392b..ab22fc099f 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/PrepareMigrationScripts.java +++ b/org.adempiere.base.process/src/org/adempiere/process/PrepareMigrationScripts.java @@ -40,6 +40,7 @@ import java.util.Scanner; import java.util.logging.Level; import org.compiere.Adempiere; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.DB; @@ -271,7 +272,7 @@ public class PrepareMigrationScripts extends SvrProcess { else if (name.equals("ScriptsPath")) path = (String) para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/adempiere/process/UpdateRoleMenu.java b/org.adempiere.base.process/src/org/adempiere/process/UpdateRoleMenu.java index 382f5aefc8..fb34afe72f 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/UpdateRoleMenu.java +++ b/org.adempiere.base.process/src/org/adempiere/process/UpdateRoleMenu.java @@ -3,8 +3,8 @@ package org.adempiere.process; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Properties; -import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRoleMenu; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -31,7 +31,7 @@ public class UpdateRoleMenu extends SvrProcess } else { - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/compiere/install/LanguageMaintenance.java b/org.adempiere.base.process/src/org/compiere/install/LanguageMaintenance.java index 99e2a08e26..e2ef29fc62 100644 --- a/org.adempiere.base.process/src/org/compiere/install/LanguageMaintenance.java +++ b/org.adempiere.base.process/src/org/compiere/install/LanguageMaintenance.java @@ -19,6 +19,7 @@ package org.compiere.install; import java.util.logging.Level; import org.compiere.model.MLanguage; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -61,7 +62,7 @@ public class LanguageMaintenance extends SvrProcess else if (name.equals("MaintenanceMode")) p_MaintenanceMode = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_Language_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/AD_PrintPaper_Default.java b/org.adempiere.base.process/src/org/compiere/process/AD_PrintPaper_Default.java index 4b21a47448..42fc7600b4 100644 --- a/org.adempiere.base.process/src/org/compiere/process/AD_PrintPaper_Default.java +++ b/org.adempiere.base.process/src/org/compiere/process/AD_PrintPaper_Default.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.util.DB; /** @@ -50,7 +51,7 @@ public class AD_PrintPaper_Default extends SvrProcess else if (name.equals("AD_Client_ID")) p_AD_Client_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_Record_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/AcctSchemaCopyAcct.java b/org.adempiere.base.process/src/org/compiere/process/AcctSchemaCopyAcct.java index 7dd64c957f..e21c0c57cf 100644 --- a/org.adempiere.base.process/src/org/compiere/process/AcctSchemaCopyAcct.java +++ b/org.adempiere.base.process/src/org/compiere/process/AcctSchemaCopyAcct.java @@ -24,6 +24,7 @@ import org.compiere.model.MAcctSchema; import org.compiere.model.MAcctSchemaDefault; import org.compiere.model.MAcctSchemaElement; import org.compiere.model.MAcctSchemaGL; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereSystemError; import org.compiere.util.AdempiereUserError; import org.compiere.util.KeyNamePair; @@ -54,7 +55,7 @@ public class AcctSchemaCopyAcct extends SvrProcess else if (name.equals("C_AcctSchema_ID")) p_SourceAcctSchema_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_TargetAcctSchema_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/AcctSchemaDefaultCopy.java b/org.adempiere.base.process/src/org/compiere/process/AcctSchemaDefaultCopy.java index 5bdbe365d2..3fe79edfd1 100644 --- a/org.adempiere.base.process/src/org/compiere/process/AcctSchemaDefaultCopy.java +++ b/org.adempiere.base.process/src/org/compiere/process/AcctSchemaDefaultCopy.java @@ -23,6 +23,7 @@ import org.adempiere.process.UUIDGenerator; import org.compiere.model.MAcctSchema; import org.compiere.model.MAcctSchemaDefault; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MProductCategoryAcct; import org.compiere.model.PO; import org.compiere.model.X_C_BP_Customer_Acct; @@ -69,7 +70,7 @@ public class AcctSchemaDefaultCopy extends SvrProcess else if (name.equals("CopyOverwriteAcct")) p_CopyOverwriteAcct = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/Aging.java b/org.adempiere.base.process/src/org/compiere/process/Aging.java index ec66705a0a..d75fcc5692 100644 --- a/org.adempiere.base.process/src/org/compiere/process/Aging.java +++ b/org.adempiere.base.process/src/org/compiere/process/Aging.java @@ -25,6 +25,7 @@ import java.util.logging.Level; import org.adempiere.exceptions.DBException; import org.compiere.model.MAging; +import org.compiere.model.MProcessPara; import org.compiere.model.MRole; import org.compiere.util.DB; import org.compiere.util.TimeUtil; @@ -85,7 +86,7 @@ public class Aging extends SvrProcess else if (name.equals("IsListInvoices")) p_IsListInvoices = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (p_StatementDate == null) p_StatementDate = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base.process/src/org/compiere/process/AllocationAuto.java b/org.adempiere.base.process/src/org/compiere/process/AllocationAuto.java index a436a9057f..b8c82ea535 100644 --- a/org.adempiere.base.process/src/org/compiere/process/AllocationAuto.java +++ b/org.adempiere.base.process/src/org/compiere/process/AllocationAuto.java @@ -30,6 +30,7 @@ import org.compiere.model.MInvoice; import org.compiere.model.MPaySelectionCheck; import org.compiere.model.MPaySelectionLine; import org.compiere.model.MPayment; +import org.compiere.model.MProcessPara; import org.compiere.model.Query; import org.compiere.util.AdempiereSystemError; import org.compiere.util.Env; @@ -84,7 +85,7 @@ public class AllocationAuto extends SvrProcess else if (name.equals("APAR")) p_APAR = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/AllocationReset.java b/org.adempiere.base.process/src/org/compiere/process/AllocationReset.java index 96e10354cc..9f0a64d176 100644 --- a/org.adempiere.base.process/src/org/compiere/process/AllocationReset.java +++ b/org.adempiere.base.process/src/org/compiere/process/AllocationReset.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MAllocationHdr; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.DB; import org.compiere.util.Env; @@ -79,7 +80,7 @@ public class AllocationReset extends SvrProcess else if (name.equals("AllAllocations")) p_AllAllocations = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if ( !p_AllAllocations && getTable_ID() == MAllocationHdr.Table_ID && getRecord_ID() > 0 ) diff --git a/org.adempiere.base.process/src/org/compiere/process/AssetDelivery.java b/org.adempiere.base.process/src/org/compiere/process/AssetDelivery.java index 2496fe161b..bf3ff98833 100644 --- a/org.adempiere.base.process/src/org/compiere/process/AssetDelivery.java +++ b/org.adempiere.base.process/src/org/compiere/process/AssetDelivery.java @@ -26,6 +26,7 @@ import org.compiere.model.MAsset; import org.compiere.model.MAssetDelivery; import org.compiere.model.MClient; import org.compiere.model.MMailText; +import org.compiere.model.MProcessPara; import org.compiere.model.MProductDownload; import org.compiere.model.MUser; import org.compiere.model.MUserMail; @@ -81,7 +82,7 @@ public class AssetDelivery extends SvrProcess else if (name.equals("AttachAsset")) m_AttachAsset = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (m_GuaranteeDate == null) m_GuaranteeDate = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base.process/src/org/compiere/process/BOMFlagValidate.java b/org.adempiere.base.process/src/org/compiere/process/BOMFlagValidate.java index 3ff85fa00c..735716fb55 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BOMFlagValidate.java +++ b/org.adempiere.base.process/src/org/compiere/process/BOMFlagValidate.java @@ -3,8 +3,8 @@ package org.compiere.process; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; -import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.util.DB; import org.compiere.util.Env; @@ -27,7 +27,7 @@ public class BOMFlagValidate extends SvrProcess { else if (name.equals("M_Product_Category_ID")) p_M_Product_Category_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/compiere/process/BOMValidate.java b/org.adempiere.base.process/src/org/compiere/process/BOMValidate.java index c484e1d30a..1edff5a244 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BOMValidate.java +++ b/org.adempiere.base.process/src/org/compiere/process/BOMValidate.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import org.compiere.model.MBOM; import org.compiere.model.MBOMProduct; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProductBOM; import org.compiere.util.DB; @@ -67,7 +68,7 @@ public class BOMValidate extends SvrProcess else if (name.equals("IsReValidate")) p_IsReValidate = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_M_Product_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/BOMVerify.java b/org.adempiere.base.process/src/org/compiere/process/BOMVerify.java index ceb0071327..625a68cc93 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BOMVerify.java +++ b/org.adempiere.base.process/src/org/compiere/process/BOMVerify.java @@ -67,7 +67,7 @@ public class BOMVerify extends SvrProcess else if (name.equals("IsReValidate")) p_IsReValidate = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if ( p_M_Product_ID == 0 ) p_M_Product_ID = getRecord_ID(); diff --git a/org.adempiere.base.process/src/org/compiere/process/BPGroupAcctCopy.java b/org.adempiere.base.process/src/org/compiere/process/BPGroupAcctCopy.java index 368c6f773a..1271f2570c 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BPGroupAcctCopy.java +++ b/org.adempiere.base.process/src/org/compiere/process/BPGroupAcctCopy.java @@ -20,6 +20,7 @@ import java.math.BigDecimal; import java.util.logging.Level; import org.compiere.model.MAcctSchema; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereSystemError; import org.compiere.util.DB; @@ -54,7 +55,7 @@ public class BPGroupAcctCopy extends SvrProcess else if (name.equals("C_AcctSchema_ID")) p_C_AcctSchema_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/BPartnerOrgLink.java b/org.adempiere.base.process/src/org/compiere/process/BPartnerOrgLink.java index c57719a727..e88f11ffd8 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BPartnerOrgLink.java +++ b/org.adempiere.base.process/src/org/compiere/process/BPartnerOrgLink.java @@ -23,6 +23,7 @@ import org.compiere.model.MBPartnerLocation; import org.compiere.model.MLocator; import org.compiere.model.MOrg; import org.compiere.model.MOrgInfo; +import org.compiere.model.MProcessPara; import org.compiere.model.MRole; import org.compiere.model.MRoleOrgAccess; import org.compiere.model.MWarehouse; @@ -67,7 +68,7 @@ public class BPartnerOrgLink extends SvrProcess else if (name.equals("AD_Role_ID")) p_AD_Role_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_BPartner_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/BPartnerOrgUnLink.java b/org.adempiere.base.process/src/org/compiere/process/BPartnerOrgUnLink.java index 93083a683b..a2089b39e2 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BPartnerOrgUnLink.java +++ b/org.adempiere.base.process/src/org/compiere/process/BPartnerOrgUnLink.java @@ -20,6 +20,7 @@ import java.math.BigDecimal; import java.util.logging.Level; import org.compiere.model.MBPartner; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.Msg; @@ -49,7 +50,7 @@ public class BPartnerOrgUnLink extends SvrProcess else if (name.equals("C_BPartner_ID")) p_C_BPartner_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/BPartnerValidate.java b/org.adempiere.base.process/src/org/compiere/process/BPartnerValidate.java index e429cbbd37..00a5008580 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BPartnerValidate.java +++ b/org.adempiere.base.process/src/org/compiere/process/BPartnerValidate.java @@ -25,6 +25,7 @@ import org.compiere.model.I_C_BPartner; import org.compiere.model.MBPartner; import org.compiere.model.MInvoice; import org.compiere.model.MPayment; +import org.compiere.model.MProcessPara; import org.compiere.model.Query; import org.compiere.util.AdempiereUserError; import org.compiere.util.Msg; @@ -62,7 +63,7 @@ public class BPartnerValidate extends SvrProcess else if (name.equals("C_BP_Group_ID")) p_C_BP_Group_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/BankStatementMatcher.java b/org.adempiere.base.process/src/org/compiere/process/BankStatementMatcher.java index 8ee42c2537..9a5d4d03ac 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BankStatementMatcher.java +++ b/org.adempiere.base.process/src/org/compiere/process/BankStatementMatcher.java @@ -23,6 +23,7 @@ import org.compiere.impexp.BankStatementMatchInfo; import org.compiere.model.MBankStatement; import org.compiere.model.MBankStatementLine; import org.compiere.model.MBankStatementMatcher; +import org.compiere.model.MProcessPara; import org.compiere.model.X_I_BankStatement; /** @@ -45,11 +46,10 @@ public class BankStatementMatcher extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_matchers = MBankStatementMatcher.getMatchers(getCtx(), get_TrxName()); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/BankStatementPayment.java b/org.adempiere.base.process/src/org/compiere/process/BankStatementPayment.java index 82b4554909..4dd72a8273 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BankStatementPayment.java +++ b/org.adempiere.base.process/src/org/compiere/process/BankStatementPayment.java @@ -24,6 +24,7 @@ import org.compiere.model.MBankStatement; import org.compiere.model.MBankStatementLine; import org.compiere.model.MInvoice; import org.compiere.model.MPayment; +import org.compiere.model.MProcessPara; import org.compiere.model.X_I_BankStatement; import org.compiere.util.AdempiereSystemError; import org.compiere.util.AdempiereUserError; @@ -47,11 +48,10 @@ public class BankStatementPayment extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ChangeLogProcess.java b/org.adempiere.base.process/src/org/compiere/process/ChangeLogProcess.java index 886dedc456..5c9dda25f6 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ChangeLogProcess.java +++ b/org.adempiere.base.process/src/org/compiere/process/ChangeLogProcess.java @@ -24,6 +24,7 @@ import java.util.logging.Level; import org.compiere.model.MChangeLog; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.util.DB; import org.compiere.util.DisplayType; @@ -98,7 +99,7 @@ public class ChangeLogProcess extends SvrProcess else if (name.equals("SetCustomization")) p_SetCustomization = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_ChangeLog_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ColumnEncryption.java b/org.adempiere.base.process/src/org/compiere/process/ColumnEncryption.java index 50bfc6fbf3..d90d13a255 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ColumnEncryption.java +++ b/org.adempiere.base.process/src/org/compiere/process/ColumnEncryption.java @@ -33,6 +33,7 @@ import java.util.logging.Level; import org.compiere.db.AdempiereDatabase; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.util.AdempiereUserError; import org.compiere.util.CacheMgt; @@ -96,7 +97,7 @@ public class ColumnEncryption extends SvrProcess { else if (name.equals("TestValue")) p_TestValue = (String) para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_Column_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ColumnSync.java b/org.adempiere.base.process/src/org/compiere/process/ColumnSync.java index e772b2e836..d35316485a 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ColumnSync.java +++ b/org.adempiere.base.process/src/org/compiere/process/ColumnSync.java @@ -27,6 +27,7 @@ import java.util.List; import java.util.logging.Level; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.Query; import org.compiere.util.AdempiereUserError; @@ -63,8 +64,7 @@ public class ColumnSync extends SvrProcess switch (name) { case "DateFrom": p_DateFrom = para.getParameterAsTimestamp(); break; default: - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); break; } } diff --git a/org.adempiere.base.process/src/org/compiere/process/CommissionAPInvoice.java b/org.adempiere.base.process/src/org/compiere/process/CommissionAPInvoice.java index b7a226dd0c..49121a2553 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CommissionAPInvoice.java +++ b/org.adempiere.base.process/src/org/compiere/process/CommissionAPInvoice.java @@ -25,6 +25,7 @@ import org.compiere.model.MCommissionRun; import org.compiere.model.MDocType; import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine; +import org.compiere.model.MProcessPara; import org.compiere.util.Env; import org.compiere.util.Msg; @@ -45,11 +46,10 @@ public class CommissionAPInvoice extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CommissionCalc.java b/org.adempiere.base.process/src/org/compiere/process/CommissionCalc.java index f4203958ac..42bc6e621c 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CommissionCalc.java +++ b/org.adempiere.base.process/src/org/compiere/process/CommissionCalc.java @@ -30,6 +30,7 @@ import org.compiere.model.MCommissionDetail; import org.compiere.model.MCommissionLine; import org.compiere.model.MCommissionRun; import org.compiere.model.MCurrency; +import org.compiere.model.MProcessPara; import org.compiere.model.MUser; import org.compiere.util.AdempiereSystemError; import org.compiere.util.AdempiereUserError; @@ -66,7 +67,7 @@ public class CommissionCalc extends SvrProcess else if (name.equals("StartDate")) p_StartDate = (Timestamp)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CommissionCopy.java b/org.adempiere.base.process/src/org/compiere/process/CommissionCopy.java index 7f17b7f7b0..3ad8fb81a7 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CommissionCopy.java +++ b/org.adempiere.base.process/src/org/compiere/process/CommissionCopy.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.util.logging.Level; import org.compiere.model.MCommission; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; @@ -50,7 +51,7 @@ public class CommissionCopy extends SvrProcess else if (name.equals("C_Commission_ID")) p_C_Commission_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_CommissionTo_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ConvertLead.java b/org.adempiere.base.process/src/org/compiere/process/ConvertLead.java index 2b949d994d..d66f8f3713 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ConvertLead.java +++ b/org.adempiere.base.process/src/org/compiere/process/ConvertLead.java @@ -20,7 +20,6 @@ package org.compiere.process; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.List; -import java.util.logging.Level; import org.adempiere.exceptions.FillMandatoryException; import org.compiere.model.I_C_ContactActivity; @@ -28,6 +27,7 @@ import org.compiere.model.MBPartner; import org.compiere.model.MBPartnerLocation; import org.compiere.model.MLocation; import org.compiere.model.MOpportunity; +import org.compiere.model.MProcessPara; import org.compiere.model.MUser; import org.compiere.model.PO; import org.compiere.model.Query; @@ -196,7 +196,7 @@ public class ConvertLead extends SvrProcess { p_C_Currency_ID = para.getParameterAsInt(); else { - log.log(Level.WARNING, "Unknown parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } if ( MUser.Table_ID == getTable_ID() ) diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyColumnsFromTable.java b/org.adempiere.base.process/src/org/compiere/process/CopyColumnsFromTable.java index 22c0802b7b..3ae8dc3242 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyColumnsFromTable.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyColumnsFromTable.java @@ -18,6 +18,7 @@ package org.compiere.process; import java.util.logging.Level; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.M_Element; import org.compiere.model.PO; @@ -57,7 +58,7 @@ public class CopyColumnsFromTable extends SvrProcess else if (name.equals("AD_Table_ID")) p_source_AD_Table_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_target_AD_Table_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyComponentsFromView.java b/org.adempiere.base.process/src/org/compiere/process/CopyComponentsFromView.java index 1348568582..fd426b16d7 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyComponentsFromView.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyComponentsFromView.java @@ -26,6 +26,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.MViewColumn; import org.compiere.model.MViewComponent; @@ -65,7 +66,7 @@ public class CopyComponentsFromView extends SvrProcess { else if (name.equals("AD_Table_ID")) p_source_AD_Table_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_target_AD_Table_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyFromBankStmt.java b/org.adempiere.base.process/src/org/compiere/process/CopyFromBankStmt.java index cd0f1a8683..a4eed8cfc0 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyFromBankStmt.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyFromBankStmt.java @@ -22,6 +22,7 @@ import java.util.logging.Level; import org.compiere.model.MBankStatement; import org.compiere.model.MBankStatementLine; import org.compiere.model.MPayment; +import org.compiere.model.MProcessPara; import org.compiere.util.DB; /** @@ -50,7 +51,7 @@ public class CopyFromBankStmt extends SvrProcess else if (name.equals("C_BankStatement_ID")) m_C_BankStatement_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyFromInvoice.java b/org.adempiere.base.process/src/org/compiere/process/CopyFromInvoice.java index 34219679c2..f36f0cc50b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyFromInvoice.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyFromInvoice.java @@ -20,6 +20,7 @@ import java.math.BigDecimal; import java.util.logging.Level; import org.compiere.model.MInvoice; +import org.compiere.model.MProcessPara; /** * Copy Invoice Lines @@ -46,7 +47,7 @@ public class CopyFromInvoice extends SvrProcess else if (name.equals("C_Invoice_ID")) m_C_Invoice_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyFromJournal.java b/org.adempiere.base.process/src/org/compiere/process/CopyFromJournal.java index 2ac42cebc3..28cacdb743 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyFromJournal.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyFromJournal.java @@ -21,6 +21,7 @@ import java.math.BigDecimal; import java.util.logging.Level; import org.compiere.model.MJournalBatch; +import org.compiere.model.MProcessPara; /** * Copy GL Batch Journal/Lines @@ -47,7 +48,7 @@ public class CopyFromJournal extends SvrProcess else if (name.equals("GL_JournalBatch_ID")) m_GL_JournalBatch_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyFromJournalDoc.java b/org.adempiere.base.process/src/org/compiere/process/CopyFromJournalDoc.java index 726624add0..c8e6bf38f6 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyFromJournalDoc.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyFromJournalDoc.java @@ -18,6 +18,7 @@ import java.math.BigDecimal; import java.util.logging.Level; import org.compiere.model.MJournal; +import org.compiere.model.MProcessPara; /** * Copy GL Journal/Lines @@ -43,7 +44,7 @@ public class CopyFromJournalDoc extends SvrProcess else if (name.equals("GL_Journal_ID")) m_GL_Journal_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyFromOrder.java b/org.adempiere.base.process/src/org/compiere/process/CopyFromOrder.java index ad7b4fd8d5..1f6939dc97 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyFromOrder.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyFromOrder.java @@ -20,6 +20,7 @@ import java.math.BigDecimal; import java.util.logging.Level; import org.compiere.model.MOrder; +import org.compiere.model.MProcessPara; /** * Copy Order Lines @@ -47,7 +48,7 @@ public class CopyFromOrder extends SvrProcess else if (name.equals("C_Order_ID")) p_C_Order_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyFromPackOut.java b/org.adempiere.base.process/src/org/compiere/process/CopyFromPackOut.java index 4da8e8d2ca..aa6c84ef9a 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyFromPackOut.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyFromPackOut.java @@ -27,6 +27,7 @@ package org.compiere.process; import java.util.logging.Level; import org.compiere.model.MPackageExp; +import org.compiere.model.MProcessPara; /** * Copy Package Details from another Pack Out @@ -49,8 +50,7 @@ public class CopyFromPackOut extends SvrProcess { p_AD_Package_Exp_ID = para.getParameterAsInt(); break; default: - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); break; } } diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyFromProject.java b/org.adempiere.base.process/src/org/compiere/process/CopyFromProject.java index d7d6f6f14e..ca0ea87b29 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyFromProject.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyFromProject.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MProject; /** @@ -46,7 +47,7 @@ public class CopyFromProject extends SvrProcess else if (name.equals("C_Project_ID")) m_C_Project_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyInfoWindowColumns.java b/org.adempiere.base.process/src/org/compiere/process/CopyInfoWindowColumns.java index eda9aa7d76..fa2c25dd04 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyInfoWindowColumns.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyInfoWindowColumns.java @@ -29,6 +29,7 @@ import java.util.logging.Level; import org.compiere.model.MInfoColumn; import org.compiere.model.MInfoWindow; +import org.compiere.model.MProcessPara; import org.compiere.model.PO; import org.compiere.util.AdempiereSystemError; @@ -64,7 +65,7 @@ public class CopyInfoWindowColumns extends SvrProcess else if (name.equals("AD_InfoWindow_ID")) p_source_AD_InfoWindow_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_target_AD_InfoWindow_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyOrder.java b/org.adempiere.base.process/src/org/compiere/process/CopyOrder.java index f95945ce9a..e6de9f7b44 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyOrder.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyOrder.java @@ -22,6 +22,7 @@ import java.util.logging.Level; import org.compiere.model.MDocType; import org.compiere.model.MOrder; +import org.compiere.model.MProcessPara; /** * Copy Order and optionally close @@ -61,7 +62,7 @@ public class CopyOrder extends SvrProcess else if (name.equals("IsCloseDocument")) p_IsCloseDocument = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyProduct.java b/org.adempiere.base.process/src/org/compiere/process/CopyProduct.java index 29005c72a5..c0fb44c46a 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyProduct.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyProduct.java @@ -5,6 +5,7 @@ import java.util.List; import java.util.logging.Level; import org.compiere.model.MBPartnerProduct; +import org.compiere.model.MProcessPara; import org.compiere.model.MProductDownload; import org.compiere.model.MProductPrice; import org.compiere.model.Query; @@ -39,7 +40,7 @@ public class CopyProduct extends SvrProcess { else if (name.equals("M_Product_ID")) m_copyFromId = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyReportProcess.java b/org.adempiere.base.process/src/org/compiere/process/CopyReportProcess.java index 3062d72986..b74819d6ff 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyReportProcess.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyReportProcess.java @@ -15,10 +15,9 @@ *****************************************************************************/ package org.compiere.process; -import java.util.logging.Level; - import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MProcess; +import org.compiere.model.MProcessPara; import org.compiere.util.Msg; /** @@ -62,7 +61,7 @@ public class CopyReportProcess extends SvrProcess { else if ( para.equals("AD_Process_To_ID")) targetId = parameter.getParameterAsInt(); else - log.log(Level.WARNING, "Unknown paramter: " + para); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), parameter); } if ( targetId == 0 ) diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyRole.java b/org.adempiere.base.process/src/org/compiere/process/CopyRole.java index 8ed1c23c83..b9b1ecb2d7 100755 --- a/org.adempiere.base.process/src/org/compiere/process/CopyRole.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyRole.java @@ -23,6 +23,7 @@ import java.math.BigDecimal; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.I_AD_Role_Included; +import org.compiere.model.MProcessPara; import org.compiere.model.MRole; import org.compiere.util.DB; import org.compiere.util.Env; @@ -65,6 +66,8 @@ public class CopyRole extends SvrProcess m_AD_Client_ID = para[i].getParameterAsInt(); else if (name.equals("AD_Org_ID")) m_AD_Org_ID = para[i].getParameterAsInt(); + else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CostCreate.java b/org.adempiere.base.process/src/org/compiere/process/CostCreate.java index 3b61e8451b..96ae0e9b45 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CostCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/CostCreate.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.util.logging.Level; import org.compiere.model.MCostDetail; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.util.AdempiereUserError; @@ -49,7 +50,7 @@ public class CostCreate extends SvrProcess else if (name.equals("M_Product_ID")) p_M_Product_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CostUpdate.java b/org.adempiere.base.process/src/org/compiere/process/CostUpdate.java index 413f69eca4..2ce79d00af 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CostUpdate.java +++ b/org.adempiere.base.process/src/org/compiere/process/CostUpdate.java @@ -33,6 +33,7 @@ import org.compiere.model.MCostElement; import org.compiere.model.MDocType; import org.compiere.model.MInventory; import org.compiere.model.MInventoryLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.util.AdempiereSystemError; import org.compiere.util.AdempiereUserError; @@ -105,7 +106,7 @@ public class CostUpdate extends SvrProcess else if (name.equals("C_DocType_ID")) p_C_DocType_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/CreateFromInOut.java b/org.adempiere.base.process/src/org/compiere/process/CreateFromInOut.java index 3e5fda87be..833250d300 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CreateFromInOut.java +++ b/org.adempiere.base.process/src/org/compiere/process/CreateFromInOut.java @@ -38,6 +38,7 @@ import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MInOut; import org.compiere.model.MInvoice; import org.compiere.model.MOrder; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MRMA; import org.compiere.util.AdempiereUserError; @@ -69,7 +70,7 @@ public class CreateFromInOut extends SvrProcess else if (name.equals("M_InOut_ID")) p_M_InOut_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/compiere/process/CreateFromInvoice.java b/org.adempiere.base.process/src/org/compiere/process/CreateFromInvoice.java index db51a756c6..6595a8d575 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CreateFromInvoice.java +++ b/org.adempiere.base.process/src/org/compiere/process/CreateFromInvoice.java @@ -37,6 +37,7 @@ import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MInvoice; import org.compiere.model.MOrder; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MRMA; import org.compiere.util.AdempiereUserError; @@ -67,7 +68,7 @@ public class CreateFromInvoice extends SvrProcess else if (name.equals("C_Invoice_ID")) p_C_Invoice_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/compiere/process/CreateFromRMA.java b/org.adempiere.base.process/src/org/compiere/process/CreateFromRMA.java index 22c9fa2263..3a6a1efbe0 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CreateFromRMA.java +++ b/org.adempiere.base.process/src/org/compiere/process/CreateFromRMA.java @@ -34,6 +34,7 @@ import java.util.HashMap; import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; +import org.compiere.model.MProcessPara; import org.compiere.model.MRMA; import org.compiere.util.AdempiereUserError; import org.compiere.util.DB; @@ -63,7 +64,7 @@ public class CreateFromRMA extends SvrProcess else if (name.equals("M_RMA_ID")) p_M_RMA_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/compiere/process/CreateWindowFromTable.java b/org.adempiere.base.process/src/org/compiere/process/CreateWindowFromTable.java index 46e23fbc0f..306ef6ddbe 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CreateWindowFromTable.java +++ b/org.adempiere.base.process/src/org/compiere/process/CreateWindowFromTable.java @@ -31,6 +31,7 @@ import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MColumn; import org.compiere.model.MMenu; import org.compiere.model.MPInstance; +import org.compiere.model.MProcessPara; import org.compiere.model.MTab; import org.compiere.model.MTable; import org.compiere.model.MWindow; @@ -93,7 +94,7 @@ public class CreateWindowFromTable extends SvrProcess else if (name.equals("IsCreateMenu")) p_isCreateMenu = para[i].getParameterAsBoolean(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_Table_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/DistributionCreate.java b/org.adempiere.base.process/src/org/compiere/process/DistributionCreate.java index 357bb7bbc2..4e8566582b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/DistributionCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/DistributionCreate.java @@ -25,6 +25,7 @@ import org.compiere.model.MDistributionList; import org.compiere.model.MDistributionListLine; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.util.Env; @@ -86,7 +87,7 @@ public class DistributionCreate extends SvrProcess else if (name.equals("IsTest")) p_IsTest = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_M_DistributionList_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/DistributionRun.java b/org.adempiere.base.process/src/org/compiere/process/DistributionRun.java index 4f3ffb95b9..992060f463 100644 --- a/org.adempiere.base.process/src/org/compiere/process/DistributionRun.java +++ b/org.adempiere.base.process/src/org/compiere/process/DistributionRun.java @@ -36,6 +36,7 @@ import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; import org.compiere.model.MOrg; import org.compiere.model.MOrgInfo; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MTable; import org.compiere.model.MWarehouse; @@ -122,7 +123,7 @@ public class DistributionRun extends SvrProcess else if (m_docType.getDocBaseType().equals(MDocType.DOCBASETYPE_DistributionOrder) && name.equals("IsRequiredDRP")) p_BasedInDamnd = "Y".equals((String)para[i].getParameter()); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_M_DistributionRun_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/DunningPrint.java b/org.adempiere.base.process/src/org/compiere/process/DunningPrint.java index 4dfd629d4c..b7e3fd8063 100644 --- a/org.adempiere.base.process/src/org/compiere/process/DunningPrint.java +++ b/org.adempiere.base.process/src/org/compiere/process/DunningPrint.java @@ -25,6 +25,7 @@ import org.compiere.model.MDunningLevel; import org.compiere.model.MDunningRun; import org.compiere.model.MDunningRunEntry; import org.compiere.model.MMailText; +import org.compiere.model.MProcessPara; import org.compiere.model.MQuery; import org.compiere.model.MUser; import org.compiere.model.MUserMail; @@ -79,7 +80,7 @@ public class DunningPrint extends SvrProcess else if (name.equals("PrintUnprocessedOnly")) p_PrintUnprocessedOnly = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/DunningRunCreate.java b/org.adempiere.base.process/src/org/compiere/process/DunningRunCreate.java index 8d0e1380b0..86932a6ed9 100644 --- a/org.adempiere.base.process/src/org/compiere/process/DunningRunCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/DunningRunCreate.java @@ -29,6 +29,7 @@ import org.compiere.model.MDunningRunEntry; import org.compiere.model.MDunningRunLine; import org.compiere.model.MInvoice; import org.compiere.model.MPayment; +import org.compiere.model.MProcessPara; import org.compiere.util.DB; import org.compiere.util.Env; @@ -84,7 +85,7 @@ public class DunningRunCreate extends SvrProcess else if (name.equals("AD_Org_ID")) p_AD_Org_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_DunningRun_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ExpenseAPInvoice.java b/org.adempiere.base.process/src/org/compiere/process/ExpenseAPInvoice.java index 5cd4295c00..a06c88a989 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ExpenseAPInvoice.java +++ b/org.adempiere.base.process/src/org/compiere/process/ExpenseAPInvoice.java @@ -26,6 +26,7 @@ import org.compiere.model.MDocType; import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine; import org.compiere.model.MPriceList; +import org.compiere.model.MProcessPara; import org.compiere.model.MTimeExpense; import org.compiere.model.MTimeExpenseLine; import org.compiere.util.DB; @@ -66,7 +67,7 @@ public class ExpenseAPInvoice extends SvrProcess m_DateTo = (Timestamp)para[i].getParameter_To(); } else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ExpenseSOrder.java b/org.adempiere.base.process/src/org/compiere/process/ExpenseSOrder.java index c132ff77c3..6453c85563 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ExpenseSOrder.java +++ b/org.adempiere.base.process/src/org/compiere/process/ExpenseSOrder.java @@ -26,6 +26,7 @@ import org.compiere.model.MBPartner; import org.compiere.model.MConversionRate; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProject; import org.compiere.model.MTimeExpense; import org.compiere.model.MTimeExpenseLine; @@ -73,7 +74,7 @@ public class ExpenseSOrder extends SvrProcess m_DateTo = (Timestamp)para[i].getParameter_To(); } else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/FactAcctReset.java b/org.adempiere.base.process/src/org/compiere/process/FactAcctReset.java index e2f7025926..6d4f2cdd65 100644 --- a/org.adempiere.base.process/src/org/compiere/process/FactAcctReset.java +++ b/org.adempiere.base.process/src/org/compiere/process/FactAcctReset.java @@ -41,6 +41,7 @@ import org.compiere.model.MMovement; import org.compiere.model.MOrder; import org.compiere.model.MPayment; import org.compiere.model.MPeriodControl; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduction; import org.compiere.model.MProjectIssue; import org.compiere.model.MRequisition; @@ -100,7 +101,7 @@ public class FactAcctReset extends SvrProcess else if (name.equals("AlsoWithoutPostings")) p_AlsoWithoutPostings = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/FactAcctSummary.java b/org.adempiere.base.process/src/org/compiere/process/FactAcctSummary.java index 58a3f8bbab..0a34954cca 100644 --- a/org.adempiere.base.process/src/org/compiere/process/FactAcctSummary.java +++ b/org.adempiere.base.process/src/org/compiere/process/FactAcctSummary.java @@ -18,8 +18,8 @@ package org.compiere.process; import java.util.List; -import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MReportCube; import org.compiere.model.Query; @@ -49,7 +49,7 @@ public class FactAcctSummary extends SvrProcess { else if ( p.getParameterName().equals("Force")) p_force = p.getParameterAsBoolean(); else - log.log(Level.SEVERE, "Unknown Parameter: " + p.getParameterName()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), p); } } diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportAccount.java b/org.adempiere.base.process/src/org/compiere/process/ImportAccount.java index 51fa1e1470..c3d2784465 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportAccount.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportAccount.java @@ -27,6 +27,7 @@ import org.compiere.model.MAccount; import org.compiere.model.MAcctSchema; import org.compiere.model.MColumn; import org.compiere.model.MElementValue; +import org.compiere.model.MProcessPara; import org.compiere.model.X_I_ElementValue; import org.compiere.util.DB; import org.compiere.util.Env; @@ -77,7 +78,7 @@ public class ImportAccount extends SvrProcess else if (name.equals("DeleteOldImported")) m_deleteOldImported = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (m_DateValue == null) m_DateValue = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportBPartner.java b/org.adempiere.base.process/src/org/compiere/process/ImportBPartner.java index 8e68b2a520..8fe42631f9 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportBPartner.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportBPartner.java @@ -31,6 +31,7 @@ import org.compiere.model.MBPartner; import org.compiere.model.MBPartnerLocation; import org.compiere.model.MContactInterest; import org.compiere.model.MLocation; +import org.compiere.model.MProcessPara; import org.compiere.model.MUser; import org.compiere.model.ModelValidationEngine; import org.compiere.model.X_I_BPartner; @@ -78,7 +79,7 @@ implements ImportProcess else if (name.equals("IsValidateOnly")) p_IsValidateOnly = para[i].getParameterAsBoolean(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (m_DateValue == null) m_DateValue = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportBankStatement.java b/org.adempiere.base.process/src/org/compiere/process/ImportBankStatement.java index 250837d61a..bf30f30a4d 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportBankStatement.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportBankStatement.java @@ -25,6 +25,7 @@ import java.util.logging.Level; import org.compiere.model.MBankAccount; import org.compiere.model.MBankStatement; import org.compiere.model.MBankStatementLine; +import org.compiere.model.MProcessPara; import org.compiere.model.X_I_BankStatement; import org.compiere.util.CLogger; import org.compiere.util.DB; @@ -71,7 +72,7 @@ public class ImportBankStatement extends SvrProcess else if (name.equals("DeleteOldImported")) p_deleteOldImported = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_ctx = Env.getCtx(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportConversionRate.java b/org.adempiere.base.process/src/org/compiere/process/ImportConversionRate.java index ede8a7e8c2..5f78d34950 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportConversionRate.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportConversionRate.java @@ -23,6 +23,7 @@ import java.sql.Timestamp; import java.util.logging.Level; import org.compiere.model.MConversionRate; +import org.compiere.model.MProcessPara; import org.compiere.model.X_I_Conversion_Rate; import org.compiere.util.DB; @@ -73,7 +74,7 @@ public class ImportConversionRate extends SvrProcess else if (name.equals("DeleteOldImported")) p_DeleteOldImported = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportDelete.java b/org.adempiere.base.process/src/org/compiere/process/ImportDelete.java index 116131f1c2..0bffc4a63d 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportDelete.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportDelete.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.util.DB; import org.compiere.util.Msg; @@ -47,7 +48,7 @@ public class ImportDelete extends SvrProcess if (name.equals("AD_Table_ID")) p_AD_Table_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportGLJournal.java b/org.adempiere.base.process/src/org/compiere/process/ImportGLJournal.java index c15630e0bf..5babaae7b4 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportGLJournal.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportGLJournal.java @@ -28,6 +28,7 @@ import org.compiere.model.MAccount; import org.compiere.model.MJournal; import org.compiere.model.MJournalBatch; import org.compiere.model.MJournalLine; +import org.compiere.model.MProcessPara; import org.compiere.model.X_I_GLJournal; import org.compiere.util.CLogger; import org.compiere.util.DB; @@ -84,7 +85,7 @@ public class ImportGLJournal extends SvrProcess else if (name.equals("DeleteOldImported")) m_DeleteOldImported = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportInOutConfirm.java b/org.adempiere.base.process/src/org/compiere/process/ImportInOutConfirm.java index 9bbb6a1e8e..f647ff98d8 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportInOutConfirm.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportInOutConfirm.java @@ -22,6 +22,7 @@ import java.sql.ResultSet; import java.util.logging.Level; import org.compiere.model.MInOutLineConfirm; +import org.compiere.model.MProcessPara; import org.compiere.model.X_I_InOutLineConfirm; import org.compiere.util.DB; @@ -58,7 +59,7 @@ public class ImportInOutConfirm extends SvrProcess else if (name.equals("DeleteOldImported")) p_DeleteOldImported = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_I_InOutLineConfirm_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportInventory.java b/org.adempiere.base.process/src/org/compiere/process/ImportInventory.java index d8d078f455..1bbc43e82b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportInventory.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportInventory.java @@ -32,6 +32,7 @@ import org.compiere.model.MAttributeSetInstance; import org.compiere.model.MCost; import org.compiere.model.MInventory; import org.compiere.model.MInventoryLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProductCategoryAcct; import org.compiere.model.ModelValidationEngine; @@ -122,7 +123,7 @@ public class ImportInventory extends SvrProcess implements ImportProcess else if (name.equals("C_DocType_ID")) p_C_DocType_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.WARNING, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportInvoice.java b/org.adempiere.base.process/src/org/compiere/process/ImportInvoice.java index 47b81883ea..24f453e1ed 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportInvoice.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportInvoice.java @@ -28,6 +28,7 @@ import org.compiere.model.MBPartnerLocation; import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine; import org.compiere.model.MLocation; +import org.compiere.model.MProcessPara; import org.compiere.model.MUser; import org.compiere.model.X_I_Invoice; import org.compiere.util.DB; @@ -73,7 +74,7 @@ public class ImportInvoice extends SvrProcess else if (name.equals("DocAction")) m_docAction = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (m_DateValue == null) m_DateValue = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportOrder.java b/org.adempiere.base.process/src/org/compiere/process/ImportOrder.java index 74e785bdab..651ecb75aa 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportOrder.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportOrder.java @@ -28,6 +28,7 @@ import org.compiere.model.MBPartnerLocation; import org.compiere.model.MLocation; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MUser; import org.compiere.model.X_I_Order; import org.compiere.util.DB; @@ -75,7 +76,7 @@ public class ImportOrder extends SvrProcess else if (name.equals("DocAction")) m_docAction = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (m_DateValue == null) m_DateValue = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportPayment.java b/org.adempiere.base.process/src/org/compiere/process/ImportPayment.java index 99311b201c..9baec5b306 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportPayment.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportPayment.java @@ -24,6 +24,7 @@ import java.util.logging.Level; import org.compiere.model.MBankAccount; import org.compiere.model.MPayment; +import org.compiere.model.MProcessPara; import org.compiere.model.X_I_Payment; import org.compiere.util.AdempiereUserError; import org.compiere.util.DB; @@ -71,7 +72,7 @@ public class ImportPayment extends SvrProcess else if (name.equals("DocAction")) m_docAction = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_ctx = Env.getCtx(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportProduct.java b/org.adempiere.base.process/src/org/compiere/process/ImportProduct.java index 438cd6eac4..6b649c2620 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportProduct.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportProduct.java @@ -27,6 +27,7 @@ import org.adempiere.model.ImportValidator; import org.adempiere.process.ImportProcess; import org.adempiere.process.UUIDGenerator; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProductPO; import org.compiere.model.MProductPrice; @@ -74,7 +75,7 @@ public class ImportProduct extends SvrProcess implements ImportProcess else if (name.equals("M_PriceList_Version_ID")) p_M_PriceList_Version_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (m_DateValue == null) m_DateValue = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base.process/src/org/compiere/process/ImportReportLine.java b/org.adempiere.base.process/src/org/compiere/process/ImportReportLine.java index 9ddd2853f0..e1beb30320 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ImportReportLine.java +++ b/org.adempiere.base.process/src/org/compiere/process/ImportReportLine.java @@ -24,6 +24,7 @@ import java.sql.Timestamp; import java.util.logging.Level; import org.adempiere.exceptions.DBException; +import org.compiere.model.MProcessPara; import org.compiere.util.DB; /** @@ -63,7 +64,7 @@ public class ImportReportLine extends SvrProcess else if (name.equals("DeleteOldImported")) m_deleteOldImported = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (m_DateValue == null) m_DateValue = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base.process/src/org/compiere/process/InOutCreateConfirm.java b/org.adempiere.base.process/src/org/compiere/process/InOutCreateConfirm.java index c04d56ecf5..1b8506add5 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InOutCreateConfirm.java +++ b/org.adempiere.base.process/src/org/compiere/process/InOutCreateConfirm.java @@ -20,6 +20,7 @@ import java.util.logging.Level; import org.compiere.model.MInOut; import org.compiere.model.MInOutConfirm; +import org.compiere.model.MProcessPara; /** * Create Confirmation From Shipment @@ -50,7 +51,7 @@ public class InOutCreateConfirm extends SvrProcess else if (name.equals("ConfirmType")) p_ConfirmType = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_M_InOut_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/InOutCreateInvoice.java b/org.adempiere.base.process/src/org/compiere/process/InOutCreateInvoice.java index 9cb699f114..f6bb9ed70f 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InOutCreateInvoice.java +++ b/org.adempiere.base.process/src/org/compiere/process/InOutCreateInvoice.java @@ -28,6 +28,7 @@ import org.compiere.model.MInvoiceLine; import org.compiere.model.MInvoicePaySchedule; import org.compiere.model.MOrder; import org.compiere.model.MOrderPaySchedule; +import org.compiere.model.MProcessPara; import org.compiere.model.PO; import org.compiere.util.Env; @@ -63,7 +64,7 @@ public class InOutCreateInvoice extends SvrProcess else if (name.equals("InvoiceDocumentNo")) p_InvoiceDocumentNo = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_M_InOut_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/InOutGenerate.java b/org.adempiere.base.process/src/org/compiere/process/InOutGenerate.java index 048c31ec26..ab67d0466b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InOutGenerate.java +++ b/org.adempiere.base.process/src/org/compiere/process/InOutGenerate.java @@ -34,6 +34,7 @@ import org.compiere.model.MLocator; import org.compiere.model.MLocatorType; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MStorageOnHand; import org.compiere.model.Query; @@ -124,7 +125,7 @@ public class InOutGenerate extends SvrProcess else if (name.equals("MovementDate")) p_DateShipped = (Timestamp)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } // juddm - added ability to specify a shipment date from Generate Shipments if (p_DateShipped == null) { diff --git a/org.adempiere.base.process/src/org/compiere/process/IndentedBOM.java b/org.adempiere.base.process/src/org/compiere/process/IndentedBOM.java index 89f00dcb30..58f9421d85 100644 --- a/org.adempiere.base.process/src/org/compiere/process/IndentedBOM.java +++ b/org.adempiere.base.process/src/org/compiere/process/IndentedBOM.java @@ -22,6 +22,7 @@ import java.util.logging.Level; import org.adempiere.exceptions.FillMandatoryException; import org.compiere.model.MAcctSchema; import org.compiere.model.MCost; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.X_T_BOM_Indented; import org.compiere.util.Env; @@ -68,7 +69,7 @@ public class IndentedBOM extends SvrProcess else if (name.equals(MCost.COLUMNNAME_M_Product_ID)) p_M_Product_ID = para.getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/InventoryCountCreate.java b/org.adempiere.base.process/src/org/compiere/process/InventoryCountCreate.java index 67353b76da..597a637d5b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InventoryCountCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/InventoryCountCreate.java @@ -29,6 +29,7 @@ import java.util.logging.Level; import org.compiere.model.MInventory; import org.compiere.model.MInventoryLine; import org.compiere.model.MInventoryLineMA; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereSystemError; import org.compiere.util.DB; import org.compiere.util.Env; @@ -93,7 +94,7 @@ public class InventoryCountCreate extends SvrProcess else if (name.equals("DeleteOld")) p_DeleteOld = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_M_Inventory_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/InventoryCountUpdate.java b/org.adempiere.base.process/src/org/compiere/process/InventoryCountUpdate.java index 04cca9e137..0259d01d90 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InventoryCountUpdate.java +++ b/org.adempiere.base.process/src/org/compiere/process/InventoryCountUpdate.java @@ -20,6 +20,7 @@ import java.util.logging.Level; import org.compiere.model.MInventory; import org.compiere.model.MInventoryLineMA; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereSystemError; import org.compiere.util.DB; @@ -51,7 +52,7 @@ public class InventoryCountUpdate extends SvrProcess else if (name.equals("InventoryCountSet")) p_InventoryCountSetZero = "Z".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_M_Inventory_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/InventoryValue.java b/org.adempiere.base.process/src/org/compiere/process/InventoryValue.java index da58847e19..bc40607947 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InventoryValue.java +++ b/org.adempiere.base.process/src/org/compiere/process/InventoryValue.java @@ -21,6 +21,7 @@ import java.util.logging.Level; import org.compiere.model.MAcctSchema; import org.compiere.model.MClient; +import org.compiere.model.MProcessPara; import org.compiere.model.MWarehouse; import org.compiere.util.DB; @@ -69,6 +70,8 @@ public class InventoryValue extends SvrProcess p_C_Currency_ID = para[i].getParameterAsInt(); else if (name.equals("M_CostElement_ID")) p_M_CostElement_ID = para[i].getParameterAsInt(); + else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (p_DateValue == null) p_DateValue = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoiceBatchProcess.java b/org.adempiere.base.process/src/org/compiere/process/InvoiceBatchProcess.java index bf53cec309..911ca8c22b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoiceBatchProcess.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoiceBatchProcess.java @@ -22,6 +22,7 @@ import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceBatch; import org.compiere.model.MInvoiceBatchLine; import org.compiere.model.MInvoiceLine; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.Msg; @@ -65,6 +66,8 @@ public class InvoiceBatchProcess extends SvrProcess ; else if (name.equals("DocAction")) p_DocAction = (String)para[i].getParameter(); + else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_InvoiceBatch_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoiceCreateInOut.java b/org.adempiere.base.process/src/org/compiere/process/InvoiceCreateInOut.java index 187dce7869..78eea6d754 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoiceCreateInOut.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoiceCreateInOut.java @@ -26,6 +26,7 @@ import org.compiere.model.MInOut; import org.compiere.model.MInOutLine; import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine; +import org.compiere.model.MProcessPara; import org.compiere.util.Env; /** @@ -62,7 +63,7 @@ public class InvoiceCreateInOut extends SvrProcess else if (name.equals(PARAM_M_Warehouse_ID)) p_M_Warehouse_ID = para.getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } p_C_Invoice_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java b/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java index 2f50c02662..677c4fd9b2 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java @@ -41,6 +41,7 @@ import org.compiere.model.MLocation; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; import org.compiere.model.MOrderPaySchedule; +import org.compiere.model.MProcessPara; import org.compiere.model.PO; import org.compiere.util.DB; import org.compiere.util.DisplayType; @@ -124,7 +125,7 @@ public class InvoiceGenerate extends SvrProcess else if (name.equals("MinimumAmt")) p_MinimumAmt = para[i].getParameterAsBigDecimal(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } // Login Date diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoiceNGL.java b/org.adempiere.base.process/src/org/compiere/process/InvoiceNGL.java index 0f75c11a13..50ec5b392a 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoiceNGL.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoiceNGL.java @@ -31,6 +31,7 @@ import org.compiere.model.MInvoice; import org.compiere.model.MJournal; import org.compiere.model.MJournalLine; import org.compiere.model.MOrg; +import org.compiere.model.MProcessPara; import org.compiere.model.Query; import org.compiere.model.X_T_InvoiceGL; import org.compiere.util.DB; @@ -90,7 +91,7 @@ public class InvoiceNGL extends SvrProcess else if (name.equals("C_DocTypeReval_ID")) p_C_DocTypeReval_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoicePayScheduleValidate.java b/org.adempiere.base.process/src/org/compiere/process/InvoicePayScheduleValidate.java index 585e2b843b..e1d92af269 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoicePayScheduleValidate.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoicePayScheduleValidate.java @@ -21,6 +21,7 @@ import java.util.logging.Level; import org.compiere.model.MInvoice; import org.compiere.model.MInvoicePaySchedule; +import org.compiere.model.MProcessPara; import org.compiere.util.Env; import org.compiere.util.Msg; @@ -41,11 +42,10 @@ public class InvoicePayScheduleValidate extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoicePrint.java b/org.adempiere.base.process/src/org/compiere/process/InvoicePrint.java index ae9cc12005..c1b967f5e3 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoicePrint.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoicePrint.java @@ -25,6 +25,7 @@ import java.util.logging.Level; import org.compiere.model.MClient; import org.compiere.model.MInvoice; import org.compiere.model.MMailText; +import org.compiere.model.MProcessPara; import org.compiere.model.MQuery; import org.compiere.model.MUser; import org.compiere.model.MUserMail; @@ -91,7 +92,7 @@ public class InvoicePrint extends SvrProcess m_DocumentNo_To = (String)para[i].getParameter_To(); } else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (m_DocumentNo_From != null && m_DocumentNo_From.length() == 0) m_DocumentNo_From = null; diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoiceWriteOff.java b/org.adempiere.base.process/src/org/compiere/process/InvoiceWriteOff.java index 258291a52c..b519f6f08b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoiceWriteOff.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoiceWriteOff.java @@ -26,6 +26,7 @@ import org.compiere.model.MAllocationHdr; import org.compiere.model.MAllocationLine; import org.compiere.model.MInvoice; import org.compiere.model.MPayment; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.DB; import org.compiere.util.Env; @@ -110,7 +111,7 @@ public class InvoiceWriteOff extends SvrProcess else if (name.equals("IsSimulation")) p_IsSimulation = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/LoadBankStatement.java b/org.adempiere.base.process/src/org/compiere/process/LoadBankStatement.java index a5eea787b9..48c5ccb505 100644 --- a/org.adempiere.base.process/src/org/compiere/process/LoadBankStatement.java +++ b/org.adempiere.base.process/src/org/compiere/process/LoadBankStatement.java @@ -21,6 +21,7 @@ import java.util.Properties; import java.util.logging.Level; import org.compiere.model.MBankStatementLoader; +import org.compiere.model.MProcessPara; import org.compiere.util.Env; import org.compiere.util.Msg; @@ -75,7 +76,7 @@ public class LoadBankStatement extends SvrProcess else if (name.equals("FileName")) fileName = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_AD_Client_ID = Env.getAD_Client_ID(m_ctx); if (log.isLoggable(Level.INFO)) log.info("AD_Client_ID=" + m_AD_Client_ID); diff --git a/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java b/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java index 9d45122b1c..94a1208883 100644 --- a/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java +++ b/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java @@ -35,6 +35,7 @@ import org.compiere.model.MDiscountSchema; import org.compiere.model.MDiscountSchemaLine; import org.compiere.model.MPriceList; import org.compiere.model.MPriceListVersion; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProductPO; import org.compiere.model.MProductPrice; @@ -79,7 +80,7 @@ public class M_PriceList_Create extends SvrProcess { else if (name.equals("DeleteOld")) p_DeleteOld = para.getParameterAsBoolean(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } p_PriceList_Version_ID = getRecord_ID(); m_AD_PInstance_ID = getAD_PInstance_ID(); diff --git a/org.adempiere.base.process/src/org/compiere/process/M_Production_Run.java b/org.adempiere.base.process/src/org/compiere/process/M_Production_Run.java index 9852780df3..f7f693732d 100644 --- a/org.adempiere.base.process/src/org/compiere/process/M_Production_Run.java +++ b/org.adempiere.base.process/src/org/compiere/process/M_Production_Run.java @@ -19,10 +19,10 @@ package org.compiere.process; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.List; -import java.util.logging.Level; import org.compiere.model.MClient; import org.compiere.model.MLocator; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MStorageOnHand; import org.compiere.model.MStorageReservation; @@ -69,7 +69,7 @@ public class M_Production_Run extends SvrProcess { else if (name.equals("MustBeStocked")) mustBeStocked = ((String) para[i].getParameter()).equals("Y"); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_Record_ID = getRecord_ID(); } //prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/NoteDelete.java b/org.adempiere.base.process/src/org/compiere/process/NoteDelete.java index 9b109ec8af..825e18417b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/NoteDelete.java +++ b/org.adempiere.base.process/src/org/compiere/process/NoteDelete.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.util.DB; /** @@ -54,7 +55,7 @@ public class NoteDelete extends SvrProcess else if (name.equals("KeepLogDays")) p_KeepLogDays = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java b/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java index 966940a782..2d85b11a4b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java @@ -23,6 +23,7 @@ import java.sql.Timestamp; import java.util.logging.Level; import org.compiere.model.MOrder; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.DB; @@ -78,7 +79,7 @@ public class OrderBatchProcess extends SvrProcess p_IsInvoiced = (String)para[i].getParameter(); } else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/OrderLineCreateShipment.java b/org.adempiere.base.process/src/org/compiere/process/OrderLineCreateShipment.java index c45e6f4c9a..6eba065584 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrderLineCreateShipment.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrderLineCreateShipment.java @@ -23,6 +23,7 @@ import org.compiere.model.MInOut; import org.compiere.model.MInOutLine; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.util.DB; import org.compiere.util.Env; import org.compiere.util.Msg; @@ -54,7 +55,7 @@ public class OrderLineCreateShipment extends SvrProcess if (name.equals("MovementDate")) p_MovementDate = (Timestamp) para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (p_MovementDate == null) diff --git a/org.adempiere.base.process/src/org/compiere/process/OrderOpen.java b/org.adempiere.base.process/src/org/compiere/process/OrderOpen.java index 511d4a0178..f70b9ea8d7 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrderOpen.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrderOpen.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.util.logging.Level; import org.compiere.model.MOrder; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereSystemError; /** @@ -47,7 +48,7 @@ public class OrderOpen extends SvrProcess else if (name.equals("C_Order_ID")) p_C_Order_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/OrderPOCreate.java b/org.adempiere.base.process/src/org/compiere/process/OrderPOCreate.java index 64ce46dc5c..50745345be 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrderPOCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrderPOCreate.java @@ -26,6 +26,7 @@ import org.compiere.model.MBPartner; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; import org.compiere.model.MOrgInfo; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.DB; import org.compiere.util.Msg; @@ -80,7 +81,7 @@ public class OrderPOCreate extends SvrProcess else if (name.equals("IsDropShip")) p_IsDropShip = ((String) para[i].getParameter()).equals("Y"); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } // called from order window w/o parameters diff --git a/org.adempiere.base.process/src/org/compiere/process/OrderPayScheduleValidate.java b/org.adempiere.base.process/src/org/compiere/process/OrderPayScheduleValidate.java index 1c602717b7..7244d6a184 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrderPayScheduleValidate.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrderPayScheduleValidate.java @@ -21,6 +21,7 @@ import java.util.logging.Level; import org.compiere.model.MOrder; import org.compiere.model.MOrderPaySchedule; +import org.compiere.model.MProcessPara; import org.compiere.util.Env; import org.compiere.util.Msg; @@ -40,11 +41,10 @@ public class OrderPayScheduleValidate extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/OrderRePrice.java b/org.adempiere.base.process/src/org/compiere/process/OrderRePrice.java index 3a258c5717..0dee02d302 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrderRePrice.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrderRePrice.java @@ -23,6 +23,7 @@ import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.util.Env; /** @@ -55,7 +56,7 @@ public class OrderRePrice extends SvrProcess else if (name.equals("C_Invoice_ID")) p_C_Invoice_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/OrgOwnership.java b/org.adempiere.base.process/src/org/compiere/process/OrgOwnership.java index 95904072a4..ad56081333 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrgOwnership.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrgOwnership.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.util.DB; import org.compiere.util.Msg; @@ -69,7 +70,7 @@ public class OrgOwnership extends SvrProcess p_C_BPartner_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/PackageCreate.java b/org.adempiere.base.process/src/org/compiere/process/PackageCreate.java index 9041d3e222..5b9fcd8d2c 100644 --- a/org.adempiere.base.process/src/org/compiere/process/PackageCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/PackageCreate.java @@ -20,6 +20,7 @@ import java.util.logging.Level; import org.compiere.model.MInOut; import org.compiere.model.MPackage; +import org.compiere.model.MProcessPara; import org.compiere.model.MShipper; /** @@ -57,7 +58,7 @@ public class PackageCreate extends SvrProcess else if (name.equals("NoOfPackages")) p_no_of_packages = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/PaySelectionCreateCheck.java b/org.adempiere.base.process/src/org/compiere/process/PaySelectionCreateCheck.java index 8341610e5d..907c2b9ff9 100644 --- a/org.adempiere.base.process/src/org/compiere/process/PaySelectionCreateCheck.java +++ b/org.adempiere.base.process/src/org/compiere/process/PaySelectionCreateCheck.java @@ -23,6 +23,7 @@ import org.compiere.model.MBPartner; import org.compiere.model.MPaySelection; import org.compiere.model.MPaySelectionCheck; import org.compiere.model.MPaySelectionLine; +import org.compiere.model.MProcessPara; import org.compiere.model.X_C_Order; import org.compiere.util.AdempiereUserError; @@ -61,7 +62,7 @@ public class PaySelectionCreateCheck extends SvrProcess else if (name.equalsIgnoreCase(MPaySelection.COLUMNNAME_IsOnePaymentPerInvoice)) p_onepaymentPerInvoice = para[i].getParameterAsBoolean(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_PaySelection_ID = getRecord_ID(); if (p_PaymentRule != null && p_PaymentRule.equals(X_C_Order.PAYMENTRULE_DirectDebit)) diff --git a/org.adempiere.base.process/src/org/compiere/process/PaySelectionCreateFrom.java b/org.adempiere.base.process/src/org/compiere/process/PaySelectionCreateFrom.java index a320750fce..c32e7aab13 100644 --- a/org.adempiere.base.process/src/org/compiere/process/PaySelectionCreateFrom.java +++ b/org.adempiere.base.process/src/org/compiere/process/PaySelectionCreateFrom.java @@ -28,6 +28,7 @@ import org.adempiere.exceptions.DBException; import org.compiere.model.MInvoice; import org.compiere.model.MPaySelection; import org.compiere.model.MPaySelectionLine; +import org.compiere.model.MProcessPara; import org.compiere.model.X_C_Order; import org.compiere.util.DB; import org.compiere.util.Env; @@ -93,7 +94,7 @@ public class PaySelectionCreateFrom extends SvrProcess else if (name.equals("PositiveBalance")) p_OnlyPositive = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_PaySelection_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/PaymentOnline.java b/org.adempiere.base.process/src/org/compiere/process/PaymentOnline.java index b0afaacc47..3f45a59145 100644 --- a/org.adempiere.base.process/src/org/compiere/process/PaymentOnline.java +++ b/org.adempiere.base.process/src/org/compiere/process/PaymentOnline.java @@ -20,6 +20,7 @@ package org.compiere.process; import java.util.logging.Level; import org.compiere.model.MPayment; +import org.compiere.model.MProcessPara; /** @@ -39,11 +40,10 @@ public class PaymentOnline extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/PaymentTermValidate.java b/org.adempiere.base.process/src/org/compiere/process/PaymentTermValidate.java index 9feb4653c0..9c3f2943f4 100644 --- a/org.adempiere.base.process/src/org/compiere/process/PaymentTermValidate.java +++ b/org.adempiere.base.process/src/org/compiere/process/PaymentTermValidate.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.util.logging.Level; import org.compiere.model.MPaymentTerm; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.Msg; @@ -39,11 +40,10 @@ public class PaymentTermValidate extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/PeriodControlStatus.java b/org.adempiere.base.process/src/org/compiere/process/PeriodControlStatus.java index 1facb9afe0..cdd6d68ced 100644 --- a/org.adempiere.base.process/src/org/compiere/process/PeriodControlStatus.java +++ b/org.adempiere.base.process/src/org/compiere/process/PeriodControlStatus.java @@ -21,6 +21,7 @@ import java.util.List; import java.util.logging.Level; import org.compiere.model.MPeriodControl; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.CacheMgt; @@ -51,7 +52,7 @@ public class PeriodControlStatus extends SvrProcess else if (name.equals("*RecordIDs*")) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_PeriodControl_IDs = getRecord_IDs(); if (p_C_PeriodControl_IDs == null || p_C_PeriodControl_IDs.size() == 0) { diff --git a/org.adempiere.base.process/src/org/compiere/process/PeriodStatus.java b/org.adempiere.base.process/src/org/compiere/process/PeriodStatus.java index 703e58a8fa..117dd65bb2 100644 --- a/org.adempiere.base.process/src/org/compiere/process/PeriodStatus.java +++ b/org.adempiere.base.process/src/org/compiere/process/PeriodStatus.java @@ -21,6 +21,7 @@ import java.util.List; import java.util.logging.Level; import org.compiere.model.MPeriodControl; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.CacheMgt; import org.compiere.util.DB; @@ -58,7 +59,7 @@ public class PeriodStatus extends SvrProcess else if (name.equals("*RecordIDs*")) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_Period_IDs = getRecord_IDs(); if (p_C_Period_IDs == null || p_C_Period_IDs.size() == 0) { diff --git a/org.adempiere.base.process/src/org/compiere/process/ProductCategoryAcctCopy.java b/org.adempiere.base.process/src/org/compiere/process/ProductCategoryAcctCopy.java index 54402ebbbe..e99607d5d5 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProductCategoryAcctCopy.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProductCategoryAcctCopy.java @@ -20,6 +20,7 @@ import java.math.BigDecimal; import java.util.logging.Level; import org.compiere.model.MAcctSchema; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereSystemError; import org.compiere.util.DB; @@ -54,7 +55,7 @@ public class ProductCategoryAcctCopy extends SvrProcess else if (name.equals("C_AcctSchema_ID")) p_C_AcctSchema_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ProductUOMConvert.java b/org.adempiere.base.process/src/org/compiere/process/ProductUOMConvert.java index 92363c4452..dd59ec4867 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProductUOMConvert.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProductUOMConvert.java @@ -20,6 +20,7 @@ import java.math.BigDecimal; import java.math.RoundingMode; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MUOM; import org.compiere.model.MUOMConversion; @@ -65,7 +66,7 @@ public class ProductUOMConvert extends SvrProcess else if (name.equals("Qty")) p_Qty = (BigDecimal)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ProductionCreate.java b/org.adempiere.base.process/src/org/compiere/process/ProductionCreate.java index b0616ca0a4..2df5804d4e 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProductionCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProductionCreate.java @@ -2,9 +2,9 @@ package org.compiere.process; import java.math.BigDecimal; import java.util.List; -import java.util.logging.Level; import org.compiere.model.I_M_ProductionPlan; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduction; import org.compiere.model.MProductionPlan; import org.compiere.model.Query; @@ -43,7 +43,7 @@ public class ProductionCreate extends SvrProcess { else if ("PP_Product_BOM_ID".equals(name)) p_PP_Product_BOM_ID = para[i].getParameterAsInt(); else - log.log(Level.WARNING, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_M_Production_ID = getRecord_ID(); diff --git a/org.adempiere.base.process/src/org/compiere/process/ProductionProcess.java b/org.adempiere.base.process/src/org/compiere/process/ProductionProcess.java index 9b17ba5cbc..78d02718c7 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProductionProcess.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProductionProcess.java @@ -5,6 +5,7 @@ import java.util.List; import java.util.logging.Level; import org.compiere.model.I_M_ProductionPlan; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduction; import org.compiere.model.MProductionLine; import org.compiere.model.MProductionPlan; @@ -40,7 +41,7 @@ public class ProductionProcess extends SvrProcess { else if (name.equals("MovementDate")) p_MovementDate = (Timestamp)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_M_Production_ID = getRecord_ID(); diff --git a/org.adempiere.base.process/src/org/compiere/process/ProjectGenOrder.java b/org.adempiere.base.process/src/org/compiere/process/ProjectGenOrder.java index cf81488d27..3931b1a6a2 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProjectGenOrder.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProjectGenOrder.java @@ -21,6 +21,7 @@ import java.util.logging.Level; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProject; import org.compiere.model.MProjectLine; import org.compiere.util.Env; @@ -45,11 +46,10 @@ public class ProjectGenOrder extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_C_Project_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ProjectGenPO.java b/org.adempiere.base.process/src/org/compiere/process/ProjectGenPO.java index 7f5da02c9c..181429dd6d 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProjectGenPO.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProjectGenPO.java @@ -24,6 +24,7 @@ import org.compiere.model.MBPartner; import org.compiere.model.MConversionRate; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProductPO; import org.compiere.model.MProject; import org.compiere.model.MProjectLine; @@ -70,7 +71,7 @@ public class ProjectGenPO extends SvrProcess else if (name.equals("ConsolidateDocument")) m_ConsolidateDocument = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ProjectGenProduction.java b/org.adempiere.base.process/src/org/compiere/process/ProjectGenProduction.java index 6f153ef75e..3821ae881b 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProjectGenProduction.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProjectGenProduction.java @@ -24,6 +24,7 @@ package org.compiere.process; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProduction; import org.compiere.model.MProject; @@ -64,7 +65,7 @@ public class ProjectGenProduction extends SvrProcess else if (name.equals("C_ProjectLine_ID")) m_C_ProjectLine_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ProjectIssue.java b/org.adempiere.base.process/src/org/compiere/process/ProjectIssue.java index 6d99e9dbdb..27970bdc28 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProjectIssue.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProjectIssue.java @@ -22,6 +22,7 @@ import java.util.logging.Level; import org.compiere.model.MInOut; import org.compiere.model.MInOutLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProject; import org.compiere.model.MProjectIssue; import org.compiere.model.MProjectLine; @@ -100,7 +101,7 @@ public class ProjectIssue extends SvrProcess else if (name.equals("Description")) m_Description = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ProjectLinePricing.java b/org.adempiere.base.process/src/org/compiere/process/ProjectLinePricing.java index f93127c55d..d574039a5a 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProjectLinePricing.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProjectLinePricing.java @@ -21,6 +21,7 @@ import java.util.logging.Level; import org.adempiere.base.Core; import org.adempiere.base.IProductPricing; +import org.compiere.model.MProcessPara; import org.compiere.model.MProject; import org.compiere.model.MProjectLine; import org.compiere.util.Msg; @@ -45,11 +46,10 @@ public class ProjectLinePricing extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_C_ProjectLine_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ProjectPhaseGenOrder.java b/org.adempiere.base.process/src/org/compiere/process/ProjectPhaseGenOrder.java index f1134f044a..d08e6d90ee 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProjectPhaseGenOrder.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProjectPhaseGenOrder.java @@ -21,6 +21,7 @@ import java.util.logging.Level; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProject; import org.compiere.model.MProjectLine; import org.compiere.model.MProjectPhase; @@ -47,11 +48,10 @@ public class ProjectPhaseGenOrder extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ProjectSetType.java b/org.adempiere.base.process/src/org/compiere/process/ProjectSetType.java index 3496c213bc..efcb2e2032 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ProjectSetType.java +++ b/org.adempiere.base.process/src/org/compiere/process/ProjectSetType.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MProject; import org.compiere.model.MProjectType; @@ -50,7 +51,7 @@ public class ProjectSetType extends SvrProcess else if (name.equals("C_ProjectType_ID")) m_C_ProjectType_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/Recurring.java b/org.adempiere.base.process/src/org/compiere/process/Recurring.java index 1281ba553c..4c7a4b7fdb 100644 --- a/org.adempiere.base.process/src/org/compiere/process/Recurring.java +++ b/org.adempiere.base.process/src/org/compiere/process/Recurring.java @@ -18,6 +18,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRecurring; /** @@ -37,11 +38,10 @@ public class Recurring extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RegisterSystem.java b/org.adempiere.base.process/src/org/compiere/process/RegisterSystem.java index 02d3d260fd..5511a3192a 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RegisterSystem.java +++ b/org.adempiere.base.process/src/org/compiere/process/RegisterSystem.java @@ -23,6 +23,7 @@ import java.net.URLEncoder; import java.util.logging.Level; import org.compiere.model.MLocation; +import org.compiere.model.MProcessPara; import org.compiere.model.MSystem; import org.compiere.model.M_Registration; import org.compiere.util.AdempiereUserError; @@ -46,11 +47,10 @@ public class RegisterSystem extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ReplenishReport.java b/org.adempiere.base.process/src/org/compiere/process/ReplenishReport.java index e765bfa0e9..25a6cf05d6 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ReplenishReport.java +++ b/org.adempiere.base.process/src/org/compiere/process/ReplenishReport.java @@ -35,6 +35,7 @@ import org.compiere.model.MMovementLine; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; import org.compiere.model.MOrg; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MRequisition; import org.compiere.model.MRequisitionLine; @@ -93,7 +94,7 @@ public class ReplenishReport extends SvrProcess else if (name.equals("C_DocType_ID")) p_C_DocType_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ReplenishReportProduction.java b/org.adempiere.base.process/src/org/compiere/process/ReplenishReportProduction.java index ab182711d1..951b0c4e02 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ReplenishReportProduction.java +++ b/org.adempiere.base.process/src/org/compiere/process/ReplenishReportProduction.java @@ -36,6 +36,7 @@ import org.compiere.model.MMovementLine; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; import org.compiere.model.MOrg; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProduction; import org.compiere.model.MReplenish; @@ -102,7 +103,7 @@ public class ReplenishReportProduction extends SvrProcess else if (name.equals("C_DocType_ID")) p_C_DocType_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ReportColumnSet_Copy.java b/org.adempiere.base.process/src/org/compiere/process/ReportColumnSet_Copy.java index 357467d590..bc9f18271e 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ReportColumnSet_Copy.java +++ b/org.adempiere.base.process/src/org/compiere/process/ReportColumnSet_Copy.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.report.MReportColumn; import org.compiere.report.MReportColumnSet; @@ -56,7 +57,7 @@ public class ReportColumnSet_Copy extends SvrProcess else if (name.equals("PA_ReportColumnSet_ID")) m_PA_ReportColumnSet_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/ReportLineSet_Copy.java b/org.adempiere.base.process/src/org/compiere/process/ReportLineSet_Copy.java index f7edcc11c8..d5d15c2ae8 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ReportLineSet_Copy.java +++ b/org.adempiere.base.process/src/org/compiere/process/ReportLineSet_Copy.java @@ -20,6 +20,7 @@ import java.math.BigDecimal; import java.util.HashMap; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.report.MReportLine; import org.compiere.report.MReportLineSet; import org.compiere.report.MReportSource; @@ -58,7 +59,7 @@ public class ReportLineSet_Copy extends SvrProcess else if (name.equals("PA_ReportLineSet_ID")) m_PA_ReportLineSet_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RequestEMailProcessor.java b/org.adempiere.base.process/src/org/compiere/process/RequestEMailProcessor.java index 08be56c114..ccbb04e223 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RequestEMailProcessor.java +++ b/org.adempiere.base.process/src/org/compiere/process/RequestEMailProcessor.java @@ -37,6 +37,7 @@ import javax.mail.Store; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MAttachment; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MRequest; import org.compiere.model.MRequestType; import org.compiere.model.MUser; @@ -134,7 +135,7 @@ public class RequestEMailProcessor extends SvrProcess implements ProcessEmailHan else if (name.equals("HTMLAttachmentType")) p_HTMLAttachmentType = para[i].getParameterAsString(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if(p_HTMLAttachmentType == null) diff --git a/org.adempiere.base.process/src/org/compiere/process/RequestInvoice.java b/org.adempiere.base.process/src/org/compiere/process/RequestInvoice.java index 30548234ff..d3714b5284 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RequestInvoice.java +++ b/org.adempiere.base.process/src/org/compiere/process/RequestInvoice.java @@ -24,6 +24,7 @@ import java.util.logging.Level; import org.compiere.model.MBPartner; import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MRequest; import org.compiere.model.MRequestType; import org.compiere.model.MRequestUpdate; @@ -79,7 +80,7 @@ public class RequestInvoice extends SvrProcess else if (name.equals("M_Product_ID")) p_M_Product_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RequestReOpen.java b/org.adempiere.base.process/src/org/compiere/process/RequestReOpen.java index 4b37dc250d..d63f4505ca 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RequestReOpen.java +++ b/org.adempiere.base.process/src/org/compiere/process/RequestReOpen.java @@ -18,6 +18,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRequest; import org.compiere.util.AdempiereUserError; @@ -48,7 +49,7 @@ public class RequestReOpen extends SvrProcess else if (name.equals("R_Request_ID")) p_R_Request_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RequisitionPOCreate.java b/org.adempiere.base.process/src/org/compiere/process/RequisitionPOCreate.java index 9a4af76b1c..9d2c758c24 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RequisitionPOCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/RequisitionPOCreate.java @@ -29,6 +29,7 @@ import org.compiere.model.MCharge; import org.compiere.model.MConversionType; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProductPO; import org.compiere.model.MRequisition; @@ -132,7 +133,7 @@ public class RequisitionPOCreate extends SvrProcess else if (name.equals("ConsolidateDocument")) p_ConsolidateDocument = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RevenueRecognition.java b/org.adempiere.base.process/src/org/compiere/process/RevenueRecognition.java index c3f31abd1a..5cc2a4fb09 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RevenueRecognition.java +++ b/org.adempiere.base.process/src/org/compiere/process/RevenueRecognition.java @@ -19,7 +19,6 @@ package org.compiere.process; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.List; -import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MAcctSchema; @@ -31,6 +30,7 @@ import org.compiere.model.MInvoiceLine; import org.compiere.model.MJournal; import org.compiere.model.MJournalLine; import org.compiere.model.MOrg; +import org.compiere.model.MProcessPara; import org.compiere.model.MRevenueRecognitionRun; import org.compiere.model.Query; import org.compiere.util.Env; @@ -68,7 +68,7 @@ public class RevenueRecognition extends SvrProcess else if (name.equals("C_DocType_ID")) p_C_DocType_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } diff --git a/org.adempiere.base.process/src/org/compiere/process/RfQClose.java b/org.adempiere.base.process/src/org/compiere/process/RfQClose.java index 735ad16b38..afe4215941 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RfQClose.java +++ b/org.adempiere.base.process/src/org/compiere/process/RfQClose.java @@ -18,6 +18,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRfQ; import org.compiere.model.MRfQResponse; @@ -46,11 +47,10 @@ public class RfQClose extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_RfQ_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RfQCopyLines.java b/org.adempiere.base.process/src/org/compiere/process/RfQCopyLines.java index 95b9ffbed4..65d307275c 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RfQCopyLines.java +++ b/org.adempiere.base.process/src/org/compiere/process/RfQCopyLines.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRfQ; import org.compiere.model.MRfQLine; import org.compiere.model.MRfQLineQty; @@ -52,7 +53,7 @@ public class RfQCopyLines extends SvrProcess else if (name.equals("C_RfQ_ID")) p_From_RfQ_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_To_RfQ_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RfQCreate.java b/org.adempiere.base.process/src/org/compiere/process/RfQCreate.java index 1a8e76b8f4..d94ac1719d 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RfQCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/RfQCreate.java @@ -18,6 +18,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRfQ; import org.compiere.model.MRfQResponse; import org.compiere.model.MRfQTopic; @@ -51,7 +52,7 @@ public class RfQCreate extends SvrProcess else if (name.equals("IsSendRfQ")) p_IsSendRfQ = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_RfQ_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RfQCreatePO.java b/org.adempiere.base.process/src/org/compiere/process/RfQCreatePO.java index 3cd3ff720d..bda295d76e 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RfQCreatePO.java +++ b/org.adempiere.base.process/src/org/compiere/process/RfQCreatePO.java @@ -22,6 +22,7 @@ import java.util.logging.Level; import org.compiere.model.MBPartner; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MRfQ; import org.compiere.model.MRfQResponse; import org.compiere.model.MRfQResponseLine; @@ -60,7 +61,7 @@ public class RfQCreatePO extends SvrProcess else if (name.equals("C_DocType_ID")) p_C_DocType_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_RfQ_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RfQCreateSO.java b/org.adempiere.base.process/src/org/compiere/process/RfQCreateSO.java index 2be21e69dd..6af701447e 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RfQCreateSO.java +++ b/org.adempiere.base.process/src/org/compiere/process/RfQCreateSO.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import org.compiere.model.MBPartner; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MRfQ; import org.compiere.model.MRfQLine; import org.compiere.model.MRfQLineQty; @@ -56,7 +57,7 @@ public class RfQCreateSO extends SvrProcess else if (name.equals("C_DocType_ID")) p_C_DocType_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_RfQ_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RfQResponseCComplete.java b/org.adempiere.base.process/src/org/compiere/process/RfQResponseCComplete.java index 0c8e57208a..216e0d8516 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RfQResponseCComplete.java +++ b/org.adempiere.base.process/src/org/compiere/process/RfQResponseCComplete.java @@ -18,6 +18,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRfQResponse; /** @@ -40,11 +41,10 @@ public class RfQResponseCComplete extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_RfQResponse_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RfQResponseInvite.java b/org.adempiere.base.process/src/org/compiere/process/RfQResponseInvite.java index ac5d34c80e..990e7abc98 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RfQResponseInvite.java +++ b/org.adempiere.base.process/src/org/compiere/process/RfQResponseInvite.java @@ -18,6 +18,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRfQResponse; @@ -42,11 +43,10 @@ public class RfQResponseInvite extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_RfQResponse_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RfQResponseRank.java b/org.adempiere.base.process/src/org/compiere/process/RfQResponseRank.java index b1895a1815..36e6f58d03 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RfQResponseRank.java +++ b/org.adempiere.base.process/src/org/compiere/process/RfQResponseRank.java @@ -20,6 +20,7 @@ import java.math.BigDecimal; import java.util.Arrays; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRfQ; import org.compiere.model.MRfQLine; import org.compiere.model.MRfQLineQty; @@ -53,11 +54,10 @@ public class RfQResponseRank extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_RfQ_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RoleAccessUpdate.java b/org.adempiere.base.process/src/org/compiere/process/RoleAccessUpdate.java index e0fbfc3bcc..8c92fd2491 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RoleAccessUpdate.java +++ b/org.adempiere.base.process/src/org/compiere/process/RoleAccessUpdate.java @@ -22,6 +22,7 @@ import java.util.logging.Level; import org.compiere.Adempiere; import org.compiere.model.MClient; +import org.compiere.model.MProcessPara; import org.compiere.model.MRole; import org.compiere.model.Query; import org.compiere.model.SystemIDs; @@ -66,7 +67,7 @@ public class RoleAccessUpdate extends SvrProcess else if (name.equals("ResetAccess")) p_IsReset = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/RollUpCosts.java b/org.adempiere.base.process/src/org/compiere/process/RollUpCosts.java index fc1c6a7e95..99221c9d43 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RollUpCosts.java +++ b/org.adempiere.base.process/src/org/compiere/process/RollUpCosts.java @@ -31,7 +31,6 @@ import java.sql.Savepoint; import java.util.HashMap; import java.util.HashSet; import java.util.Map; -import java.util.logging.Level; import javax.sql.RowSet; @@ -41,6 +40,7 @@ import org.compiere.model.MCostElement; import org.compiere.model.MDocType; import org.compiere.model.MInventory; import org.compiere.model.MInventoryLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.util.DB; import org.compiere.util.Env; @@ -87,7 +87,7 @@ public class RollUpCosts extends SvrProcess { else if (name.equals("C_Charge_ID")) charge_id = para[i].getParameterAsInt(); else - log.log(Level.WARNING, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (getTable_ID() == MProduct.Table_ID) diff --git a/org.adempiere.base.process/src/org/compiere/process/SendMailText.java b/org.adempiere.base.process/src/org/compiere/process/SendMailText.java index 3ad1b12a5e..2016dda949 100644 --- a/org.adempiere.base.process/src/org/compiere/process/SendMailText.java +++ b/org.adempiere.base.process/src/org/compiere/process/SendMailText.java @@ -25,6 +25,7 @@ import java.util.logging.Level; import org.compiere.model.MClient; import org.compiere.model.MInterestArea; import org.compiere.model.MMailText; +import org.compiere.model.MProcessPara; import org.compiere.model.MUser; import org.compiere.model.MUserMail; import org.compiere.util.DB; @@ -87,7 +88,7 @@ public class SendMailText extends SvrProcess else if (name.equals("AD_User_ID")) m_AD_User_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/StorageCleanup.java b/org.adempiere.base.process/src/org/compiere/process/StorageCleanup.java index ba42f112df..96566d2009 100644 --- a/org.adempiere.base.process/src/org/compiere/process/StorageCleanup.java +++ b/org.adempiere.base.process/src/org/compiere/process/StorageCleanup.java @@ -25,6 +25,7 @@ import java.util.logging.Level; import org.compiere.model.MAttributeSetInstance; import org.compiere.model.MMovement; import org.compiere.model.MMovementLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MRefList; import org.compiere.model.MStorageOnHand; import org.compiere.util.DB; @@ -57,7 +58,7 @@ public class StorageCleanup extends SvrProcess else if (name.equals("C_DocType_ID")) p_C_DocType_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/TabCopy.java b/org.adempiere.base.process/src/org/compiere/process/TabCopy.java index c66dd404d1..c730a0187a 100644 --- a/org.adempiere.base.process/src/org/compiere/process/TabCopy.java +++ b/org.adempiere.base.process/src/org/compiere/process/TabCopy.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.util.logging.Level; import org.compiere.model.MField; +import org.compiere.model.MProcessPara; import org.compiere.model.MTab; import org.compiere.util.AdempiereUserError; import org.compiere.util.DB; @@ -52,7 +53,7 @@ public class TabCopy extends SvrProcess else if (name.equals("AD_Tab_ID")) p_AD_TabFrom_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_TabTo_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/TabCreateFields.java b/org.adempiere.base.process/src/org/compiere/process/TabCreateFields.java index 251ec73610..f3d7559dbd 100644 --- a/org.adempiere.base.process/src/org/compiere/process/TabCreateFields.java +++ b/org.adempiere.base.process/src/org/compiere/process/TabCreateFields.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import org.compiere.model.MColumn; import org.compiere.model.MField; +import org.compiere.model.MProcessPara; import org.compiere.model.MTab; import org.compiere.model.MTable; import org.compiere.model.PO; @@ -71,7 +72,7 @@ public class TabCreateFields extends SvrProcess else if (name.equals("CreatedSince")) p_CreatedSince = para[i].getParameterAsTimestamp(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_Tab_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/TableCreateColumns.java b/org.adempiere.base.process/src/org/compiere/process/TableCreateColumns.java index 061b6e7ae2..26b826fccc 100644 --- a/org.adempiere.base.process/src/org/compiere/process/TableCreateColumns.java +++ b/org.adempiere.base.process/src/org/compiere/process/TableCreateColumns.java @@ -24,6 +24,7 @@ import java.util.logging.Level; import org.compiere.db.AdempiereDatabase; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.M_Element; import org.compiere.model.PO; @@ -73,7 +74,7 @@ public class TableCreateColumns extends SvrProcess else if (name.equals("AllTables")) p_AllTables = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_Table_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/TaxDeclarationCreate.java b/org.adempiere.base.process/src/org/compiere/process/TaxDeclarationCreate.java index deaf3bb64e..defb9a9bb0 100644 --- a/org.adempiere.base.process/src/org/compiere/process/TaxDeclarationCreate.java +++ b/org.adempiere.base.process/src/org/compiere/process/TaxDeclarationCreate.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import org.compiere.model.MFactAcct; import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceTax; +import org.compiere.model.MProcessPara; import org.compiere.model.MTaxDeclaration; import org.compiere.model.MTaxDeclarationAcct; import org.compiere.model.MTaxDeclarationLine; @@ -64,7 +65,7 @@ public class TaxDeclarationCreate extends SvrProcess else if (name.equals("DeleteOld")) p_DeleteOld = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_TaxDeclaration_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/TransactionXRef.java b/org.adempiere.base.process/src/org/compiere/process/TransactionXRef.java index 025f667e9d..9e07e3c6c5 100644 --- a/org.adempiere.base.process/src/org/compiere/process/TransactionXRef.java +++ b/org.adempiere.base.process/src/org/compiere/process/TransactionXRef.java @@ -18,6 +18,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereUserError; import org.compiere.util.DB; @@ -53,7 +54,7 @@ public class TransactionXRef extends SvrProcess else if (name.equals("Search_Invoice_ID")) p_Search_Invoice_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/TranslationDocSync.java b/org.adempiere.base.process/src/org/compiere/process/TranslationDocSync.java index ab0d9e2315..e724894424 100644 --- a/org.adempiere.base.process/src/org/compiere/process/TranslationDocSync.java +++ b/org.adempiere.base.process/src/org/compiere/process/TranslationDocSync.java @@ -24,6 +24,7 @@ import org.adempiere.exceptions.AdempiereException; import org.adempiere.exceptions.DBException; import org.compiere.model.MClient; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.PO; import org.compiere.model.Query; @@ -51,11 +52,10 @@ public class TranslationDocSync extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/TreeMaintenance.java b/org.adempiere.base.process/src/org/compiere/process/TreeMaintenance.java index 87870d949a..5fb9b09e8d 100644 --- a/org.adempiere.base.process/src/org/compiere/process/TreeMaintenance.java +++ b/org.adempiere.base.process/src/org/compiere/process/TreeMaintenance.java @@ -21,6 +21,7 @@ import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.MTree; import org.compiere.model.MTree_Base; @@ -51,11 +52,10 @@ public class TreeMaintenance extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_AD_Tree_ID = getRecord_ID(); // from Window } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/UniversalSubstitution.java b/org.adempiere.base.process/src/org/compiere/process/UniversalSubstitution.java index 84e5f4c5b3..b1b51fde11 100644 --- a/org.adempiere.base.process/src/org/compiere/process/UniversalSubstitution.java +++ b/org.adempiere.base.process/src/org/compiere/process/UniversalSubstitution.java @@ -26,9 +26,9 @@ package org.compiere.process; import java.sql.SQLException; import java.util.List; -import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.eevolution.model.MPPProductBOMLine; @@ -54,7 +54,7 @@ public class UniversalSubstitution extends SvrProcess { else if (name.equals("Substitute_ID")) replacementId =para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/compiere/process/UserPassword.java b/org.adempiere.base.process/src/org/compiere/process/UserPassword.java index a5562e9d3a..cbcbcb81ac 100644 --- a/org.adempiere.base.process/src/org/compiere/process/UserPassword.java +++ b/org.adempiere.base.process/src/org/compiere/process/UserPassword.java @@ -18,6 +18,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MSysConfig; import org.compiere.model.MUser; import org.compiere.model.SystemIDs; @@ -68,7 +69,7 @@ public class UserPassword extends SvrProcess else if (name.equals("NewEMailConfirm")) p_NewEMailConfirm = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/VoidOnlineAuthorizationPaymentTransaction.java b/org.adempiere.base.process/src/org/compiere/process/VoidOnlineAuthorizationPaymentTransaction.java index 1ee4c25c29..dde80c1986 100644 --- a/org.adempiere.base.process/src/org/compiere/process/VoidOnlineAuthorizationPaymentTransaction.java +++ b/org.adempiere.base.process/src/org/compiere/process/VoidOnlineAuthorizationPaymentTransaction.java @@ -4,6 +4,7 @@ import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MPaymentTransaction; +import org.compiere.model.MProcessPara; import org.compiere.util.Env; import org.compiere.util.Msg; @@ -15,11 +16,10 @@ public class VoidOnlineAuthorizationPaymentTransaction extends SvrProcess { ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base.process/src/org/compiere/process/WindowCopy.java b/org.adempiere.base.process/src/org/compiere/process/WindowCopy.java index 79fbdd43a3..7f28d995c0 100644 --- a/org.adempiere.base.process/src/org/compiere/process/WindowCopy.java +++ b/org.adempiere.base.process/src/org/compiere/process/WindowCopy.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.util.logging.Level; import org.compiere.model.MField; +import org.compiere.model.MProcessPara; import org.compiere.model.MTab; import org.compiere.model.MWindow; import org.compiere.util.AdempiereUserError; @@ -53,7 +54,7 @@ public class WindowCopy extends SvrProcess else if (name.equals("AD_Window_ID")) p_AD_WindowFrom_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_WindowTo_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/compiere/process/YearCreatePeriods.java b/org.adempiere.base.process/src/org/compiere/process/YearCreatePeriods.java index a0184e0ed4..b24afae196 100644 --- a/org.adempiere.base.process/src/org/compiere/process/YearCreatePeriods.java +++ b/org.adempiere.base.process/src/org/compiere/process/YearCreatePeriods.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.sql.Timestamp; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MYear; import org.compiere.util.AdempiereUserError; @@ -52,7 +53,7 @@ public class YearCreatePeriods extends SvrProcess else if (name.equals("DateFormat")) p_DateFormat = (String) para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_Year_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base.process/src/org/idempiere/process/ChangeBaseLanguage.java b/org.adempiere.base.process/src/org/idempiere/process/ChangeBaseLanguage.java index 8a9c8a4143..50c2894e5e 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/ChangeBaseLanguage.java +++ b/org.adempiere.base.process/src/org/idempiere/process/ChangeBaseLanguage.java @@ -28,6 +28,7 @@ package org.idempiere.process; import java.util.logging.Level; import org.compiere.model.MLanguage; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.AdempiereUserError; @@ -56,7 +57,7 @@ public class ChangeBaseLanguage extends SvrProcess if (name.equals("AD_Language")) { p_Language = (String) para.getParameter(); } else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } // prepare diff --git a/org.adempiere.base.process/src/org/idempiere/process/CleanOrphanCascade.java b/org.adempiere.base.process/src/org/idempiere/process/CleanOrphanCascade.java index 87cfefe555..a27ee7feef 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/CleanOrphanCascade.java +++ b/org.adempiere.base.process/src/org/idempiere/process/CleanOrphanCascade.java @@ -30,6 +30,7 @@ import java.util.logging.Level; import org.compiere.model.MArchive; import org.compiere.model.MAttachment; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.MTree_Base; import org.compiere.model.Query; @@ -61,7 +62,7 @@ public class CleanOrphanCascade extends SvrProcess if ("IsCleanChangeLog".equals(name)) { p_IsCleanChangeLog = para.getParameterAsBoolean(); } else { - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } } // prepare diff --git a/org.adempiere.base.process/src/org/idempiere/process/CreateTable.java b/org.adempiere.base.process/src/org/idempiere/process/CreateTable.java index 01f14f7d64..e3b4db2c57 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/CreateTable.java +++ b/org.adempiere.base.process/src/org/idempiere/process/CreateTable.java @@ -40,13 +40,12 @@ import static org.compiere.model.SystemIDs.REFERENCE_DOCUMENTACTION; import static org.compiere.model.SystemIDs.REFERENCE_DOCUMENTSTATUS; import static org.compiere.model.SystemIDs.REFERENCE_POSTED; -import java.util.logging.Level; - import org.adempiere.exceptions.AdempiereException; import org.compiere.acct.Doc; import org.compiere.model.MColumn; import org.compiere.model.MIndexColumn; import org.compiere.model.MProcess; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.MTableIndex; import org.compiere.model.M_Element; @@ -208,7 +207,7 @@ public class CreateTable extends SvrProcess { break; default: - if (log.isLoggable(Level.INFO)) log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } p_record_ID = getRecord_ID(); diff --git a/org.adempiere.base.process/src/org/idempiere/process/ImportCSVProcess.java b/org.adempiere.base.process/src/org/idempiere/process/ImportCSVProcess.java index 6755186c78..8e92b4cef9 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/ImportCSVProcess.java +++ b/org.adempiere.base.process/src/org/idempiere/process/ImportCSVProcess.java @@ -47,6 +47,7 @@ import org.compiere.model.GridTable; import org.compiere.model.GridWindow; import org.compiere.model.MImportTemplate; import org.compiere.model.MLookup; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfo; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -72,7 +73,7 @@ public class ImportCSVProcess extends SvrProcess implements DataStatusListener { } else if ("ImportMode".equals(name)) { p_ImportMode = para.getParameterAsString(); } else { - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } } diff --git a/org.adempiere.base.process/src/org/idempiere/process/InvoiceCreateCreditMemo.java b/org.adempiere.base.process/src/org/idempiere/process/InvoiceCreateCreditMemo.java index 72f0e9ddcc..1d4ae2a555 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/InvoiceCreateCreditMemo.java +++ b/org.adempiere.base.process/src/org/idempiere/process/InvoiceCreateCreditMemo.java @@ -35,6 +35,7 @@ import org.compiere.model.MDocType; import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine; import org.compiere.model.MPeriod; +import org.compiere.model.MProcessPara; import org.compiere.process.DocAction; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -84,7 +85,7 @@ public class InvoiceCreateCreditMemo extends SvrProcess { p_IsCreateAllocation = para.getParameterAsBoolean(); break; default: - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } invoice = new MInvoice(getCtx(), getRecord_ID(), get_TrxName()); diff --git a/org.adempiere.base.process/src/org/idempiere/process/MaintainSupportRoles.java b/org.adempiere.base.process/src/org/idempiere/process/MaintainSupportRoles.java index 7d0f3ba017..fe2d73e090 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/MaintainSupportRoles.java +++ b/org.adempiere.base.process/src/org/idempiere/process/MaintainSupportRoles.java @@ -29,6 +29,7 @@ package org.idempiere.process; import java.util.List; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MRole; import org.compiere.model.MUserRoles; import org.compiere.model.Query; @@ -56,7 +57,7 @@ public class MaintainSupportRoles extends SvrProcess { if ("IsActive".equals(name)) { p_IsActive = para.getParameterAsString(); } else { - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } } // prepare diff --git a/org.adempiere.base.process/src/org/idempiere/process/MigrateStorageProvider.java b/org.adempiere.base.process/src/org/idempiere/process/MigrateStorageProvider.java index d33670c22a..69754d7e4a 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/MigrateStorageProvider.java +++ b/org.adempiere.base.process/src/org/idempiere/process/MigrateStorageProvider.java @@ -39,6 +39,7 @@ import org.compiere.model.MAttachmentEntry; import org.compiere.model.MClient; import org.compiere.model.MClientInfo; import org.compiere.model.MImage; +import org.compiere.model.MProcessPara; import org.compiere.model.MStorageProvider; import org.compiere.model.Query; import org.compiere.process.ProcessInfoParameter; @@ -93,7 +94,7 @@ public class MigrateStorageProvider extends SvrProcess { } else if ("DeleteOld".equals(name)) { p_DeleteOld = para.getParameterAsBoolean(); } else { - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } } // prepare diff --git a/org.adempiere.base.process/src/org/idempiere/process/PrintFormatItemSync.java b/org.adempiere.base.process/src/org/idempiere/process/PrintFormatItemSync.java index 3b68aca459..b1f5ffa92f 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/PrintFormatItemSync.java +++ b/org.adempiere.base.process/src/org/idempiere/process/PrintFormatItemSync.java @@ -27,6 +27,7 @@ package org.idempiere.process; import java.util.ArrayList; +import org.compiere.model.MProcessPara; import org.compiere.model.Query; import org.compiere.print.MPrintFormat; import org.compiere.print.MPrintFormatItem; @@ -66,6 +67,8 @@ public class PrintFormatItemSync extends SvrProcess { p_language = para[i].getParameterAsString(); else if (name.equals("Source")) p_source = para[i].getParameterAsString(); + else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base.process/src/org/idempiere/process/RecurringRun.java b/org.adempiere.base.process/src/org/idempiere/process/RecurringRun.java index b91942da0f..c1068ea0ed 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/RecurringRun.java +++ b/org.adempiere.base.process/src/org/idempiere/process/RecurringRun.java @@ -34,6 +34,7 @@ import org.compiere.model.MInvoice; import org.compiere.model.MJournal; import org.compiere.model.MJournalBatch; import org.compiere.model.MOrder; +import org.compiere.model.MProcessPara; import org.compiere.model.MRecurring; import org.compiere.model.PO; import org.compiere.model.Query; @@ -82,7 +83,7 @@ public class RecurringRun extends SvrProcess prms.add(new ValueNamePair(name, prm)); } } else { - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } } // prepare diff --git a/org.adempiere.base.process/src/org/idempiere/process/VerifyLanguageConfiguration.java b/org.adempiere.base.process/src/org/idempiere/process/VerifyLanguageConfiguration.java index 59430f1f59..8f4afe5a86 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/VerifyLanguageConfiguration.java +++ b/org.adempiere.base.process/src/org/idempiere/process/VerifyLanguageConfiguration.java @@ -25,8 +25,7 @@ **********************************************************************/ package org.idempiere.process; -import java.util.logging.Level; - +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -45,8 +44,7 @@ public class VerifyLanguageConfiguration extends SvrProcess { for (ProcessInfoParameter para : getParameter()) { - String name = para.getParameterName(); - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } // prepare diff --git a/org.adempiere.base/src/org/adempiere/process/DepositBatchClose.java b/org.adempiere.base/src/org/adempiere/process/DepositBatchClose.java index 7f3ebc29af..d29389eea7 100644 --- a/org.adempiere.base/src/org/adempiere/process/DepositBatchClose.java +++ b/org.adempiere.base/src/org/adempiere/process/DepositBatchClose.java @@ -55,11 +55,10 @@ public class DepositBatchClose extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_C_DepositBatch_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/adempiere/process/Fill1099Extract.java b/org.adempiere.base/src/org/adempiere/process/Fill1099Extract.java index 3c9c2ba2c0..f6924663cd 100644 --- a/org.adempiere.base/src/org/adempiere/process/Fill1099Extract.java +++ b/org.adempiere.base/src/org/adempiere/process/Fill1099Extract.java @@ -18,6 +18,8 @@ package org.adempiere.process; import java.sql.*; import java.util.logging.*; + +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.*; @@ -46,7 +48,7 @@ public class Fill1099Extract extends SvrProcess else if (name.equals("Cut_Date")) p_Cut_Date = (Timestamp)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (p_Cut_Date == null) p_Cut_Date = new Timestamp (System.currentTimeMillis()); diff --git a/org.adempiere.base/src/org/adempiere/process/OnlineShipmentProcess.java b/org.adempiere.base/src/org/adempiere/process/OnlineShipmentProcess.java index 189c997d66..f7a11b6723 100644 --- a/org.adempiere.base/src/org/adempiere/process/OnlineShipmentProcess.java +++ b/org.adempiere.base/src/org/adempiere/process/OnlineShipmentProcess.java @@ -15,9 +15,9 @@ package org.adempiere.process; import java.sql.Timestamp; -import java.util.logging.Level; import org.compiere.model.MPackage; +import org.compiere.model.MProcessPara; import org.compiere.model.MShippingTransaction; import org.compiere.process.ProcessInfoLog; import org.compiere.process.ProcessInfoParameter; @@ -37,11 +37,10 @@ public class OnlineShipmentProcess extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/adempiere/process/RateInquiryProcess.java b/org.adempiere.base/src/org/adempiere/process/RateInquiryProcess.java index fc36cfac22..d9dbe6b236 100644 --- a/org.adempiere.base/src/org/adempiere/process/RateInquiryProcess.java +++ b/org.adempiere.base/src/org/adempiere/process/RateInquiryProcess.java @@ -1,9 +1,9 @@ package org.adempiere.process; import java.sql.Timestamp; -import java.util.logging.Level; import org.compiere.model.MPackage; +import org.compiere.model.MProcessPara; import org.compiere.model.MShippingTransaction; import org.compiere.process.ProcessInfoLog; import org.compiere.process.ProcessInfoParameter; @@ -26,7 +26,7 @@ public class RateInquiryProcess extends SvrProcess else if (name.equals(MShippingTransaction.COLUMNNAME_IsPriviledgedRate)) p_IsPriviledgedRate = ((String)para[i].getParameter()).equals("Y"); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/adempiere/process/ResetLockedAccount.java b/org.adempiere.base/src/org/adempiere/process/ResetLockedAccount.java index a7cd15c8c0..1d227c8d8f 100644 --- a/org.adempiere.base/src/org/adempiere/process/ResetLockedAccount.java +++ b/org.adempiere.base/src/org/adempiere/process/ResetLockedAccount.java @@ -1,8 +1,7 @@ package org.adempiere.process; -import java.util.logging.Level; - import org.adempiere.exceptions.AdempiereException; +import org.compiere.model.MProcessPara; import org.compiere.model.MSysConfig; import org.compiere.model.MUser; import org.compiere.process.ProcessInfoParameter; @@ -32,7 +31,7 @@ public class ResetLockedAccount extends SvrProcess { else if (name.equals("AD_User_ID")) p_AD_User_ID = element.getParameterAsInt(); else - if (log.isLoggable(Level.INFO))log.log(Level.INFO, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), element); } } diff --git a/org.adempiere.base/src/org/adempiere/process/SalesOrderRateInquiryProcess.java b/org.adempiere.base/src/org/adempiere/process/SalesOrderRateInquiryProcess.java index 89de078d46..856c9232a9 100644 --- a/org.adempiere.base/src/org/adempiere/process/SalesOrderRateInquiryProcess.java +++ b/org.adempiere.base/src/org/adempiere/process/SalesOrderRateInquiryProcess.java @@ -29,6 +29,7 @@ import org.adempiere.util.ShippingUtil; import org.compiere.model.MClientInfo; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MShipper; import org.compiere.model.MShipperLabels; @@ -65,7 +66,7 @@ public class SalesOrderRateInquiryProcess extends SvrProcess else if (name.equals(MShippingTransaction.COLUMNNAME_IsPriviledgedRate)) p_IsPriviledgedRate = ((String)para[i].getParameter()).equals("Y"); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/adempiere/process/ShipperCopyFrom.java b/org.adempiere.base/src/org/adempiere/process/ShipperCopyFrom.java index 5df419bb71..c0f5d310ff 100644 --- a/org.adempiere.base/src/org/adempiere/process/ShipperCopyFrom.java +++ b/org.adempiere.base/src/org/adempiere/process/ShipperCopyFrom.java @@ -3,6 +3,7 @@ package org.adempiere.process; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.X_M_ShipperCfg; import org.compiere.model.X_M_ShipperLabelsCfg; import org.compiere.model.X_M_ShipperPackagingCfg; @@ -27,7 +28,7 @@ public class ShipperCopyFrom extends SvrProcess else if (name.equals(X_M_ShipperCfg.COLUMNNAME_M_ShipperCfg_ID)) p_M_ShipperCfg_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/adempiere/process/UUIDGenerator.java b/org.adempiere.base/src/org/adempiere/process/UUIDGenerator.java index a16ea22d8a..71b6c22f0a 100644 --- a/org.adempiere.base/src/org/adempiere/process/UUIDGenerator.java +++ b/org.adempiere.base/src/org/adempiere/process/UUIDGenerator.java @@ -26,6 +26,7 @@ import java.util.logging.Level; import org.adempiere.exceptions.DBException; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.M_Element; import org.compiere.model.PO; @@ -70,7 +71,7 @@ public class UUIDGenerator extends SvrProcess { else if (param.getParameterName().equals("IsFillUUID")) isFillUUID = param.getParameterAsBoolean(); else - log.log(Level.SEVERE, "Unknown Parameter: " + param.getParameterName()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), param); } } diff --git a/org.adempiere.base/src/org/adempiere/process/ValidateAddressProcess.java b/org.adempiere.base/src/org/adempiere/process/ValidateAddressProcess.java index c7eb99b6bd..11f018ea6a 100644 --- a/org.adempiere.base/src/org/adempiere/process/ValidateAddressProcess.java +++ b/org.adempiere.base/src/org/adempiere/process/ValidateAddressProcess.java @@ -15,11 +15,11 @@ package org.adempiere.process; import java.sql.Timestamp; import java.util.StringTokenizer; -import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MAddressTransaction; import org.compiere.model.MLocation; +import org.compiere.model.MProcessPara; import org.compiere.model.MSysConfig; import org.compiere.process.ProcessInfoLog; import org.compiere.process.ProcessInfoParameter; @@ -49,7 +49,7 @@ public class ValidateAddressProcess extends SvrProcess else if (name.equals(MAddressTransaction.COLUMNNAME_C_AddressValidation_ID)) p_C_AddressValidation_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/adempiere/process/ValidateTaxProviderConnection.java b/org.adempiere.base/src/org/adempiere/process/ValidateTaxProviderConnection.java index ac6566006d..8af51d2069 100644 --- a/org.adempiere.base/src/org/adempiere/process/ValidateTaxProviderConnection.java +++ b/org.adempiere.base/src/org/adempiere/process/ValidateTaxProviderConnection.java @@ -13,11 +13,10 @@ *****************************************************************************/ package org.adempiere.process; -import java.util.logging.Level; - import org.adempiere.base.Core; import org.adempiere.exceptions.AdempiereException; import org.adempiere.model.ITaxProvider; +import org.compiere.model.MProcessPara; import org.compiere.model.MTaxProvider; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -37,11 +36,10 @@ public class ValidateTaxProviderConnection extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/adempiere/process/VoidShipmentProcess.java b/org.adempiere.base/src/org/adempiere/process/VoidShipmentProcess.java index 9c73add726..65ce4ef13b 100644 --- a/org.adempiere.base/src/org/adempiere/process/VoidShipmentProcess.java +++ b/org.adempiere.base/src/org/adempiere/process/VoidShipmentProcess.java @@ -16,9 +16,9 @@ package org.adempiere.process; import java.math.BigDecimal; import java.sql.Timestamp; -import java.util.logging.Level; import org.compiere.model.MPackage; +import org.compiere.model.MProcessPara; import org.compiere.model.MShippingTransaction; import org.compiere.process.ProcessInfoLog; import org.compiere.process.ProcessInfoParameter; @@ -38,11 +38,10 @@ public class VoidShipmentProcess extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/compiere/impexp/CopyImportFormat.java b/org.adempiere.base/src/org/compiere/impexp/CopyImportFormat.java index 4bc320e72b..74c6eb6b8b 100644 --- a/org.adempiere.base/src/org/compiere/impexp/CopyImportFormat.java +++ b/org.adempiere.base/src/org/compiere/impexp/CopyImportFormat.java @@ -19,6 +19,7 @@ package org.compiere.impexp; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -49,7 +50,7 @@ public class CopyImportFormat extends SvrProcess else if (name.equals("AD_ImpFormat_ID")) from_AD_ImpFormat_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } to_AD_ImpFormat_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/compiere/model/MProcessPara.java b/org.adempiere.base/src/org/compiere/model/MProcessPara.java index bfa3a9bb8b..5d8ff7f9c0 100644 --- a/org.adempiere.base/src/org/compiere/model/MProcessPara.java +++ b/org.adempiere.base/src/org/compiere/model/MProcessPara.java @@ -21,6 +21,8 @@ import java.util.Properties; import java.util.logging.Level; import org.adempiere.process.UUIDGenerator; +import org.compiere.process.ProcessInfoParameter; +import org.compiere.util.CLogger; import org.compiere.util.DB; import org.compiere.util.DisplayType; import org.compiere.util.Env; @@ -41,7 +43,10 @@ public class MProcessPara extends X_AD_Process_Para implements ImmutablePOSuppor /** * */ - private static final long serialVersionUID = -770944613761780314L; + private static final long serialVersionUID = -1757466458508655102L; + + /** Static Logger */ + private static CLogger s_log = CLogger.getCLogger (MProcessPara.class); /** * Get MProcessPara from Cache (immutable) @@ -378,4 +383,27 @@ public class MProcessPara extends X_AD_Process_Para implements ImmutablePOSuppor return this; } + /** + * Write in log when an unexpected parameter is processed + * If the parameter is defined in dictionary log at INFO level as a custom parameter + * Otherwise log at SEVERE level as unknown parameter + * @param processId + * @param para + */ + public static void validateUnknownParameter(int processId, ProcessInfoParameter para) { + MProcess process = MProcess.get(processId); + StringBuilder msg = new StringBuilder("Process ").append(process.getValue()).append(" - "); + Level level; + if (process.getParameter(para.getParameterName()) == null) { + msg.append("Unknown"); + level = Level.SEVERE; + } else { + msg.append("Custom"); + level = Level.INFO; + } + msg.append(" Parameter: ").append(para.getParameterName()).append("=").append(para.getInfo()); + if (s_log.isLoggable(level)) + s_log.log(level, msg.toString()); + } + } // MProcessPara diff --git a/org.adempiere.base/src/org/compiere/print/MPrintFormatProcess.java b/org.adempiere.base/src/org/compiere/print/MPrintFormatProcess.java index 022efd533b..3dff89367e 100644 --- a/org.adempiere.base/src/org/compiere/print/MPrintFormatProcess.java +++ b/org.adempiere.base/src/org/compiere/print/MPrintFormatProcess.java @@ -19,6 +19,7 @@ package org.compiere.print; import java.math.BigDecimal; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -55,8 +56,7 @@ public class MPrintFormatProcess extends SvrProcess else if (name.equals("AD_Table_ID")) m_AD_Table_ID = ((BigDecimal)para[i].getParameter()); else - log.log(Level.SEVERE, "prepare - Unknown Parameter=" - + para[i].getParameterName()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base/src/org/compiere/process/AddAuthorizationProcess.java b/org.adempiere.base/src/org/compiere/process/AddAuthorizationProcess.java index 1549b25e3b..b686608b96 100644 --- a/org.adempiere.base/src/org/compiere/process/AddAuthorizationProcess.java +++ b/org.adempiere.base/src/org/compiere/process/AddAuthorizationProcess.java @@ -30,6 +30,7 @@ import java.util.logging.Level; import org.compiere.model.MAuthorizationCredential; import org.compiere.model.MPInstance; +import org.compiere.model.MProcessPara; /** * IDEMPIERE-3101 @@ -62,8 +63,7 @@ public class AddAuthorizationProcess extends SvrProcess { case "AD_Language": break; // ignored, is just to save it in AD_Process_Para case "Auth_CallbackAnswer": break; // ignored, is just to save it in AD_Process_Para default: - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); break; } } diff --git a/org.adempiere.base/src/org/compiere/process/CreateForeignKey.java b/org.adempiere.base/src/org/compiere/process/CreateForeignKey.java index de497140de..337fd49ce6 100644 --- a/org.adempiere.base/src/org/compiere/process/CreateForeignKey.java +++ b/org.adempiere.base/src/org/compiere/process/CreateForeignKey.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import org.compiere.model.DatabaseKey; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.PO; import org.compiere.util.DB; @@ -60,7 +61,7 @@ public class CreateForeignKey extends SvrProcess { else if (name.equals("AD_Column_ID")) p_AD_Column_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/compiere/process/CreateTableIndex.java b/org.adempiere.base/src/org/compiere/process/CreateTableIndex.java index ab5332cd63..22fe9ec9f8 100644 --- a/org.adempiere.base/src/org/compiere/process/CreateTableIndex.java +++ b/org.adempiere.base/src/org/compiere/process/CreateTableIndex.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import org.compiere.model.MColumn; import org.compiere.model.MIndexColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.MTableIndex; import org.compiere.util.DB; @@ -56,7 +57,7 @@ public class CreateTableIndex extends SvrProcess { else if (name.equals("AD_Table_ID")) p_AD_Table_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/compiere/process/DatabaseColumnDrop.java b/org.adempiere.base/src/org/compiere/process/DatabaseColumnDrop.java index 064e475ebe..b6fb8d049f 100644 --- a/org.adempiere.base/src/org/compiere/process/DatabaseColumnDrop.java +++ b/org.adempiere.base/src/org/compiere/process/DatabaseColumnDrop.java @@ -25,10 +25,9 @@ package org.compiere.process; -import java.util.logging.Level; - import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.util.DB; import org.compiere.util.Msg; @@ -52,8 +51,7 @@ public class DatabaseColumnDrop extends SvrProcess { } else if ("IsEvenWithData".equals(name)) { p_IsEvenWithData = para.getParameterAsBoolean(); } else { - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } p_AD_Column_ID = getRecord_ID(); diff --git a/org.adempiere.base/src/org/compiere/process/DatabaseElementColumnRename.java b/org.adempiere.base/src/org/compiere/process/DatabaseElementColumnRename.java index f5acc3dc4b..50991c9047 100644 --- a/org.adempiere.base/src/org/compiere/process/DatabaseElementColumnRename.java +++ b/org.adempiere.base/src/org/compiere/process/DatabaseElementColumnRename.java @@ -25,9 +25,8 @@ package org.compiere.process; -import java.util.logging.Level; - import org.adempiere.exceptions.AdempiereException; +import org.compiere.model.MProcessPara; import org.compiere.model.M_Element; import org.compiere.util.DB; import org.compiere.util.Msg; @@ -47,8 +46,7 @@ public class DatabaseElementColumnRename extends SvrProcess { if ("NewColumnName".equals(name)) { p_NewColumnName = para.getParameterAsString(); } else { - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } p_AD_Element_ID = getRecord_ID(); diff --git a/org.adempiere.base/src/org/compiere/process/DatabaseTableColumnRename.java b/org.adempiere.base/src/org/compiere/process/DatabaseTableColumnRename.java index 45d84b908c..9ba0d53213 100644 --- a/org.adempiere.base/src/org/compiere/process/DatabaseTableColumnRename.java +++ b/org.adempiere.base/src/org/compiere/process/DatabaseTableColumnRename.java @@ -25,10 +25,9 @@ package org.compiere.process; -import java.util.logging.Level; - import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.M_Element; import org.compiere.util.DB; import org.compiere.util.Msg; @@ -49,8 +48,7 @@ public class DatabaseTableColumnRename extends SvrProcess { if ("AD_Element_ID".equals(name)) { p_AD_Element_ID = para.getParameterAsInt(); } else { - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } p_AD_Column_ID = getRecord_ID(); diff --git a/org.adempiere.base/src/org/compiere/process/DatabaseTableDrop.java b/org.adempiere.base/src/org/compiere/process/DatabaseTableDrop.java index eea6d7561a..3a34ad6c89 100644 --- a/org.adempiere.base/src/org/compiere/process/DatabaseTableDrop.java +++ b/org.adempiere.base/src/org/compiere/process/DatabaseTableDrop.java @@ -25,9 +25,8 @@ package org.compiere.process; -import java.util.logging.Level; - import org.adempiere.exceptions.AdempiereException; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.util.DB; import org.compiere.util.Msg; @@ -51,8 +50,7 @@ public class DatabaseTableDrop extends SvrProcess { } else if ("IsEvenWithData".equals(name)) { p_IsEvenWithData = para.getParameterAsBoolean(); } else { - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } p_AD_Table_ID = getRecord_ID(); diff --git a/org.adempiere.base/src/org/compiere/process/DatabaseTableRename.java b/org.adempiere.base/src/org/compiere/process/DatabaseTableRename.java index c18c30de9e..18032dbab6 100644 --- a/org.adempiere.base/src/org/compiere/process/DatabaseTableRename.java +++ b/org.adempiere.base/src/org/compiere/process/DatabaseTableRename.java @@ -26,10 +26,10 @@ package org.compiere.process; import java.util.List; -import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MClient; +import org.compiere.model.MProcessPara; import org.compiere.model.MRefTable; import org.compiere.model.MSequence; import org.compiere.model.MTab; @@ -54,8 +54,7 @@ public class DatabaseTableRename extends SvrProcess { if ("NewTableName".equals(name)) { p_NewTableName = para.getParameterAsString(); } else { - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } p_AD_Table_ID = getRecord_ID(); diff --git a/org.adempiere.base/src/org/compiere/process/FactReconcile.java b/org.adempiere.base/src/org/compiere/process/FactReconcile.java index 15e5cde3e9..85cead424d 100644 --- a/org.adempiere.base/src/org/compiere/process/FactReconcile.java +++ b/org.adempiere.base/src/org/compiere/process/FactReconcile.java @@ -25,6 +25,7 @@ import org.adempiere.process.UUIDGenerator; import org.compiere.model.MColumn; import org.compiere.model.MElementValue; import org.compiere.model.MFactReconciliation; +import org.compiere.model.MProcessPara; import org.compiere.model.MRule; import org.compiere.model.MSequence; import org.compiere.model.PO; @@ -57,7 +58,7 @@ public class FactReconcile extends SvrProcess else if (name.equals("Account_ID")) accountID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); if ( accountID > 0 ) account = new MElementValue(getCtx(), accountID, get_TrxName()); diff --git a/org.adempiere.base/src/org/compiere/process/FactReconciliation.java b/org.adempiere.base/src/org/compiere/process/FactReconciliation.java index fc428dc169..df5379a3f7 100644 --- a/org.adempiere.base/src/org/compiere/process/FactReconciliation.java +++ b/org.adempiere.base/src/org/compiere/process/FactReconciliation.java @@ -6,6 +6,7 @@ import java.sql.SQLException; import java.sql.Timestamp; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.util.DB; import org.compiere.util.Msg; @@ -40,7 +41,7 @@ public class FactReconciliation extends SvrProcess else if (name.equals("Account_ID")) p_Account_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base/src/org/compiere/process/MFACompleteRegistration.java b/org.adempiere.base/src/org/compiere/process/MFACompleteRegistration.java index 778a7be5d9..2afd7b1d2c 100644 --- a/org.adempiere.base/src/org/compiere/process/MFACompleteRegistration.java +++ b/org.adempiere.base/src/org/compiere/process/MFACompleteRegistration.java @@ -33,6 +33,7 @@ import org.adempiere.exceptions.AdempiereException; import org.compiere.model.IMFAMechanism; import org.compiere.model.MMFAMethod; import org.compiere.model.MMFARegistration; +import org.compiere.model.MProcessPara; import org.compiere.util.Msg; import org.compiere.util.Util; @@ -61,8 +62,7 @@ public class MFACompleteRegistration extends SvrProcess { case "Name": p_Name = para.getParameterAsString(); break; case "IsUserMFAPreferred": p_IsUserMFAPreferred = para.getParameterAsBoolean(); break; default: - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); break; } } diff --git a/org.adempiere.base/src/org/compiere/process/MFARegister.java b/org.adempiere.base/src/org/compiere/process/MFARegister.java index cff609c49e..ca7e3710c3 100644 --- a/org.adempiere.base/src/org/compiere/process/MFARegister.java +++ b/org.adempiere.base/src/org/compiere/process/MFARegister.java @@ -33,6 +33,7 @@ import org.adempiere.exceptions.AdempiereException; import org.compiere.model.IMFAMechanism; import org.compiere.model.MMFAMethod; import org.compiere.model.MMFARegistration; +import org.compiere.model.MProcessPara; import org.compiere.util.AdempiereSystemError; import org.compiere.util.Msg; @@ -59,8 +60,7 @@ public class MFARegister extends SvrProcess { case "MFA_Method_ID": p_MFA_Method_ID = para.getParameterAsInt(); break; case "ParameterValue": p_ParameterValue = para.getParameterAsString(); break; default: - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); break; } } diff --git a/org.adempiere.base/src/org/compiere/process/MFARevokeDevice.java b/org.adempiere.base/src/org/compiere/process/MFARevokeDevice.java index 6a7e6e1833..86fac1b1b5 100644 --- a/org.adempiere.base/src/org/compiere/process/MFARevokeDevice.java +++ b/org.adempiere.base/src/org/compiere/process/MFARevokeDevice.java @@ -32,6 +32,7 @@ import java.util.List; import java.util.logging.Level; import org.compiere.model.MMFARegisteredDevice; +import org.compiere.model.MProcessPara; import org.compiere.model.PO; import org.compiere.model.Query; import org.compiere.util.Env; @@ -56,8 +57,7 @@ public class MFARevokeDevice extends SvrProcess { case "MFARevokeAll": p_MFARevokeAll = para.getParameterAsBoolean(); break; case "MFA_RegisteredDevice_ID": p_MFA_RegisteredDevice_ID = para.getParameterAsInt(); break; default: - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); break; } } diff --git a/org.adempiere.base/src/org/compiere/process/MFAUnregister.java b/org.adempiere.base/src/org/compiere/process/MFAUnregister.java index 4bd263e453..83812b9abb 100644 --- a/org.adempiere.base/src/org/compiere/process/MFAUnregister.java +++ b/org.adempiere.base/src/org/compiere/process/MFAUnregister.java @@ -31,6 +31,7 @@ import java.sql.Timestamp; import java.util.logging.Level; import org.compiere.model.MMFARegistration; +import org.compiere.model.MProcessPara; import org.compiere.model.PO; /** @@ -50,8 +51,7 @@ public class MFAUnregister extends SvrProcess { switch (name) { case "MFA_Registration_ID": p_MFA_Registration_ID = para.getParameterAsInt(); break; default: - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); break; } } diff --git a/org.adempiere.base/src/org/compiere/process/PosKeyGenerate.java b/org.adempiere.base/src/org/compiere/process/PosKeyGenerate.java index d68dc334ef..fc25c58aee 100644 --- a/org.adempiere.base/src/org/compiere/process/PosKeyGenerate.java +++ b/org.adempiere.base/src/org/compiere/process/PosKeyGenerate.java @@ -17,10 +17,10 @@ package org.compiere.process; import java.util.List; -import java.util.logging.Level; import org.adempiere.exceptions.FillMandatoryException; import org.compiere.model.MPOSKey; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.Query; import org.compiere.util.Env; @@ -42,8 +42,8 @@ public class PosKeyGenerate extends SvrProcess { posKeyLayoutId = para.getParameterAsInt(); if ( para.getParameterName().equals("M_Product_Category_ID") ) productCategoryId = para.getParameterAsInt(); - else - if (log.isLoggable(Level.INFO)) log.info("Parameter not found " + para.getParameterName()); + else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } if ( posKeyLayoutId == 0 ) diff --git a/org.adempiere.base/src/org/compiere/process/ProjectClose.java b/org.adempiere.base/src/org/compiere/process/ProjectClose.java index f16f6b4e32..11cb939f48 100644 --- a/org.adempiere.base/src/org/compiere/process/ProjectClose.java +++ b/org.adempiere.base/src/org/compiere/process/ProjectClose.java @@ -19,6 +19,7 @@ package org.compiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MProject; import org.compiere.model.MProjectLine; @@ -46,11 +47,10 @@ public class ProjectClose extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_C_Project_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/compiere/report/BankRegister.java b/org.adempiere.base/src/org/compiere/report/BankRegister.java index 22e557de19..e638e9632e 100644 --- a/org.adempiere.base/src/org/compiere/report/BankRegister.java +++ b/org.adempiere.base/src/org/compiere/report/BankRegister.java @@ -18,9 +18,9 @@ package org.compiere.report; import java.math.BigDecimal; import java.sql.Timestamp; -import java.util.logging.Level; import org.compiere.model.MPeriod; +import org.compiere.model.MProcessPara; import org.compiere.print.MPrintFormat; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -84,7 +84,7 @@ public class BankRegister extends SvrProcess else if (name.equals("C_BankAccount_ID")) p_C_BankAccount_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } m_parameterWhere.append(" fa.AD_Table_ID = (Select AD_Table_ID From AD_Table Where TableName = 'C_Payment') "); m_parameterWhere.append(" And b.C_Bank_ID = " + p_C_Bank_ID); diff --git a/org.adempiere.base/src/org/compiere/report/FinReport.java b/org.adempiere.base/src/org/compiere/report/FinReport.java index 4bd9fe3e44..bb0c9ab0dc 100644 --- a/org.adempiere.base/src/org/compiere/report/FinReport.java +++ b/org.adempiere.base/src/org/compiere/report/FinReport.java @@ -28,6 +28,7 @@ import org.compiere.model.I_C_ValidCombination; import org.compiere.model.I_T_Report; import org.compiere.model.MAcctSchemaElement; import org.compiere.model.MPeriod; +import org.compiere.model.MProcessPara; import org.compiere.model.MReportCube; import org.compiere.print.MPrintFormat; import org.compiere.print.MPrintFormatItem; @@ -146,7 +147,7 @@ public class FinReport extends SvrProcess else if (name.equals("PA_ReportCube_ID")) p_PA_ReportCube_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } // Optional Org if (p_Org_ID != 0) diff --git a/org.adempiere.base/src/org/compiere/report/FinStatement.java b/org.adempiere.base/src/org/compiere/report/FinStatement.java index 7d60439e86..993a7406fd 100644 --- a/org.adempiere.base/src/org/compiere/report/FinStatement.java +++ b/org.adempiere.base/src/org/compiere/report/FinStatement.java @@ -27,6 +27,8 @@ import java.util.logging.Level; import org.compiere.model.MAcctSchemaElement; import org.compiere.model.MElementValue; import org.compiere.model.MPeriod; +import org.compiere.model.MProcessPara; + import static org.compiere.model.SystemIDs.*; import org.compiere.print.MPrintFormat; import org.compiere.process.ProcessInfoParameter; @@ -151,7 +153,7 @@ public class FinStatement extends SvrProcess else if (name.equals("UserElement2_ID")) p_UserElement2_ID = ((BigDecimal)para[i].getParameter()).intValue(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } // Mandatory C_AcctSchema_ID, PostingType m_parameterWhere.append("C_AcctSchema_ID=").append(p_C_AcctSchema_ID) diff --git a/org.adempiere.base/src/org/compiere/report/TrialBalance.java b/org.adempiere.base/src/org/compiere/report/TrialBalance.java index 614f2274a2..6b125e6a22 100644 --- a/org.adempiere.base/src/org/compiere/report/TrialBalance.java +++ b/org.adempiere.base/src/org/compiere/report/TrialBalance.java @@ -27,6 +27,7 @@ import java.util.logging.Level; import org.compiere.model.MAcctSchemaElement; import org.compiere.model.MElementValue; import org.compiere.model.MPeriod; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.DB; @@ -155,7 +156,7 @@ public class TrialBalance extends SvrProcess else if (name.equals("IsGroupByOrg")) p_IsGroupByOrg = para[i].getParameterAsBoolean(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } // Mandatory C_AcctSchema_ID m_parameterWhere.append("C_AcctSchema_ID=").append(p_C_AcctSchema_ID); diff --git a/org.adempiere.base/src/org/compiere/sla/SLAGoalProcess.java b/org.adempiere.base/src/org/compiere/sla/SLAGoalProcess.java index 9690d7a795..85b23205d7 100644 --- a/org.adempiere.base/src/org/compiere/sla/SLAGoalProcess.java +++ b/org.adempiere.base/src/org/compiere/sla/SLAGoalProcess.java @@ -19,6 +19,7 @@ package org.compiere.sla; import java.sql.Timestamp; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MSLACriteria; import org.compiere.model.MSLAGoal; import org.compiere.process.ProcessInfoParameter; @@ -47,11 +48,10 @@ public class SLAGoalProcess extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_PA_SLA_Goal_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/compiere/sla/SLAMeasureProcess.java b/org.adempiere.base/src/org/compiere/sla/SLAMeasureProcess.java index ca0bb7ca25..240bc89d7f 100644 --- a/org.adempiere.base/src/org/compiere/sla/SLAMeasureProcess.java +++ b/org.adempiere.base/src/org/compiere/sla/SLAMeasureProcess.java @@ -19,6 +19,7 @@ package org.compiere.sla; import java.sql.Timestamp; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MSLACriteria; import org.compiere.model.MSLAGoal; import org.compiere.model.MSLAMeasure; @@ -48,11 +49,10 @@ public class SLAMeasureProcess extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_PA_SLA_Measure_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/compiere/wf/WFActivityManage.java b/org.adempiere.base/src/org/compiere/wf/WFActivityManage.java index 9db467bf35..03bda1668e 100644 --- a/org.adempiere.base/src/org/compiere/wf/WFActivityManage.java +++ b/org.adempiere.base/src/org/compiere/wf/WFActivityManage.java @@ -18,6 +18,7 @@ package org.compiere.wf; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MUser; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.StateEngine; @@ -59,7 +60,7 @@ public class WFActivityManage extends SvrProcess else if (name.equals("AD_WF_Responsible_ID")) p_AD_WF_Responsible_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_WF_Activity_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/compiere/wf/WFProcessManage.java b/org.adempiere.base/src/org/compiere/wf/WFProcessManage.java index 1bf565bf21..f00563f4ad 100644 --- a/org.adempiere.base/src/org/compiere/wf/WFProcessManage.java +++ b/org.adempiere.base/src/org/compiere/wf/WFProcessManage.java @@ -18,6 +18,7 @@ package org.compiere.wf; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MUser; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.StateEngine; @@ -59,7 +60,7 @@ public class WFProcessManage extends SvrProcess else if (name.equals("AD_WF_Responsible_ID")) p_AD_WF_Responsible_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_AD_WF_Process_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/compiere/wf/WorkflowMoveToClient.java b/org.adempiere.base/src/org/compiere/wf/WorkflowMoveToClient.java index 1f0b577125..750d22ccda 100644 --- a/org.adempiere.base/src/org/compiere/wf/WorkflowMoveToClient.java +++ b/org.adempiere.base/src/org/compiere/wf/WorkflowMoveToClient.java @@ -18,6 +18,7 @@ package org.compiere.wf; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.AdempiereSystemError; @@ -53,7 +54,7 @@ public class WorkflowMoveToClient extends SvrProcess else if (name.equals("AD_Workflow_ID")) p_AD_Workflow_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base/src/org/eevolution/process/BankTransfer.java b/org.adempiere.base/src/org/eevolution/process/BankTransfer.java index 6b383e238f..c355c47a2e 100644 --- a/org.adempiere.base/src/org/eevolution/process/BankTransfer.java +++ b/org.adempiere.base/src/org/eevolution/process/BankTransfer.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import org.compiere.model.MBankTransfer; import org.compiere.model.MPayment; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.AdempiereUserError; @@ -94,7 +95,7 @@ public class BankTransfer extends SvrProcess else if (name.equals("IsCreateBankTransferDoc")) p_IsCreateBankTransferDoc = para[i].getParameterAsBoolean(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base/src/org/eevolution/process/CopyFromBOM.java b/org.adempiere.base/src/org/eevolution/process/CopyFromBOM.java index 502e3224b5..571c74e72d 100644 --- a/org.adempiere.base/src/org/eevolution/process/CopyFromBOM.java +++ b/org.adempiere.base/src/org/eevolution/process/CopyFromBOM.java @@ -19,6 +19,7 @@ package org.eevolution.process; import java.util.Properties; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.AdempiereSystemError; @@ -56,7 +57,7 @@ public class CopyFromBOM extends SvrProcess { else if (name.equals("PP_Product_BOM_ID")) p_PP_Product_BOM_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_Record_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/eevolution/process/ExportFormatGenerator.java b/org.adempiere.base/src/org/eevolution/process/ExportFormatGenerator.java index c40942f85f..f2a10d25ff 100644 --- a/org.adempiere.base/src/org/eevolution/process/ExportFormatGenerator.java +++ b/org.adempiere.base/src/org/eevolution/process/ExportFormatGenerator.java @@ -23,6 +23,7 @@ import org.compiere.model.I_EXP_Format; import org.compiere.model.MColumn; import org.compiere.model.MEXPFormat; import org.compiere.model.MEXPFormatLine; +import org.compiere.model.MProcessPara; import org.compiere.model.MTab; import org.compiere.model.MTable; import org.compiere.model.MWindow; @@ -75,7 +76,7 @@ public class ExportFormatGenerator extends SvrProcess p_IsInsertRecord = "Y".equals(para.getParameter()); } else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } // prepare diff --git a/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java b/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java index 2ec5307bd2..48ee538324 100644 --- a/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java +++ b/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java @@ -33,6 +33,7 @@ import org.compiere.model.MLocator; import org.compiere.model.MMovement; import org.compiere.model.MMovementLine; import org.compiere.model.MOrg; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProject; import org.compiere.model.MShipper; @@ -93,7 +94,7 @@ public class ImportInventoryMove extends SvrProcess else if (name.equals("DocAction")) m_docAction = (String)para.getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } // prepare diff --git a/org.adempiere.base/src/org/eevolution/process/InvoiceCalculateTax.java b/org.adempiere.base/src/org/eevolution/process/InvoiceCalculateTax.java index 7039f07cba..fd6ef1436a 100644 --- a/org.adempiere.base/src/org/eevolution/process/InvoiceCalculateTax.java +++ b/org.adempiere.base/src/org/eevolution/process/InvoiceCalculateTax.java @@ -22,6 +22,7 @@ import org.compiere.model.MBPartner; import org.compiere.model.MFactAcct; import org.compiere.model.MInvoice; import org.compiere.model.MPeriod; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -54,6 +55,8 @@ public class InvoiceCalculateTax extends SvrProcess { p_C_Invoice_ID = para.getParameterAsInt(); } + else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } if (p_C_Invoice_ID <= 0) diff --git a/org.adempiere.base/src/org/eevolution/process/PP_Product_BOM_Check.java b/org.adempiere.base/src/org/eevolution/process/PP_Product_BOM_Check.java index 16cefa74a6..96c8d546f4 100644 --- a/org.adempiere.base/src/org/eevolution/process/PP_Product_BOM_Check.java +++ b/org.adempiere.base/src/org/eevolution/process/PP_Product_BOM_Check.java @@ -18,8 +18,7 @@ *****************************************************************************/ package org.eevolution.process; -import java.util.logging.Level; - +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -53,11 +52,10 @@ public class PP_Product_BOM_Check extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_Record_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/globalqss/process/CashFlow.java b/org.adempiere.base/src/org/globalqss/process/CashFlow.java index 65214f6cdd..4da1407aa5 100644 --- a/org.adempiere.base/src/org/globalqss/process/CashFlow.java +++ b/org.adempiere.base/src/org/globalqss/process/CashFlow.java @@ -30,6 +30,7 @@ import org.compiere.model.MFactAcct; import org.compiere.model.MInvoice; import org.compiere.model.MOrder; import org.compiere.model.MOrderPaySchedule; +import org.compiere.model.MProcessPara; import org.compiere.model.X_T_CashFlow; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -71,7 +72,7 @@ public class CashFlow extends SvrProcess { else if (name.equals("C_ElementValue_ID")) p_C_ElementValue_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base/src/org/globalqss/process/CopyFromCashPlan.java b/org.adempiere.base/src/org/globalqss/process/CopyFromCashPlan.java index 37782d0657..7b99182cda 100644 --- a/org.adempiere.base/src/org/globalqss/process/CopyFromCashPlan.java +++ b/org.adempiere.base/src/org/globalqss/process/CopyFromCashPlan.java @@ -17,10 +17,9 @@ package org.globalqss.process; -import java.util.logging.Level; - import org.compiere.model.MCashPlan; import org.compiere.model.MCashPlanLine; +import org.compiere.model.MProcessPara; import org.compiere.model.PO; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -45,7 +44,7 @@ public class CopyFromCashPlan extends SvrProcess { if (name.equals("C_CashPlan_ID")) p_C_CashPlanSource_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_CashPlanTarget_ID = getRecord_ID(); } diff --git a/org.adempiere.base/src/org/globalqss/process/GLJournalGenerate.java b/org.adempiere.base/src/org/globalqss/process/GLJournalGenerate.java index 98ad4c208b..de074d58d9 100644 --- a/org.adempiere.base/src/org/globalqss/process/GLJournalGenerate.java +++ b/org.adempiere.base/src/org/globalqss/process/GLJournalGenerate.java @@ -49,6 +49,7 @@ import org.compiere.model.MJournalGeneratorLine; import org.compiere.model.MJournalGeneratorSource; import org.compiere.model.MJournalLine; import org.compiere.model.MPeriod; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MTable; import org.compiere.model.PO; @@ -112,7 +113,7 @@ public class GLJournalGenerate extends SvrProcess else if (name.equals("M_Product_ID")) p_M_Product_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_QSS_JournalGenerator_ID = getRecord_ID(); } // prepare diff --git a/org.adempiere.base/src/org/globalqss/process/GeneratePeriodicCashPlanLines.java b/org.adempiere.base/src/org/globalqss/process/GeneratePeriodicCashPlanLines.java index d60fea3aea..5cc44bd86e 100644 --- a/org.adempiere.base/src/org/globalqss/process/GeneratePeriodicCashPlanLines.java +++ b/org.adempiere.base/src/org/globalqss/process/GeneratePeriodicCashPlanLines.java @@ -20,10 +20,10 @@ package org.globalqss.process; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.Calendar; -import java.util.logging.Level; import org.compiere.model.MCashPlan; import org.compiere.model.MCashPlanLine; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.AdempiereSystemError; @@ -78,7 +78,7 @@ public class GeneratePeriodicCashPlanLines extends SvrProcess { else if (name.equals("Probability")) p_Probability = (BigDecimal) para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } p_C_CashPlan_ID = getRecord_ID(); } diff --git a/org.adempiere.base/src/org/idempiere/fa/process/A_Asset_CreateFromMatchInv.java b/org.adempiere.base/src/org/idempiere/fa/process/A_Asset_CreateFromMatchInv.java index 5043f43d93..6b3ebc0d19 100644 --- a/org.adempiere.base/src/org/idempiere/fa/process/A_Asset_CreateFromMatchInv.java +++ b/org.adempiere.base/src/org/idempiere/fa/process/A_Asset_CreateFromMatchInv.java @@ -1,9 +1,8 @@ package org.idempiere.fa.process; -import java.util.logging.Level; - import org.compiere.model.MAssetAddition; import org.compiere.model.MMatchInv; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.idempiere.fa.exceptions.AssetException; @@ -32,7 +31,7 @@ public class A_Asset_CreateFromMatchInv extends SvrProcess { else if (name.equals("M_MatchInv_ID")) p_M_MatchInv_ID = para[i].getParameterAsInt(); else - log.log(Level.SEVERE, "@UnknownParameter@ " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Exp_Check.java b/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Exp_Check.java index d60628c66f..90cd847e6d 100644 --- a/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Exp_Check.java +++ b/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Exp_Check.java @@ -12,6 +12,7 @@ import org.compiere.model.MDepreciationEntry; import org.compiere.model.MDepreciationExp; import org.compiere.model.MDepreciationWorkfile; import org.compiere.model.MPeriod; +import org.compiere.model.MProcessPara; import org.compiere.model.Query; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -53,6 +54,7 @@ public class A_Depreciation_Exp_Check extends SvrProcess } else { + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } } diff --git a/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Exp_Modify.java b/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Exp_Modify.java index 258b4a62cb..7b0d219396 100644 --- a/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Exp_Modify.java +++ b/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Exp_Modify.java @@ -7,6 +7,7 @@ import org.adempiere.exceptions.AdempiereException; import org.adempiere.exceptions.FillMandatoryException; import org.compiere.model.MDepreciationEntry; import org.compiere.model.MDepreciationExp; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -38,7 +39,6 @@ public class A_Depreciation_Exp_Modify extends SvrProcess { p_IsTest = para.getParameterAsBoolean(); } - else if(name.equals(MDepreciationExp.COLUMNNAME_A_Depreciation_Exp_ID)) { p_A_Depreciation_Exp_ID = para.getParameterAsInt(); @@ -51,6 +51,8 @@ public class A_Depreciation_Exp_Modify extends SvrProcess { p_CR_Account_ID = para.getParameterAsInt(); } + else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } diff --git a/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Workfile_Build.java b/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Workfile_Build.java index c0e1ee77e7..987f0e9ed2 100644 --- a/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Workfile_Build.java +++ b/org.adempiere.base/src/org/idempiere/fa/process/A_Depreciation_Workfile_Build.java @@ -4,6 +4,7 @@ package org.idempiere.fa.process; import org.compiere.model.MDepreciationWorkfile; +import org.compiere.model.MProcessPara; import org.compiere.model.POResultSet; import org.compiere.model.Query; import org.compiere.process.ProcessInfoParameter; @@ -33,6 +34,7 @@ public class A_Depreciation_Workfile_Build extends SvrProcess A_Depreciation_Workfile_ID = 0; } else { + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } } diff --git a/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java b/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java index 19e47dd1de..491e95c30b 100644 --- a/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java +++ b/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java @@ -10,6 +10,7 @@ import org.compiere.model.MAssetAddition; import org.compiere.model.MAssetGroupAcct; import org.compiere.model.MDepreciationWorkfile; import org.compiere.model.MIFixedAsset; +import org.compiere.model.MProcessPara; import org.compiere.model.POResultSet; import org.compiere.model.Query; import org.compiere.model.X_I_FixedAsset; @@ -66,7 +67,7 @@ public class ImportFixedAsset extends SvrProcess else if (name.equals("IsValidateOnly")) p_IsValidateOnly = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.base/src/org/idempiere/fa/process/ProjectCreateAsset.java b/org.adempiere.base/src/org/idempiere/fa/process/ProjectCreateAsset.java index ccfed0d7cf..bc89ef8af0 100644 --- a/org.adempiere.base/src/org/idempiere/fa/process/ProjectCreateAsset.java +++ b/org.adempiere.base/src/org/idempiere/fa/process/ProjectCreateAsset.java @@ -21,6 +21,7 @@ import java.sql.Timestamp; import java.util.logging.Level; import org.compiere.model.MAssetAddition; +import org.compiere.model.MProcessPara; import org.compiere.model.MProduct; import org.compiere.model.MProductCategory; import org.compiere.model.MProject; @@ -56,7 +57,6 @@ public class ProjectCreateAsset extends SvrProcess ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { - String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else if (para[i].getParameterName().equalsIgnoreCase("C_Project_ID")) { @@ -72,7 +72,7 @@ public class ProjectCreateAsset extends SvrProcess m_DateTrx = (Timestamp)para[i].getParameter(); } else { - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.base/src/org/idempiere/process/DiscardThisVerifyMigration.java b/org.adempiere.base/src/org/idempiere/process/DiscardThisVerifyMigration.java index f34600e85f..8ff9d84688 100644 --- a/org.adempiere.base/src/org/idempiere/process/DiscardThisVerifyMigration.java +++ b/org.adempiere.base/src/org/idempiere/process/DiscardThisVerifyMigration.java @@ -28,6 +28,7 @@ package org.idempiere.process; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.DB; @@ -48,8 +49,7 @@ public class DiscardThisVerifyMigration extends SvrProcess { String name = para.getParameterName(); switch (name) { default: - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); break; } } diff --git a/org.adempiere.base/src/org/idempiere/process/MigraID.java b/org.adempiere.base/src/org/idempiere/process/MigraID.java index 83e6cdcdc4..347acf3f3e 100644 --- a/org.adempiere.base/src/org/idempiere/process/MigraID.java +++ b/org.adempiere.base/src/org/idempiere/process/MigraID.java @@ -29,8 +29,8 @@ package org.idempiere.process; import java.util.ArrayList; import java.util.List; import java.util.UUID; -import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.model.MSequence; import org.compiere.model.MTable; import org.compiere.model.MTree; @@ -69,7 +69,7 @@ public class MigraID extends SvrProcess { } else if ("Target_UUID".equals(name)) { p_UUID_To = para.getParameterAsString(); } else { - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } } diff --git a/org.adempiere.base/src/org/idempiere/process/MoveClient.java b/org.adempiere.base/src/org/idempiere/process/MoveClient.java index 74b5b32674..52e8c4f555 100644 --- a/org.adempiere.base/src/org/idempiere/process/MoveClient.java +++ b/org.adempiere.base/src/org/idempiere/process/MoveClient.java @@ -38,6 +38,7 @@ import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.compiere.db.CConnection; import org.compiere.model.MColumn; +import org.compiere.model.MProcessPara; import org.compiere.model.MSequence; import org.compiere.model.MTable; import org.compiere.model.Query; @@ -112,7 +113,7 @@ public class MoveClient extends SvrProcess { } else if ("IsSkipSomeValidations".equals(name)) { p_IsSkipSomeValidations = para.getParameterAsBoolean(); } else { - if (log.isLoggable(Level.INFO)) log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } } diff --git a/org.adempiere.base/src/org/idempiere/process/TranslationImpExp.java b/org.adempiere.base/src/org/idempiere/process/TranslationImpExp.java index 8a7192a60a..498efed942 100644 --- a/org.adempiere.base/src/org/idempiere/process/TranslationImpExp.java +++ b/org.adempiere.base/src/org/idempiere/process/TranslationImpExp.java @@ -45,6 +45,7 @@ import org.apache.tools.ant.Project; import org.apache.tools.ant.Target; import org.apache.tools.ant.taskdefs.Zip; import org.compiere.install.Translation; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.Query; import org.compiere.process.ProcessInfoParameter; @@ -86,7 +87,7 @@ public class TranslationImpExp extends SvrProcess { } else if ("FileName".equals(name)) { p_FileName = para.getParameterAsString(); } else { - if (log.isLoggable(Level.INFO)) log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } } diff --git a/org.adempiere.base/src/org/idempiere/process/VerifyMigration.java b/org.adempiere.base/src/org/idempiere/process/VerifyMigration.java index ddb9e183ff..d4da37859b 100644 --- a/org.adempiere.base/src/org/idempiere/process/VerifyMigration.java +++ b/org.adempiere.base/src/org/idempiere/process/VerifyMigration.java @@ -39,6 +39,7 @@ import org.adempiere.exceptions.DBException; import org.compiere.model.MChangeLog; import org.compiere.model.MColumn; import org.compiere.model.MPInstance; +import org.compiere.model.MProcessPara; import org.compiere.model.MTable; import org.compiere.model.MUser; import org.compiere.model.MVerifyMigration; @@ -73,8 +74,7 @@ public class VerifyMigration extends SvrProcess { p_DateTo = para.getParameterAsTimestamp(); break; default: - if (log.isLoggable(Level.INFO)) - log.log(Level.INFO, "Custom Parameter: " + name + "=" + para.getInfo()); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); break; } } diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/PackInFolder.java b/org.adempiere.pipo/src/org/adempiere/pipo2/PackInFolder.java index 8962b56b1a..211e5489e2 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/PackInFolder.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/PackInFolder.java @@ -24,9 +24,8 @@ **********************************************************************/ package org.adempiere.pipo2; -import java.util.logging.Level; - import org.adempiere.plugin.utils.PackInApplicationActivator; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.AdempiereSystemError; @@ -64,7 +63,7 @@ public class PackInFolder extends SvrProcess { else if (name.equals("Folder")) p_Folder = para.getParameterAsString(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } } // prepare diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/PackInProcess.java b/org.adempiere.pipo/src/org/adempiere/pipo2/PackInProcess.java index 25b5efe361..a32e7fab5e 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/PackInProcess.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/PackInProcess.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import org.compiere.model.MAttachment; import org.compiere.model.MAttachmentEntry; +import org.compiere.model.MProcessPara; import org.compiere.model.X_AD_Package_Imp_Proc; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; @@ -63,7 +64,8 @@ public class PackInProcess extends SvrProcess { packageName = param.getParameter().toString(); } else if ("Version".equals(param.getParameterName())) { packageVersion = param.getParameter().toString(); - } + } else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), param); } } } // prepare diff --git a/org.adempiere.replication/src/org/adempiere/process/rpl/exp/ModelExporter.java b/org.adempiere.replication/src/org/adempiere/process/rpl/exp/ModelExporter.java index aa3d45ba68..c059e4c57b 100644 --- a/org.adempiere.replication/src/org/adempiere/process/rpl/exp/ModelExporter.java +++ b/org.adempiere.replication/src/org/adempiere/process/rpl/exp/ModelExporter.java @@ -30,6 +30,7 @@ import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import org.compiere.model.MEXPFormat; +import org.compiere.model.MProcessPara; import org.compiere.model.MReplicationStrategy; import org.compiere.model.ModelValidator; import org.compiere.model.X_AD_ReplicationTable; @@ -89,7 +90,7 @@ public class ModelExporter extends SvrProcess { else if (name.equals("FileName")) p_FileName = (String)para.getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para); } if(p_EXP_Format_ID == 0) diff --git a/org.adempiere.replication/src/org/adempiere/process/rpl/imp/ModelImporter.java b/org.adempiere.replication/src/org/adempiere/process/rpl/imp/ModelImporter.java index 93f129e697..eed301a15c 100755 --- a/org.adempiere.replication/src/org/adempiere/process/rpl/imp/ModelImporter.java +++ b/org.adempiere.replication/src/org/adempiere/process/rpl/imp/ModelImporter.java @@ -31,6 +31,7 @@ package org.adempiere.process.rpl.imp; import java.util.logging.Level; import org.adempiere.process.rpl.XMLHelper; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.Env; @@ -88,7 +89,7 @@ public class ModelImporter extends SvrProcess { else if (name.equals("FileName")) p_FileName = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if(p_EXP_Format_ID == 0) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/DunningPrint.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/DunningPrint.java index eabbb4aedc..a8f49fca06 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/DunningPrint.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/DunningPrint.java @@ -27,6 +27,7 @@ import org.compiere.model.MDunningLevel; import org.compiere.model.MDunningRun; import org.compiere.model.MDunningRunEntry; import org.compiere.model.MMailText; +import org.compiere.model.MProcessPara; import org.compiere.model.MQuery; import org.compiere.model.MUser; import org.compiere.model.MUserMail; @@ -83,7 +84,7 @@ public class DunningPrint extends SvrProcess else if (name.equals("PrintUnprocessedOnly")) p_PrintUnprocessedOnly = "Y".equals(para[i].getParameter()); else - log.log(Level.SEVERE, "Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } // prepare diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/InvoicePrint.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/InvoicePrint.java index c3e2bea24a..c6b7f64fab 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/InvoicePrint.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/InvoicePrint.java @@ -27,6 +27,7 @@ import java.util.logging.Level; import org.compiere.model.MClient; import org.compiere.model.MInvoice; import org.compiere.model.MMailText; +import org.compiere.model.MProcessPara; import org.compiere.model.MQuery; import org.compiere.model.MRole; import org.compiere.model.MUser; @@ -116,7 +117,7 @@ public class InvoicePrint extends SvrProcess else if (name.equals("DocStatus")) m_DocStatus = (String)para[i].getParameter(); else - log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name); + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } if (m_DocumentNo_From != null && m_DocumentNo_From.length() == 0) m_DocumentNo_From = null; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/KillAllSession.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/KillAllSession.java index 8d4b93ad0f..4b0e2e0653 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/KillAllSession.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/KillAllSession.java @@ -18,6 +18,7 @@ import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.logging.Level; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.CLogger; @@ -47,6 +48,8 @@ public class KillAllSession extends SvrProcess { ; else if (name.equals("TimeOutInSeconds")) scndTimeout = para[i].getParameterAsInt(); + else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/KillCurrentSession.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/KillCurrentSession.java index 8eee704a40..757ac90b6c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/KillCurrentSession.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/process/KillCurrentSession.java @@ -14,6 +14,7 @@ package org.adempiere.webui.process; +import org.compiere.model.MProcessPara; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.idempiere.broadcast.BroadCastMsg; @@ -39,6 +40,8 @@ public class KillCurrentSession extends SvrProcess { ; else if (name.equals("TimeOutInSeconds")) scndTimeout = para[i].getParameterAsInt(); + else + MProcessPara.validateUnknownParameter(getProcessInfo().getAD_Process_ID(), para[i]); } }