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">
29 <xsd:element ref="beans:description" minOccurs="0" />
31 <xsd:element name="arg" minOccurs="0" maxOccurs="unbounded"
34 <xsd:documentation><![CDATA[
35 Parameter for an execution flow which will override at instantiation the
36 value of the parameter already defined as default value or in a parent bean.
37 ]]></xsd:documentation>
42 <xsd:choice minOccurs="0" maxOccurs="unbounded">
43 <xsd:element ref="beans:bean" />
44 <xsd:element ref="beans:ref" />
45 <xsd:element ref="flow:flow" />
48 <xsd:any namespace="##other" processContents="strict"
49 minOccurs="0" maxOccurs="unbounded" />
53 <xsd:attribute name="path" type="xsd:string">
55 <xsd:documentation><![CDATA[
56 The hierarchical path under which to register this flow.
57 ]]></xsd:documentation>
60 <xsd:attribute name="spec" type="xsd:string">
62 <xsd:documentation><![CDATA[
63 A reference to the related specification bean.
64 ]]></xsd:documentation>
67 <xsd:attribute name="parent" type="xsd:string">
69 <xsd:documentation><![CDATA[
70 The parent bean definition (in Spring sense).
71 ]]></xsd:documentation>
74 <xsd:attribute name="abstract" type="xsd:boolean"
77 <xsd:documentation><![CDATA[
78 Whether this flow is abstract (in Spring sense).
79 ]]></xsd:documentation>
87 <xsd:element name="spec">
89 <xsd:documentation><![CDATA[
90 SLC flow specifications, defining the parameters and variables
91 which can be used in related flows, along with their default values and
93 ]]></xsd:documentation>
97 <xsd:extension base="beans:identifiedType">
99 <xsd:element ref="beans:description" minOccurs="0" />
100 <xsd:choice minOccurs="0" maxOccurs="unbounded">
101 <xsd:element name="primitive" type="flow:primitiveSpecAttributeType"
102 minOccurs="0" maxOccurs="unbounded">
104 <xsd:documentation><![CDATA[
105 A primitive specification attribute, that is, a plain standard value
106 and not a reference to an object.
107 ]]></xsd:documentation>
110 <xsd:element name="ref" type="flow:refSpecAttributeType"
111 minOccurs="0" maxOccurs="unbounded">
113 <xsd:documentation><![CDATA[
114 A reference specification attribute, that is, a reference to another object.
115 ]]></xsd:documentation>
121 </xsd:complexContent>
125 <xsd:complexType name="specAttributeType">
127 <xsd:element name="value" minOccurs="0" maxOccurs="1">
129 <xsd:documentation><![CDATA[
130 The default value of the attribute as an inner bean.
131 ]]></xsd:documentation>
134 <xsd:choice minOccurs="1" maxOccurs="1">
135 <xsd:element ref="beans:bean" />
136 <xsd:element ref="beans:ref" />
137 <xsd:element ref="beans:list"/>
138 <xsd:element ref="beans:set"/>
139 <xsd:element ref="beans:map"/>
140 <xsd:element ref="beans:props"/>
145 <xsd:attribute name="name" use="required" type="xsd:string">
147 <xsd:documentation><![CDATA[
148 The name of the attribute, under which in can then be referenced.
149 ]]></xsd:documentation>
152 <xsd:attribute name="value" use="optional" type="xsd:string">
154 <xsd:documentation><![CDATA[
155 The default value of the attribute.
156 ]]></xsd:documentation>
159 <xsd:attribute name="ref" use="optional" type="xsd:string">
161 <xsd:documentation><![CDATA[
162 The default value of the attribute as a reference to another bean.
163 ]]></xsd:documentation>
166 <xsd:attribute name="isParameter" use="optional" type="xsd:boolean"
169 <xsd:documentation><![CDATA[
170 Whether the attribute is a parameter, that is, it has to be set at
171 instantiation but can be modified afterwards for objects of scope execution.
172 ]]></xsd:documentation>
175 <xsd:attribute name="isFrozen" use="optional" type="xsd:boolean"
178 <xsd:documentation><![CDATA[
179 Whether the attribute is frozen, that is, it cannot be modified at runtime.
180 A frozen attribute has to be a parameter.
181 ]]></xsd:documentation>
184 <xsd:attribute name="isHidden" use="optional" type="xsd:boolean"
187 <xsd:documentation><![CDATA[
188 Whether the attribute is hidden, that is, it should not be displayed in UIs.
189 ]]></xsd:documentation>
194 <xsd:complexType name="primitiveSpecAttributeType">
196 <xsd:extension base="flow:specAttributeType">
197 <xsd:attribute name="type" default="string">
199 <xsd:documentation><![CDATA[
200 The type of the primitive specification attribute.
201 ]]></xsd:documentation>
204 <xsd:restriction base="xsd:string">
205 <xsd:enumeration value="string" />
206 <xsd:enumeration value="integer" />
207 <xsd:enumeration value="long" />
208 <xsd:enumeration value="float" />
209 <xsd:enumeration value="double" />
210 <xsd:enumeration value="boolean" />
215 </xsd:complexContent>
218 <xsd:complexType name="refSpecAttributeType">
220 <xsd:extension base="flow:specAttributeType">
222 <xsd:element name="choices" minOccurs="0" maxOccurs="1">
224 <xsd:documentation><![CDATA[
225 Possible values to chose from, if ommitted, all the beans in the
226 application context which implement the provided targetClass will
228 ]]></xsd:documentation>
232 <xsd:element name="choice" minOccurs="0" maxOccurs="unbounded"
233 type="flow:refChoiceType">
235 <xsd:documentation><![CDATA[
236 A choice for a reference specification attribute.
237 ]]></xsd:documentation>
244 <xsd:attribute name="targetClass" use="required" type="xsd:string">
246 <xsd:documentation><![CDATA[
247 The class that has to be implemented by the underlying object.
248 ]]></xsd:documentation>
252 </xsd:complexContent>
255 <xsd:complexType name="refChoiceType">
256 <xsd:attribute name="name" use="required" type="xsd:string">
258 <xsd:documentation><![CDATA[
259 The name of the related bean.
260 ]]></xsd:documentation>
263 <xsd:attribute name="description" use="optional" type="xsd:string">
265 <xsd:documentation><![CDATA[
266 A human readable description of this choice.
267 ]]></xsd:documentation>
272 <xsd:complexType name="argType">
273 <xsd:choice minOccurs="0" maxOccurs="1">
274 <xsd:element ref="beans:bean" />
275 <xsd:element ref="beans:ref" />
276 <xsd:element ref="flow:param" />
277 <xsd:element ref="beans:list"/>
278 <xsd:element ref="beans:set"/>
279 <xsd:element ref="beans:map"/>
280 <xsd:element ref="beans:props"/>
282 <xsd:attribute name="name" use="required" type="xsd:string">
284 <xsd:documentation><![CDATA[
285 The name of the related parameter.
286 ]]></xsd:documentation>
289 <xsd:attribute name="value" type="xsd:string">
291 <xsd:documentation><![CDATA[
292 The plain value of the related parameter.
293 ]]></xsd:documentation>
296 <xsd:attribute name="ref" type="xsd:string">
298 <xsd:documentation><![CDATA[
299 The value of the related parameter as a reference to a bean.
300 ]]></xsd:documentation>
305 <xsd:attribute name="as-flow" type="xsd:string">
307 <xsd:documentation><![CDATA[
308 If decorating an executable bean, it will generate an implicit SLC
309 execution flow with the provided value as name.
310 ]]></xsd:documentation>
314 <xsd:attribute name="var" type="xsd:boolean"> <xsd:annotation>
315 <xsd:documentation><![CDATA[ If true, the decorated bean is set to
316 scope execution and proxied. ]]></xsd:documentation> </xsd:annotation>
320 <xsd:element name="variable">
323 <xsd:documentation><![CDATA[
324 Marks a bean definition as being variable, i.e. a scoped proxy of scope execution
325 ]]></xsd:documentation>
327 <xsd:attribute name="proxy-target-class" type="xsd:boolean"
330 <xsd:documentation><![CDATA[
331 Are class-based (CGLIB) proxies to be created?
333 in order to switch to standard Java
334 interface-based proxies, turn this flag to
336 ]]></xsd:documentation>
342 <xsd:element name="param">
344 <xsd:documentation><![CDATA[
345 If within a property tag of a bean, it will set the value of this property
346 with a reference to a parameter.
347 ]]></xsd:documentation>
350 <xsd:attribute name="name" type="xsd:string" use="required">
352 <xsd:documentation><![CDATA[
353 The name of the related parameter.
354 ]]></xsd:documentation>
357 <xsd:attribute name="instantiationManager" type="xsd:string"
358 use="optional" default="instantiationManager">
360 <xsd:documentation><![CDATA[
361 A reference to the instantiation manager to use instead of the default one
363 ]]></xsd:documentation>
369 <!-- for description tags, beans or current namespace are valid -->
370 <xsd:element name="description" substitutionGroup="beans:description" />