/** Prepare - e.g., get Parameters. */
  protected void prepare() {

    for (ProcessInfoParameter para : getParameter()) {
      String name = para.getParameterName();
      if (para.getParameter() == null) ;
      else if (name.equals(X_M_Product.COLUMNNAME_M_Product_ID)) {
        p_M_Product_ID = para.getParameterAsInt();
      } else if (name.equals(X_M_Warehouse.COLUMNNAME_M_Warehouse_ID)) {
        p_M_Warehouse_ID = para.getParameterAsInt();
      } else if (name.equals("DateTrx")) {
        p_DateTrx = (Timestamp) para.getParameter();
      } else if (name.equals(X_PP_Order_BOMLine.COLUMNNAME_QtyRequired)) {
        p_QtyRequiered = (BigDecimal) para.getParameter();
      } else if (name.equals(X_PP_Product_BOMLine.COLUMNNAME_BackflushGroup)) {
        p_BackflushGroup = (String) para.getParameter();
      } else if (name.equals(X_T_BOMLine.COLUMNNAME_LevelNo)) {
        p_LevelNo = para.getParameterAsInt();
      } else log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name);
    }
  } // prepare
  /** Prepare - e.g., get Parameters. */
  protected void prepare() {
    ProcessInfoParameter[] parameters = getParameter();
    for (ProcessInfoParameter parameter : parameters) {
      String name = parameter.getParameterName();
      if (parameter.getParameter() == null) ;
      else if (name.equals("DateValue")) {
        p_DateValue = (Timestamp) parameter.getParameter();
        if (p_DateValue == null) throw new FillMandatoryException("@DateValue@");

      } else if (name.equals(MWarehouse.COLUMNNAME_M_Warehouse_ID))
        p_M_Warehouse_ID = parameter.getParameterAsInt();
      else if (name.equals(MCostDetail.COLUMNNAME_M_Product_ID))
        p_M_Product_ID = parameter.getParameterAsInt();
      else if (name.equals(MProduct.COLUMNNAME_M_Product_Category_ID))
        p_M_Product_Category_ID = parameter.getParameterAsInt();
      else if (name.equals(MCostDetail.COLUMNNAME_M_CostType_ID))
        p_M_CostType_ID = parameter.getParameterAsInt();
      else if (name.equals(MCostDetail.COLUMNNAME_M_CostElement_ID))
        p_M_CostElement_ID = parameter.getParameterAsInt();
    }
  } //	prepare