[OFBiz] SVN: r5047 - in trunk/applications/manufacturing: servicedef
src/org/ofbiz/manufacturing/bom
jacopo at svn.ofbiz.org
jacopo at svn.ofbiz.org
Fri May 27 12:02:23 EDT 2005
Author: jacopo
Date: 2005-05-27 11:02:12 -0500 (Fri, 27 May 2005)
New Revision: 5047
Modified:
trunk/applications/manufacturing/servicedef/services.xml
trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMServices.java
Log:
Removed output attribute from the "initLowLevelCode" service: from now on it will run as a batch job.
Modified: trunk/applications/manufacturing/servicedef/services.xml
===================================================================
--- trunk/applications/manufacturing/servicedef/services.xml 2005-05-27 15:54:40 UTC (rev 5046)
+++ trunk/applications/manufacturing/servicedef/services.xml 2005-05-27 16:02:12 UTC (rev 5047)
@@ -413,7 +413,7 @@
<service name="initLowLevelCode" engine="java"
location="org.ofbiz.manufacturing.bom.BOMServices" invoke="initLowLevelCode">
<description>Updates the low level code of all the products in the Product entity</description>
- <attribute mode="OUT" name="productLLCs" optional="false" type="java.util.List"/>
+ <!--<attribute mode="OUT" name="productLLCs" optional="false" type="java.util.List"/>-->
</service>
<service name="searchDuplicatedAncestor" default-entity-name="ProductAssoc" engine="java"
Modified: trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMServices.java
===================================================================
--- trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMServices.java 2005-05-27 15:54:40 UTC (rev 5046)
+++ trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMServices.java 2005-05-27 16:02:12 UTC (rev 5047)
@@ -233,18 +233,18 @@
allProducts.add(product);
}
delegator.storeAll(allProducts);
-
+ Debug.logInfo("Low Level Code set to 0 for all the products", module);
+
productsIt = products.iterator();
- List productLLCs = new ArrayList();
while (productsIt.hasNext()) {
GenericValue product = (GenericValue)productsIt.next();
try {
Map depthResult = dispatcher.runSync("updateLowLevelCode", UtilMisc.toMap("productIdTo", product.getString("productId"), "alsoComponents", Boolean.valueOf(false), "alsoVariants", Boolean.valueOf(false)));
- productLLCs.add(product.getString("productId") + " - " + depthResult.get("lowLevelCode"));
+ Debug.logInfo("Product [" + product.getString("productId") + "] Low Level Code [" + depthResult.get("lowLevelCode") + "]", module);
} catch(Exception exc) {
+ Debug.logWarning(exc.getMessage(), module);
}
}
- result.put("productLLCs", productLLCs);
// FIXME: also all the variants llc should be updated?
} catch (Exception e) {
return ServiceUtil.returnError("Error running initLowLevelCode: " + e.getMessage());
More information about the Svn
mailing list