blob: 09bfd7526aa3d5de77c573ff004a229443bfd545 [file] [log] [blame]
<?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>