Author: jaz
Date: Thu Jun 21 19:56:48 2007
New Revision: 549677
URL:
http://svn.apache.org/viewvc?view=rev&rev=549677Log:
added check order status service
Modified:
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml
ofbiz/trunk/applications/order/servicedef/services.xml
Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml?view=diff&rev=549677&r1=549676&r2=549677==============================================================================
--- ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml (original)
+++ ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml Thu Jun 21 19:56:48 2007
@@ -807,5 +807,13 @@
<field-to-result field-name="parameters.orderPaymentPreferenceId" result-name="orderPaymentPreferenceId"/>
</simple-method>
+ <simple-method method-name="getOrderStatus" short-description="Gets an order status">
+ <entity-one entity-name="OrderHeader" value-name="order"/>
+ <if-empty field-name="order">
+ <add-error><fail-message message="Order not found [{parameters.orderId}]"/></add-error>
+ <check-errors/>
+ </if-empty>
+ <field-to-result field-name="statusId" map-name="order" result-name="statusId"/>
+ </simple-method>
</simple-methods>
Modified: ofbiz/trunk/applications/order/servicedef/services.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services.xml?view=diff&rev=549677&r1=549676&r2=549677==============================================================================
--- ofbiz/trunk/applications/order/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/services.xml Thu Jun 21 19:56:48 2007
@@ -459,6 +459,12 @@
<attribute name="orderId" type="String" mode="IN" optional="false"/>
<attribute name="shippingAmount" type="BigDecimal" mode="OUT" optional="false"/>
</service>
+ <service name="getOrderStatus" engine="simple" export="true"
+ location="org/ofbiz/order/order/OrderServices.xml" invoke="getOrderStatus" auth="false">
+ <description>Gets the order status</description>
+ <attribute name="orderId" mode="IN" optional="false"/>
+ <attribute name="statusId" mode="OUT" optional="false"/>
+ </service>
<!-- Order Delivery Services -->
<service name="createOrderDeliverySchedule" default-entity-name="OrderDeliverySchedule" engine="simple"