]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.core/src/main/resources/org/argeo/slc/core/execution/xml/slc-flow-0.12.xsd
FlowNamespace extended (flows in flows, param in arg)
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / resources / org / argeo / slc / core / execution / xml / slc-flow-0.12.xsd
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">
6
7 <xsd:import namespace="http://www.springframework.org/schema/beans" />
8
9 <xsd:annotation>
10 <xsd:documentation><![CDATA[
11 SLC Flow Schema, version 0.12
12 Authors: Mathieu Baudier
13
14 This simplifies the definition of SLC flows and their integration with
15 regular Spring beans.
16 ]]></xsd:documentation>
17 </xsd:annotation>
18
19 <xsd:element name="flow">
20 <xsd:annotation>
21 <xsd:documentation><![CDATA[
22 Adds an SLC execution flow, using the default implementation.
23 ]]></xsd:documentation>
24 </xsd:annotation>
25 <xsd:complexType>
26 <xsd:complexContent>
27 <xsd:extension base="beans:identifiedType">
28 <xsd:sequence>
29 <xsd:element ref="beans:description" minOccurs="0"/>
30 <xsd:sequence>
31 <xsd:element name="arg" minOccurs="0" maxOccurs="unbounded"
32 type="flow:argType">
33 <xsd:annotation>
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>
38 </xsd:annotation>
39 </xsd:element>
40 </xsd:sequence>
41 <xsd:sequence>
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" />
46 </xsd:choice>
47 <!--
48 <xsd:any namespace="##other" processContents="strict"
49 minOccurs="0" maxOccurs="unbounded" />
50 -->
51 </xsd:sequence>
52 </xsd:sequence>
53 <xsd:attribute name="path" type="xsd:string">
54 <xsd:annotation>
55 <xsd:documentation><![CDATA[
56 The hierarchical path under which to register this flow.
57 ]]></xsd:documentation>
58 </xsd:annotation>
59 </xsd:attribute>
60 <xsd:attribute name="spec" type="xsd:string">
61 <xsd:annotation>
62 <xsd:documentation><![CDATA[
63 A reference to the related specification bean.
64 ]]></xsd:documentation>
65 </xsd:annotation>
66 </xsd:attribute>
67 <xsd:attribute name="parent" type="xsd:string">
68 <xsd:annotation>
69 <xsd:documentation><![CDATA[
70 The parent bean definition (in Spring sense).
71 ]]></xsd:documentation>
72 </xsd:annotation>
73 </xsd:attribute>
74 <xsd:attribute name="abstract" type="xsd:boolean"
75 default="false">
76 <xsd:annotation>
77 <xsd:documentation><![CDATA[
78 Whether this flow is abstract (in Spring sense).
79 ]]></xsd:documentation>
80 </xsd:annotation>
81 </xsd:attribute>
82 </xsd:extension>
83 </xsd:complexContent>
84 </xsd:complexType>
85 </xsd:element>
86
87 <xsd:element name="spec">
88 <xsd:annotation>
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
92 various constraints.
93 ]]></xsd:documentation>
94 </xsd:annotation>
95 <xsd:complexType>
96 <xsd:complexContent>
97 <xsd:extension base="beans:identifiedType">
98 <xsd:sequence>
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">
103 <xsd:annotation>
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>
108 </xsd:annotation>
109 </xsd:element>
110 <xsd:element name="ref" type="flow:refSpecAttributeType"
111 minOccurs="0" maxOccurs="unbounded">
112 <xsd:annotation>
113 <xsd:documentation><![CDATA[
114 A reference specification attribute, that is, a reference to another object.
115 ]]></xsd:documentation>
116 </xsd:annotation>
117 </xsd:element>
118 </xsd:choice>
119 </xsd:sequence>
120 </xsd:extension>
121 </xsd:complexContent>
122 </xsd:complexType>
123 </xsd:element>
124
125 <xsd:complexType name="specAttributeType">
126 <xsd:choice>
127 <xsd:element name="value" minOccurs="0" maxOccurs="1">
128 <xsd:annotation>
129 <xsd:documentation><![CDATA[
130 The default value of the attribute as an inner bean.
131 ]]></xsd:documentation>
132 </xsd:annotation>
133 <xsd:complexType>
134 <xsd:choice minOccurs="1" maxOccurs="1">
135 <xsd:element ref="beans:bean" />
136 <xsd:element ref="beans:ref" />
137 </xsd:choice>
138 </xsd:complexType>
139 </xsd:element>
140 </xsd:choice>
141 <xsd:attribute name="name" use="required" type="xsd:string">
142 <xsd:annotation>
143 <xsd:documentation><![CDATA[
144 The name of the attribute, under which in can then be referenced.
145 ]]></xsd:documentation>
146 </xsd:annotation>
147 </xsd:attribute>
148 <xsd:attribute name="value" use="optional" type="xsd:string">
149 <xsd:annotation>
150 <xsd:documentation><![CDATA[
151 The default value of the attribute.
152 ]]></xsd:documentation>
153 </xsd:annotation>
154 </xsd:attribute>
155 <xsd:attribute name="ref" use="optional" type="xsd:string">
156 <xsd:annotation>
157 <xsd:documentation><![CDATA[
158 The default value of the attribute as a reference to another bean.
159 ]]></xsd:documentation>
160 </xsd:annotation>
161 </xsd:attribute>
162 <xsd:attribute name="isParameter" use="optional" type="xsd:boolean"
163 default="false">
164 <xsd:annotation>
165 <xsd:documentation><![CDATA[
166 Whether the attribute is a parameter, that is, it has to be set at
167 instantiation but can be modified afterwards for objects of scope execution.
168 ]]></xsd:documentation>
169 </xsd:annotation>
170 </xsd:attribute>
171 <xsd:attribute name="isFrozen" use="optional" type="xsd:boolean"
172 default="false">
173 <xsd:annotation>
174 <xsd:documentation><![CDATA[
175 Whether the attribute is frozen, that is, it cannot be modified at runtime.
176 A frozen attribute has to be a parameter.
177 ]]></xsd:documentation>
178 </xsd:annotation>
179 </xsd:attribute>
180 <xsd:attribute name="isHidden" use="optional" type="xsd:boolean"
181 default="false">
182 <xsd:annotation>
183 <xsd:documentation><![CDATA[
184 Whether the attribute is hidden, that is, it should not be displayed in UIs.
185 ]]></xsd:documentation>
186 </xsd:annotation>
187 </xsd:attribute>
188 </xsd:complexType>
189
190 <xsd:complexType name="primitiveSpecAttributeType">
191 <xsd:complexContent>
192 <xsd:extension base="flow:specAttributeType">
193 <xsd:attribute name="type" default="string">
194 <xsd:annotation>
195 <xsd:documentation><![CDATA[
196 The type of the primitive specification attribute.
197 ]]></xsd:documentation>
198 </xsd:annotation>
199 <xsd:simpleType>
200 <xsd:restriction base="xsd:string">
201 <xsd:enumeration value="string" />
202 <xsd:enumeration value="integer" />
203 <xsd:enumeration value="long" />
204 <xsd:enumeration value="float" />
205 <xsd:enumeration value="double" />
206 <xsd:enumeration value="boolean" />
207 </xsd:restriction>
208 </xsd:simpleType>
209 </xsd:attribute>
210 </xsd:extension>
211 </xsd:complexContent>
212 </xsd:complexType>
213
214 <xsd:complexType name="refSpecAttributeType">
215 <xsd:complexContent>
216 <xsd:extension base="flow:specAttributeType">
217 <xsd:choice>
218 <xsd:element name="choices" minOccurs="0" maxOccurs="1">
219 <xsd:annotation>
220 <xsd:documentation><![CDATA[
221 Possible values to chose from, if ommitted, all the beans in the
222 application context which implement the provided targetClass will
223 be considered.
224 ]]></xsd:documentation>
225 </xsd:annotation>
226 <xsd:complexType>
227 <xsd:choice>
228 <xsd:element name="choice" minOccurs="0" maxOccurs="unbounded"
229 type="flow:refChoiceType">
230 <xsd:annotation>
231 <xsd:documentation><![CDATA[
232 A choice for a reference specification attribute.
233 ]]></xsd:documentation>
234 </xsd:annotation>
235 </xsd:element>
236 </xsd:choice>
237 </xsd:complexType>
238 </xsd:element>
239 </xsd:choice>
240 <xsd:attribute name="targetClass" use="required" type="xsd:string">
241 <xsd:annotation>
242 <xsd:documentation><![CDATA[
243 The class that has to be implemented by the underlying object.
244 ]]></xsd:documentation>
245 </xsd:annotation>
246 </xsd:attribute>
247 </xsd:extension>
248 </xsd:complexContent>
249 </xsd:complexType>
250
251 <xsd:complexType name="refChoiceType">
252 <xsd:attribute name="name" use="required" type="xsd:string">
253 <xsd:annotation>
254 <xsd:documentation><![CDATA[
255 The name of the related bean.
256 ]]></xsd:documentation>
257 </xsd:annotation>
258 </xsd:attribute>
259 <xsd:attribute name="description" use="optional" type="xsd:string">
260 <xsd:annotation>
261 <xsd:documentation><![CDATA[
262 A human readable description of this choice.
263 ]]></xsd:documentation>
264 </xsd:annotation>
265 </xsd:attribute>
266 </xsd:complexType>
267
268 <xsd:complexType name="argType">
269 <xsd:choice minOccurs="0" maxOccurs="1">
270 <xsd:element ref="beans:bean" />
271 <xsd:element ref="beans:ref" />
272 <xsd:element ref="flow:param" />
273 </xsd:choice>
274 <xsd:attribute name="name" use="required" type="xsd:string">
275 <xsd:annotation>
276 <xsd:documentation><![CDATA[
277 The name of the related parameter.
278 ]]></xsd:documentation>
279 </xsd:annotation>
280 </xsd:attribute>
281 <xsd:attribute name="value" type="xsd:string">
282 <xsd:annotation>
283 <xsd:documentation><![CDATA[
284 The plain value of the related parameter.
285 ]]></xsd:documentation>
286 </xsd:annotation>
287 </xsd:attribute>
288 <xsd:attribute name="ref" type="xsd:string">
289 <xsd:annotation>
290 <xsd:documentation><![CDATA[
291 The value of the related parameter as a reference to a bean.
292 ]]></xsd:documentation>
293 </xsd:annotation>
294 </xsd:attribute>
295 </xsd:complexType>
296
297 <xsd:attribute name="as-flow" type="xsd:string">
298 <xsd:annotation>
299 <xsd:documentation><![CDATA[
300 If decorating an executable bean, it will generate an implicit SLC
301 execution flow with the provided value as name.
302 ]]></xsd:documentation>
303 </xsd:annotation>
304 </xsd:attribute>
305 <!--
306 <xsd:attribute name="var" type="xsd:boolean">
307 <xsd:annotation>
308 <xsd:documentation><![CDATA[
309 If true, the decorated bean is set to scope execution and proxied.
310 ]]></xsd:documentation>
311 </xsd:annotation>
312 </xsd:attribute>
313 -->
314 <xsd:element name="param">
315 <xsd:annotation>
316 <xsd:documentation><![CDATA[
317 If within a property tag of a bean, it will set the value of this property
318 with a reference to a parameter.
319 ]]></xsd:documentation>
320 </xsd:annotation>
321 <xsd:complexType>
322 <xsd:attribute name="name" type="xsd:string" use="required">
323 <xsd:annotation>
324 <xsd:documentation><![CDATA[
325 The name of the related parameter.
326 ]]></xsd:documentation>
327 </xsd:annotation>
328 </xsd:attribute>
329 <xsd:attribute name="instantiationManager" type="xsd:string"
330 use="optional" default="instantiationManager">
331 <xsd:annotation>
332 <xsd:documentation><![CDATA[
333 A reference to the instantiation manager to use instead of the default one
334 (expert usage).
335 ]]></xsd:documentation>
336 </xsd:annotation>
337 </xsd:attribute>
338 </xsd:complexType>
339 </xsd:element>
340
341 <!-- for description tags, beans or current namespace are valid -->
342 <xsd:element name="description" substitutionGroup="beans:description"/>
343
344 </xsd:schema>