You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2008/11/10 10:48:39 UTC

svn commit: r712636 - in /ofbiz/trunk: applications/order/servicedef/secas.xml specialpurpose/ebay/ofbiz-component.xml specialpurpose/ebay/servicedef/secas.xml

Author: lektran
Date: Mon Nov 10 01:48:39 2008
New Revision: 712636

URL: http://svn.apache.org/viewvc?rev=712636&view=rev
Log:
Wrong component

Added:
    ofbiz/trunk/specialpurpose/ebay/servicedef/secas.xml   (with props)
Modified:
    ofbiz/trunk/applications/order/servicedef/secas.xml
    ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml

Modified: ofbiz/trunk/applications/order/servicedef/secas.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/secas.xml?rev=712636&r1=712635&r2=712636&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/secas.xml Mon Nov 10 01:48:39 2008
@@ -65,21 +65,6 @@
         <action service="sendOrderCompleteNotification" mode="async" persist="true"/>
     </eca>
 
-    <!-- eBay interface -->
-    <!-- if the order has been imported from eBay, set the order status in eBay to completed -->
-    <eca service="changeOrderStatus" event="commit" run-on-error="false">
-        <condition field-name="orderTypeId" operator="equals" value="SALES_ORDER"/>
-        <!--
-        These fields are not currently available in this context (i.e. they are not returned by
-        the changeOrderStatus service; for now the conditions are checked in the service
-        <condition field-name="salesChannelEnumId" operator="equals" value="EBAY_SALES_CHANNEL"/>
-        <condition field-name="externalId" operator="is-not-empty"/>
-        -->
-        <condition field-name="statusId" operator="equals" value="ORDER_COMPLETED"/>
-        <condition-field field-name="statusId" operator="not-equals" to-field-name="oldStatusId"/>
-        <action service="setEbayOrderToComplete" mode="sync"/>
-    </eca>
-
     <!-- DISABLED FOR NOW
     <eca service="changeOrderStatus" event="commit" run-on-error="false">
         <condition field-name="statusId" operator="equals" value="ORDER_PROCESSING"/>

Modified: ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml?rev=712636&r1=712635&r2=712636&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml (original)
+++ ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml Mon Nov 10 01:48:39 2008
@@ -28,6 +28,7 @@
     <entity-resource type="data" reader-name="seed" loader="main" location="data/EbaySecurityData.xml"/>
 
     <service-resource type="model" loader="main" location="servicedef/services.xml"/>
+    <service-resource type="eca" loader="main" location="servicedef/secas.xml"/>
     
     <webapp name="ebay"
         title="Ebay"

Added: ofbiz/trunk/specialpurpose/ebay/servicedef/secas.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/servicedef/secas.xml?rev=712636&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/servicedef/secas.xml (added)
+++ ofbiz/trunk/specialpurpose/ebay/servicedef/secas.xml Mon Nov 10 01:48:39 2008
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/service-eca.xsd">
+    <!-- if the order has been imported from eBay, set the order status in eBay to completed -->
+    <eca service="changeOrderStatus" event="commit" run-on-error="false">
+        <condition field-name="orderTypeId" operator="equals" value="SALES_ORDER"/>
+        <!--
+        These fields are not currently available in this context (i.e. they are not returned by
+        the changeOrderStatus service; for now the conditions are checked in the service
+        <condition field-name="salesChannelEnumId" operator="equals" value="EBAY_SALES_CHANNEL"/>
+        <condition field-name="externalId" operator="is-not-empty"/>
+        -->
+        <condition field-name="statusId" operator="equals" value="ORDER_COMPLETED"/>
+        <condition-field field-name="statusId" operator="not-equals" to-field-name="oldStatusId"/>
+        <action service="setEbayOrderToComplete" mode="sync"/>
+    </eca>
+</service-eca>
\ No newline at end of file

Propchange: ofbiz/trunk/specialpurpose/ebay/servicedef/secas.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/specialpurpose/ebay/servicedef/secas.xml
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/trunk/specialpurpose/ebay/servicedef/secas.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml