applications/manufacturing/servicedef/secas.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/service-eca.xsd">
<eca service="updateRequirement" event="commit">
<condition field-name="requirementTypeId" operator="equals" value="INTERNAL_REQUIREMENT"/>
<condition field-name="statusId" operator="equals" value="REQ_APPROVED"/>
<condition field-name="oldStatusId" operator="not-equals" value="REQ_APPROVED"/>
<action service="createProductionRunFromRequirement" mode="sync"/>
</eca>
<eca service="createRequirement" event="commit">
<condition field-name="requirementTypeId" operator="equals" value="INTERNAL_REQUIREMENT"/>
<condition field-name="statusId" operator="equals" value="REQ_APPROVED"/>
<action service="createProductionRunFromRequirement" mode="sync"/>
</eca>
<eca service="createBOMAssoc" event="commit">
<condition field-name="productAssocTypeId" operator="equals" value="MANUF_COMPONENT"/>
<action service="updateLowLevelCode" mode="sync"/>
</eca>
<eca service="deleteProductAssoc" event="commit">
<condition field-name="productAssocTypeId" operator="equals" value="MANUF_COMPONENT"/>
<action service="updateLowLevelCode" mode="sync"/>
</eca>
</service-eca>