(OFBIZ-10411) To define boolean values, some ad-hoc enumeration of "true" and "false" are repeatedly used. Since XML Schema defines a standard boolean datatype it's better to use it. Thanks: Mathieu Lirzin git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846727 13f79535-47bb-0310-9956-ffa450edef68
84 lines
3.2 KiB
XML
84 lines
3.2 KiB
XML
<?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">
|
|
<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>
|
|
-->
|