ilscipio/scipio-erp

View on GitHub
applications/content/servicedef/services_output.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>Content Component Output Services</description>
    <vendor>OFBiz</vendor>

    <service name="sendPrintFromScreen" max-retry="0" engine="java"
        location="org.ofbiz.content.output.OutputServices" invoke="sendPrintFromScreen">
        <description>Send Print From Screen Widget Service</description>
        <attribute name="screenLocation" type="String" mode="IN" optional="false">
            <type-validate>
                <fail-property resource="ContentErrorUiLabels" property="ContentRequiredFieldMissingScreenLocation"/>
            </type-validate>
        </attribute>
        <attribute name="screenContext" type="Map" mode="IN" optional="true"/>
        <attribute name="contentType" type="String" mode="IN" optional="true"/>
        <attribute name="printerContentType" type="String" mode="IN" optional="true"/>
        <attribute name="printerName" type="String" mode="IN" optional="true"/>
        <attribute name="docAttributes" type="List" mode="IN" optional="true"/>
        <attribute name="printRequestAttributes" type="List" mode="IN" optional="true"/>
    </service>

    <service name="createFileFromScreen" max-retry="0" engine="java"
        location="org.ofbiz.content.output.OutputServices" invoke="createFileFromScreen">
        <description>Create a File From Screen Widget Service</description>
        <attribute name="screenLocation" type="String" mode="IN" optional="false">
            <type-validate>
                <fail-property resource="ContentErrorUiLabels" property="ContentRequiredFieldMissingScreenLocation"/>
            </type-validate>
        </attribute>
        <attribute name="screenContext" type="Map" mode="IN" optional="true"/>
        <attribute name="contentType" type="String" mode="IN" optional="true"/>
        <attribute name="filePath" type="String" mode="IN" optional="true"/>
        <attribute name="fileName" type="String" mode="IN" optional="false">
            <type-validate>
                <fail-property resource="ContentErrorUiLabels" property="ContentRequiredFieldMissingFileName"/>
            </type-validate>
        </attribute>
        <!-- SCIPIO: 2020-01-13: adding the produced File into the output -->
        <attribute name="fileOutput" type="java.io.File" mode="OUT" optional="true"/>
    </service>

</services>