ilscipio/scipio-erp

View on GitHub
framework/service/dtd/service-group.xsd

Summary

Maintainability
Test Coverage
<?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.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <!--
        DEV NOTE: TODO: REVIEW: This file has been manually duplicated in:
            services.xsd
        Changes made here may need to be duplicated there.
        This allows for more reliable IDE integration, simplified XML parsing for libraries, and support for per-file modifications.
    -->
    <xs:element name="service-group">
        <xs:complexType>
            <xs:sequence>
                <xs:element maxOccurs="unbounded" ref="group"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="group">
        <xs:complexType>
            <xs:sequence>
                <xs:element maxOccurs="unbounded" ref="invoke"/>
            </xs:sequence>
            <xs:attributeGroup ref="attlist.group"/>
        </xs:complexType>
    </xs:element>
    <xs:attributeGroup name="attlist.group">
        <xs:attribute type="xs:string" name="name" use="optional"/>
        <xs:attribute name="send-mode" default="all">
            <xs:simpleType>
                <xs:restriction base="xs:token">
                    <xs:enumeration value="none"/>
                    <xs:enumeration value="all"/>
                    <xs:enumeration value="first-available"/>
                    <xs:enumeration value="random"/>
                    <xs:enumeration value="round-robin"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:attributeGroup>
    <xs:element name="invoke">
        <xs:complexType>
            <xs:attributeGroup ref="attlist.invoke"/>
        </xs:complexType>
    </xs:element>
    <xs:attributeGroup name="attlist.invoke">
        <xs:attribute type="xs:string" name="name" use="required"/>
        <xs:attribute name="mode" default="sync">
            <xs:simpleType>
                <xs:restriction base="xs:token">
                    <xs:enumeration value="sync"/>
                    <xs:enumeration value="async"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="parameters" default="preserve">
            <xs:simpleType>
                <xs:restriction base="xs:token">
                    <xs:enumeration value="optional"/>
                    <xs:enumeration value="preserve"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="result-to-context" type="xs:boolean" default="false"/>
    </xs:attributeGroup>
</xs:schema>
<!--
    <service-group>
        <group name="testOne" send-mode="none">
            <invoke name="testScv" mode="async"/>
            <invoke name="testScv" mode="sync"/>
        </group>
    </service-group>
-->