protected void prepare(){
  for (  ProcessInfoParameter para : getParameter()) {
    String name=para.getParameterName();
    if (para.getParameter() == null)     ;
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_AD_Org_ID))     p_AD_Org_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_DateInvoiced)) {
      p_DateInvoicedFrom=(Timestamp)para.getParameter();
      p_DateInvoicedTo=(Timestamp)para.getParameter_To();
    }
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_C_BPartner_ID))     p_C_BPartner_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_C_BP_Group_ID))     p_C_BP_Group_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_C_BPartner_Location_ID))     p_C_BPartner_Location_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_M_Product_ID))     p_M_Product_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_M_Product_Category_ID))     p_M_Product_Category_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_M_Product_Classification_ID))     p_M_Product_Classification_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_M_Product_Class_ID))     p_M_Product_Class_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_M_Product_Group_ID))     p_M_Product_Group_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_M_Warehouse_ID))     p_M_Warehouse_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_C_Campaign_ID))     p_C_Campaign_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_C_SalesRegion_ID))     p_C_SalesRegion_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_C_Project_ID))     p_C_Project_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_C_Activity_ID))     p_C_Activity_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_User1_ID))     p_User1_ID=para.getParameterAsInt();
 else     if (name.equals(I_C_SalesHistory.COLUMNNAME_User2_ID))     p_User2_ID=para.getParameterAsInt();
 else     log.log(Level.SEVERE,"Unknown Parameter: " + name);
  }
}

protected void prepare ( ) { for ( ProcessInfoParameter para : getParameter ( ) ) { String name = para . getParameterName ( ) ; if ( para . getParameter ( ) == null ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_AD_Org_ID ) ) p_AD_Org_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_DateInvoiced ) ) { p_DateInvoicedFrom = ( Timestamp ) para . getParameter ( ) ; p_DateInvoicedTo = ( Timestamp ) para . getParameter_To ( ) ; } else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_C_BPartner_ID ) ) p_C_BPartner_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_C_BP_Group_ID ) ) p_C_BP_Group_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_C_BPartner_Location_ID ) ) p_C_BPartner_Location_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_M_Product_ID ) ) p_M_Product_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_M_Product_Category_ID ) ) p_M_Product_Category_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_M_Product_Classification_ID ) ) p_M_Product_Classification_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_M_Product_Class_ID ) ) p_M_Product_Class_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_M_Product_Group_ID ) ) p_M_Product_Group_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_M_Warehouse_ID ) ) p_M_Warehouse_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_C_Campaign_ID ) ) p_C_Campaign_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_C_SalesRegion_ID ) ) p_C_SalesRegion_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_C_Project_ID ) ) p_C_Project_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_C_Activity_ID ) ) p_C_Activity_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_User1_ID ) ) p_User1_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_C_SalesHistory . COLUMNNAME_User2_ID ) ) p_User2_ID = para . getParameterAsInt ( ) ; else log . log ( Level . SEVERE , "Unknown Parameter: " + name ) ; } }
prepare - e . g . , get parameters .
