1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3 xmlns:flow="http://www.argeo.org/schema/slc-flow" xmlns:beans="http://www.springframework.org/schema/beans"
4 targetNamespace="http://www.argeo.org/schema/slc-flow"
5 elementFormDefault="qualified" attributeFormDefault="unqualified">
7 <xsd:import namespace="http://www.springframework.org/schema/beans" />
10 <xsd:documentation><![CDATA[
11 SLC Flow Schema, version 0.12
12 Authors: Mathieu Baudier
14 This simplifies the definition of SLC flows and their integration with
16 ]]></xsd:documentation>
19 <xsd:element name="flow">
21 <xsd:documentation><![CDATA[
22 Adds an SLC execution flow, using the default implementation.
23 ]]></xsd:documentation>
27 <xsd:extension base="beans:identifiedType">
30 <xsd:element name="arg" minOccurs="0" maxOccurs="unbounded"
33 <xsd:documentation><![CDATA[
34 Parameter for an execution flow which will override at instantiation the
35 value of the parameter already defined as default value or in a parent bean.
36 ]]></xsd:documentation>
41 <xsd:choice minOccurs="0" maxOccurs="unbounded">
42 <xsd:element ref="beans:bean" />
43 <xsd:element ref="beans:ref" />
46 <xsd:any namespace="##other" processContents="strict"
47 minOccurs="0" maxOccurs="unbounded" />
51 <xsd:attribute name="path" type="xsd:string">
53 <xsd:documentation><![CDATA[
54 The hierarchical path under which to register this flow.
55 ]]></xsd:documentation>
58 <xsd:attribute name="spec" type="xsd:string">
60 <xsd:documentation><![CDATA[
61 A reference to the related specification bean.
62 ]]></xsd:documentation>
65 <xsd:attribute name="parent" type="xsd:string">
67 <xsd:documentation><![CDATA[
68 The parent bean definition (in Spring sense).
69 ]]></xsd:documentation>
72 <xsd:attribute name="abstract" type="xsd:boolean"
75 <xsd:documentation><![CDATA[
76 Whether this flow is abstract (in Spring sense).
77 ]]></xsd:documentation>
85 <xsd:element name="spec">
87 <xsd:documentation><![CDATA[
88 SLC flow specifications, defining the parameters and variables
89 which can be used in related flows, along with their default values and
91 ]]></xsd:documentation>
95 <xsd:extension base="beans:identifiedType">
97 <xsd:choice minOccurs="0" maxOccurs="unbounded">
98 <xsd:element name="primitive" type="flow:primitiveSpecAttributeType"
99 minOccurs="0" maxOccurs="unbounded">
101 <xsd:documentation><![CDATA[
102 A primitive specification attribute, that is, a plain standard value
103 and not a reference to an object.
104 ]]></xsd:documentation>
107 <xsd:element name="ref" type="flow:refSpecAttributeType"
108 minOccurs="0" maxOccurs="unbounded">
110 <xsd:documentation><![CDATA[
111 A reference specification attribute, that is, a reference to another object.
112 ]]></xsd:documentation>
118 </xsd:complexContent>
122 <xsd:complexType name="specAttributeType">
124 <xsd:element name="value" minOccurs="0" maxOccurs="1">
126 <xsd:documentation><![CDATA[
127 The default value of the attribute as an inner bean.
128 ]]></xsd:documentation>
131 <xsd:choice minOccurs="1" maxOccurs="1">
132 <xsd:element ref="beans:bean" />
133 <xsd:element ref="beans:ref" />
138 <xsd:attribute name="name" use="required" type="xsd:string">
140 <xsd:documentation><![CDATA[
141 The name of the attribute, under which in can then be referenced.
142 ]]></xsd:documentation>
145 <xsd:attribute name="value" use="optional" type="xsd:string">
147 <xsd:documentation><![CDATA[
148 The default value of the attribute.
149 ]]></xsd:documentation>
152 <xsd:attribute name="ref" use="optional" type="xsd:string">
154 <xsd:documentation><![CDATA[
155 The default value of the attribute as a reference to another bean.
156 ]]></xsd:documentation>
159 <xsd:attribute name="isParameter" use="optional" type="xsd:boolean"
162 <xsd:documentation><![CDATA[
163 Whether the attribute is a parameter, that is, it has to be set at
164 instantiation but can be modified afterwards for objects of scope execution.
165 ]]></xsd:documentation>
168 <xsd:attribute name="isFrozen" use="optional" type="xsd:boolean"
171 <xsd:documentation><![CDATA[
172 Whether the attribute is frozen, that is, it cannot be modified at runtime.
173 A frozen attribute has to be a parameter.
174 ]]></xsd:documentation>
177 <xsd:attribute name="isHidden" use="optional" type="xsd:boolean"
180 <xsd:documentation><![CDATA[
181 Whether the attribute is hidden, that is, it should not be displayed in UIs.
182 ]]></xsd:documentation>
187 <xsd:complexType name="primitiveSpecAttributeType">
189 <xsd:extension base="flow:specAttributeType">
190 <xsd:attribute name="type" default="string">
192 <xsd:documentation><![CDATA[
193 The type of the primitive specification attribute.
194 ]]></xsd:documentation>
197 <xsd:restriction base="xsd:string">
198 <xsd:enumeration value="string" />
199 <xsd:enumeration value="integer" />
200 <xsd:enumeration value="long" />
201 <xsd:enumeration value="float" />
202 <xsd:enumeration value="double" />
203 <xsd:enumeration value="boolean" />
208 </xsd:complexContent>
211 <xsd:complexType name="refSpecAttributeType">
213 <xsd:extension base="flow:specAttributeType">
215 <xsd:element name="choices" minOccurs="0" maxOccurs="1">
217 <xsd:documentation><![CDATA[
218 Possible values to chose from, if ommitted, all the beans in the
219 application context which implement the provided targetClass will
221 ]]></xsd:documentation>
225 <xsd:element name="choice" minOccurs="0" maxOccurs="unbounded"
226 type="flow:refChoiceType">
228 <xsd:documentation><![CDATA[
229 A choice for a reference specification attribute.
230 ]]></xsd:documentation>
237 <xsd:attribute name="targetClass" use="required" type="xsd:string">
239 <xsd:documentation><![CDATA[
240 The class that has to be implemented by the underlying object.
241 ]]></xsd:documentation>
245 </xsd:complexContent>
248 <xsd:complexType name="refChoiceType">
249 <xsd:attribute name="name" use="required" type="xsd:string">
251 <xsd:documentation><![CDATA[
252 The name of the related bean.
253 ]]></xsd:documentation>
256 <xsd:attribute name="description" use="optional" type="xsd:string">
258 <xsd:documentation><![CDATA[
259 A human readable description of this choice.
260 ]]></xsd:documentation>
265 <xsd:complexType name="argType">
266 <xsd:choice minOccurs="0" maxOccurs="1">
267 <xsd:element ref="beans:bean" />
268 <xsd:element ref="beans:ref" />
270 <xsd:attribute name="name" use="required" type="xsd:string">
272 <xsd:documentation><![CDATA[
273 The name of the related parameter.
274 ]]></xsd:documentation>
277 <xsd:attribute name="value" type="xsd:string">
279 <xsd:documentation><![CDATA[
280 The plain value of the related parameter.
281 ]]></xsd:documentation>
284 <xsd:attribute name="ref" type="xsd:string">
286 <xsd:documentation><![CDATA[
287 The value of the related parameter as a reference to a bean.
288 ]]></xsd:documentation>
293 <xsd:attribute name="as-flow" type="xsd:string">
295 <xsd:documentation><![CDATA[
296 If decorating an executable bean, it will generate an implicit SLC
297 execution flow with the provided value as name.
298 ]]></xsd:documentation>
302 <xsd:element name="param">
304 <xsd:documentation><![CDATA[
305 If within a property tag of a bean, it will set the value of this property
306 with a reference to a parameter.
307 ]]></xsd:documentation>
310 <xsd:attribute name="name" type="xsd:string" use="required">
312 <xsd:documentation><![CDATA[
313 The name of the related parameter.
314 ]]></xsd:documentation>
317 <xsd:attribute name="instantiationManager" type="xsd:string"
318 use="optional" default="instantiationManager">
320 <xsd:documentation><![CDATA[
321 A reference to the instantiation manager to use instead of the default one
323 ]]></xsd:documentation>