ilscipio/scipio-erp

View on GitHub
applications/manufacturing/servicedef/services_mrp.xml

Summary

Maintainability
Test Coverage
<?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.
-->

<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
    <description>Manufacturing Services - MRP</description>
    <vendor>OFBiz</vendor>
    <version>1.0</version>

    <!-- MRP services -->
    <service name="executeMrp" engine="java"
            location="org.ofbiz.manufacturing.mrp.MrpServices" invoke="executeMrp" auth="true"
            transaction-timeout="7200" max-retry="0">
        <description>Performs a run of Mrp</description>
        <attribute name="facilityGroupId" type="String" mode="IN" optional="true"/>
        <attribute name="facilityId" type="String" mode="IN" optional="true"/>
        <attribute name="mrpName" type="String" mode="IN" optional="true"/>
        <attribute name="defaultYearsOffset" type="Integer" mode="IN" optional="true"/>
        <attribute name="msgResult" type="List" mode="OUT" optional="false"/>
    </service>
    <service name="initMrpEvents" engine="java"
            location="org.ofbiz.manufacturing.mrp.MrpServices" invoke="initMrpEvents" auth="true">
        <description>Initialize data for the MRP</description>
        <attribute name="mrpId" type="String" mode="IN" optional="false"/>
        <attribute name="facilityId" type="String" mode="IN" optional="false"/>
        <attribute name="manufacturingFacilityId" type="String" mode="IN" optional="false"/>
        <attribute name="reInitialize" type="Boolean" mode="IN" optional="false"/>
        <attribute name="defaultYearsOffset" type="Integer" mode="IN" optional="true"/>
    </service>
    <!-- SCIPIO: FIXME?: MrpServices.findProductMrpQoh is not a service method
    <service name="findProductMrpQoh" engine="java"
            location="org.ofbiz.manufacturing.mrp.MrpServices" invoke="findProductMrpQoh" auth="true">
        <description>Find the quantity on hand of products for the MRP</description>
        <attribute name="productId" type="String" mode="IN" optional="false"/>
        <attribute name="quantityOnHandTotal" type="BigDecimal" mode="OUT" optional="false"/>
    </service>
    -->
    <service name="createMrpEvent" engine="java"
            location="org.ofbiz.manufacturing.mrp.InventoryEventPlannedServices" invoke="createMrpEvent" auth="false">
        <description>create an MrpEvent</description>
        <attribute name="mrpId" type="String" mode="IN" optional="false"/>
        <attribute name="productId" type="String" mode="IN" optional="false"/>
        <attribute name="eventDate" type="Timestamp" mode="IN" optional="false"/>
        <attribute name="mrpEventTypeId" type="String" mode="IN" optional="false"/>
        <attribute name="quantity" type="BigDecimal" mode="IN" optional="false"/>
        <attribute name="facilityId" type="String" mode="IN" optional="true"/>
        <attribute name="eventName" type="String" mode="IN" optional="true"/>
    </service>
    <service name="setEstimatedDeliveryDates" engine="java"
            location="org.ofbiz.manufacturing.jobshopmgt.ProductionRunServices" invoke="setEstimatedDeliveryDates">
        <description>Set estimated ship dates for order items based on outstanding production runs</description>
    </service>

    <service name="createMrpEventType" default-entity-name="MrpEventType" engine="entity-auto" invoke="create" auth="true">
        <description>Create a MrpEventType record</description>
        <auto-attributes include="pk" mode="INOUT" optional="true"/>
        <auto-attributes include="nonpk" mode="IN" optional="true"/>
    </service>
    <service name="updateMrpEventType" default-entity-name="MrpEventType" engine="entity-auto" invoke="update" auth="true">
        <description>Update a MrpEventType record</description>
        <auto-attributes include="pk" mode="IN"/>
        <auto-attributes include="nonpk" mode="IN" optional="true"/>
    </service>
    <service name="deleteMrpEventType" default-entity-name="MrpEventType" engine="entity-auto" invoke="delete" auth="true">
        <description>Delete a MrpEventType record</description>
        <auto-attributes include="pk" mode="IN"/>
    </service>
</services>