blob: f0ff7235690195c196783f0db471e82fd14937c7 [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.
-->
<entity-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entity-eca.xsd">
<!--
Sorl Product indexing stock/example ECAs
If enabled, these ECAs enable automatic per-product solr reindexing upon
various common OFBiz Product operations. To enable the invoked service(s) globally, see
the solrconfig.properties option solr.eca.enabled.
See documentation for issues regarding implementation and context-specific issues
(such as data loading/install).
-->
<!--
<eca entity="Product" operation="create-store" event="return">
<action service="addToSolr" mode="sync" value-attr="instance"/>
</eca>
<eca entity="ProductCategoryMember" operation="create-store-remove" event="return">
<action service="addToSolr" mode="sync" value-attr="instance"/>
</eca>
<eca entity="ProductPrice" operation="create-store-remove" event="return">
<condition operator="equals" field-name="productPriceTypeId" value="LIST_PRICE"/>
<action service="addToSolr" mode="sync" value-attr="instance"/>
</eca>
<eca entity="ProductPrice" operation="create-store-remove" event="return">
<condition operator="equals" field-name="productPriceTypeId" value="DEFAULT_PRICE"/>
<action service="addToSolr" mode="sync" value-attr="instance"/>
</eca>
<eca entity="ProductPrice" operation="create-store-remove" event="return">
<condition operator="equals" field-name="productPriceTypeId" value="DEFAULT_PRICE"/>
<action service="addToSolr" mode="sync" value-attr="instance"/>
</eca>
-->
<!-- (Insert any needed additional ECAs here) -->
</entity-eca>