This change wouldn't be necessary if the correct Java type was specified in the service definition. In other words, the service engine should convert the parameter to the correct Java data type before the simple method is executed.

-Adrian

On 6/8/2011 12:06 PM, ash...@apache.org wrote:
Author: ashish
Date: Wed Jun  8 11:06:46 2011
New Revision: 1133343

URL: http://svn.apache.org/viewvc?rev=1133343&view=rev
Log:
Bug fix. Type(Timestamp) must be mentioned in the createBOMAssoc service for 
the fromDate field which is currently set as a String. Thanks Suprit.

Modified:
     
ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/bom/BomSimpleMethods.xml

Modified: 
ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/bom/BomSimpleMethods.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/bom/BomSimpleMethods.xml?rev=1133343&r1=1133342&r2=1133343&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/bom/BomSimpleMethods.xml
 (original)
+++ 
ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/bom/BomSimpleMethods.xml
 Wed Jun  8 11:06:46 2011
@@ -30,7 +30,7 @@ under the License.
          <set field="searchDuplicatedAncestorContext.productId" 
from-field="parameters.productId"/>
          <set field="searchDuplicatedAncestorContext.productIdTo" 
from-field="parameters.productIdTo"/>
          <if-not-empty field="parameters.fromDate">
-<set field="searchDuplicatedAncestorContext.fromDate" 
from-field="parameters.fromDate"/>
+<set field="searchDuplicatedAncestorContext.fromDate" from-field="parameters.fromDate" 
type="Timestamp"/>
          </if-not-empty>
          <set field="searchDuplicatedAncestorContext.productAssocTypeId" 
from-field="parameters.productAssocTypeId"/>
          <call-service service-name="searchDuplicatedAncestor" 
in-map-name="searchDuplicatedAncestorContext">


Reply via email to