]>
git.argeo.org Git - gpl/argeo-slc.git/blob - placeHolders.cascading.exec.xml
e44cae4e4f54d33ffce8c8d1ef15fa2470ea395e
1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <beans xmlns=
"http://www.springframework.org/schema/beans"
3 xmlns:
p=
"http://www.springframework.org/schema/p" xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:
aop=
"http://www.springframework.org/schema/aop"
5 xsi:
schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
6 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
8 <import resource=
"imports.xml" />
10 <bean id=
"myTestResult" class=
"org.argeo.slc.core.test.SimpleTestResult" />
12 <bean id=
"myTestDef" class=
"org.argeo.slc.core.test.BasicTestDefinition" />
14 <bean id=
"echo1" parent=
"task.echo">
15 <property name=
"message" value=
"From minimal" />
18 <bean id=
"myTestRunTemplate" class=
"org.argeo.slc.core.test.SimpleTestRun" abstract=
"true">
19 <property name=
"testDefinition" ref=
"myTestDef" />
20 <property name=
"testResult" ref=
"myTestResult"/>
24 The Flow A contains the flow B as executable.
27 p1: flow A: default - flow B: -
28 p2: flow A: set - flow B: -
29 p3: flow A: default - flow B: default
30 p4: flow A: set - flow B: default
31 p5: flow A: default - flow B: set
32 p6: flow A: set - flow B: set
33 p7: flow A: - - flow B: default
34 p8: flow A: - - flow B: set
39 <bean id=
"flowA" parent=
"slcTemplate.simpleFlow">
41 <bean parent=
"slcTemplate.simpleSpec">
42 <property name=
"attributes">
44 <entry key=
"p1"><bean parent=
"specAttr.primitive" p:
value=
"da1" /></entry>
45 <entry key=
"p2"><bean parent=
"specAttr.primitive" p:
value=
"da2" /></entry>
46 <entry key=
"p3"><bean parent=
"specAttr.primitive" p:
value=
"da3" /></entry>
47 <entry key=
"p4"><bean parent=
"specAttr.primitive" p:
value=
"da4" /></entry>
48 <entry key=
"p5"><bean parent=
"specAttr.primitive" p:
value=
"da5" /></entry>
49 <entry key=
"p6"><bean parent=
"specAttr.primitive" p:
value=
"da6" /></entry>
56 <entry key=
"p2" value=
"va2"/>
57 <entry key=
"p4" value=
"va4"/>
58 <entry key=
"p6" value=
"va6"/>
61 <property name=
"executables">
63 <bean parent=
"task.echo"><property name=
"message" value=
"p1=@{p1}" /></bean>
64 <bean parent=
"myTestRunTemplate">
65 <property name=
"testData">
66 <bean class=
"org.argeo.slc.core.test.BasicTestData">
67 <property name=
"expected" value=
"da1" />
68 <property name=
"reached" value=
"@{p1}" />
72 <bean parent=
"task.echo"><property name=
"message" value=
"p2=@{p2}" /></bean>
73 <bean parent=
"myTestRunTemplate">
74 <property name=
"testData">
75 <bean class=
"org.argeo.slc.core.test.BasicTestData">
76 <property name=
"expected" value=
"va2" />
77 <property name=
"reached" value=
"@{p2}" />
81 <bean parent=
"task.echo"><property name=
"message" value=
"p3=@{p3}" /></bean>
82 <bean parent=
"myTestRunTemplate">
83 <property name=
"testData">
84 <bean class=
"org.argeo.slc.core.test.BasicTestData">
85 <property name=
"expected" value=
"da3" />
86 <property name=
"reached" value=
"@{p3}" />
90 <bean parent=
"task.echo"><property name=
"message" value=
"p4=@{p4}" /></bean>
91 <bean parent=
"myTestRunTemplate">
92 <property name=
"testData">
93 <bean class=
"org.argeo.slc.core.test.BasicTestData">
94 <property name=
"expected" value=
"va4" />
95 <property name=
"reached" value=
"@{p4}" />
99 <bean parent=
"task.echo"><property name=
"message" value=
"p5=@{p5}" /></bean>
100 <bean parent=
"myTestRunTemplate">
101 <property name=
"testData">
102 <bean class=
"org.argeo.slc.core.test.BasicTestData">
103 <property name=
"expected" value=
"da5" />
104 <property name=
"reached" value=
"@{p5}" />
108 <bean parent=
"task.echo"><property name=
"message" value=
"p6=@{p6}" /></bean>
109 <bean parent=
"myTestRunTemplate">
110 <property name=
"testData">
111 <bean class=
"org.argeo.slc.core.test.BasicTestData">
112 <property name=
"expected" value=
"va6" />
113 <property name=
"reached" value=
"@{p6}" />
122 <bean id=
"flowB" parent=
"slcTemplate.simpleFlow" scope=
"prototype">
124 <bean parent=
"slcTemplate.simpleSpec">
125 <property name=
"attributes">
127 <entry key=
"p3"><bean parent=
"specAttr.primitive" p:
value=
"db3" /></entry>
128 <entry key=
"p4"><bean parent=
"specAttr.primitive" p:
value=
"db4" /></entry>
129 <entry key=
"p5"><bean parent=
"specAttr.primitive" p:
value=
"db5" /></entry>
130 <entry key=
"p6"><bean parent=
"specAttr.primitive" p:
value=
"db6" /></entry>
131 <entry key=
"p7"><bean parent=
"specAttr.primitive" p:
value=
"db7" /></entry>
132 <entry key=
"p8"><bean parent=
"specAttr.primitive" p:
value=
"db8" /></entry>
139 <entry key=
"p3" value=
"vb3"/>
140 <entry key=
"p4" value=
"vb4"/>
141 <entry key=
"p7" value=
"vb7"/>
144 <property name=
"executables">
146 <bean parent=
"task.echo"><property name=
"message" value=
"p1=@{p1}" /></bean>
147 <bean parent=
"myTestRunTemplate">
148 <property name=
"testData">
149 <bean class=
"org.argeo.slc.core.test.BasicTestData">
150 <property name=
"expected" value=
"da1" />
151 <property name=
"reached" value=
"@{p1}" />
155 <bean parent=
"task.echo"><property name=
"message" value=
"p2=@{p2}" /></bean>
156 <bean parent=
"myTestRunTemplate">
157 <property name=
"testData">
158 <bean class=
"org.argeo.slc.core.test.BasicTestData">
159 <property name=
"expected" value=
"va2" />
160 <property name=
"reached" value=
"@{p2}" />
164 <bean parent=
"task.echo"><property name=
"message" value=
"p3=@{p3}" /></bean>
165 <bean parent=
"myTestRunTemplate">
166 <property name=
"testData">
167 <bean class=
"org.argeo.slc.core.test.BasicTestData">
168 <property name=
"expected" value=
"da3" />
169 <property name=
"reached" value=
"@{p3}" />
173 <bean parent=
"task.echo"><property name=
"message" value=
"p4=@{p4}" /></bean>
174 <bean parent=
"myTestRunTemplate">
175 <property name=
"testData">
176 <bean class=
"org.argeo.slc.core.test.BasicTestData">
177 <property name=
"expected" value=
"va4" />
178 <property name=
"reached" value=
"@{p4}" />
182 <bean parent=
"task.echo"><property name=
"message" value=
"p5=@{p5}" /></bean>
183 <bean parent=
"myTestRunTemplate">
184 <property name=
"testData">
185 <bean class=
"org.argeo.slc.core.test.BasicTestData">
186 <property name=
"expected" value=
"da5" />
187 <property name=
"reached" value=
"@{p5}" />
191 <bean parent=
"task.echo"><property name=
"message" value=
"p6=@{p6}" /></bean>
192 <bean parent=
"myTestRunTemplate">
193 <property name=
"testData">
194 <bean class=
"org.argeo.slc.core.test.BasicTestData">
195 <property name=
"expected" value=
"va6" />
196 <property name=
"reached" value=
"@{p6}" />
200 <bean parent=
"task.echo"><property name=
"message" value=
"p7=@{p7}" /></bean>
201 <bean parent=
"myTestRunTemplate">
202 <property name=
"testData">
203 <bean class=
"org.argeo.slc.core.test.BasicTestData">
204 <property name=
"expected" value=
"vb7" />
205 <property name=
"reached" value=
"@{p7}" />
209 <bean parent=
"task.echo"><property name=
"message" value=
"p8=@{p8}" /></bean>
210 <bean parent=
"myTestRunTemplate">
211 <property name=
"testData">
212 <bean class=
"org.argeo.slc.core.test.BasicTestData">
213 <property name=
"expected" value=
"db8" />
214 <property name=
"reached" value=
"@{p8}" />
219 <!-- test in scope execution -->
220 <bean parent=
"task.echo" scope=
"execution"><property name=
"message" value=
"p1=@{p1}" /><aop:scoped-proxy /></bean>
221 <bean parent=
"myTestRunTemplate">
222 <property name=
"testData">
223 <bean class=
"org.argeo.slc.core.test.BasicTestData" scope=
"execution">
224 <property name=
"expected" value=
"e1" />
225 <property name=
"reached" value=
"@{p1}" />
230 <bean parent=
"task.echo" scope=
"execution"><property name=
"message" value=
"p2=@{p2}" /><aop:scoped-proxy /></bean>
231 <bean parent=
"myTestRunTemplate">
232 <property name=
"testData">
233 <bean class=
"org.argeo.slc.core.test.BasicTestData" scope=
"execution">
234 <property name=
"expected" value=
"e2" />
235 <property name=
"reached" value=
"@{p2}" />
240 <bean parent=
"task.echo" scope=
"execution"><property name=
"message" value=
"p3=@{p3}" /><aop:scoped-proxy /></bean>
241 <bean parent=
"myTestRunTemplate">
242 <property name=
"testData">
243 <bean class=
"org.argeo.slc.core.test.BasicTestData" scope=
"execution">
244 <property name=
"expected" value=
"e3" />
245 <property name=
"reached" value=
"@{p3}" />
250 <bean parent=
"task.echo" scope=
"execution"><property name=
"message" value=
"p4=@{p4}" /><aop:scoped-proxy /></bean>
251 <bean parent=
"myTestRunTemplate">
252 <property name=
"testData">
253 <bean class=
"org.argeo.slc.core.test.BasicTestData" scope=
"execution">
254 <property name=
"expected" value=
"e4" />
255 <property name=
"reached" value=
"@{p4}" />
260 <bean parent=
"task.echo" scope=
"execution"><property name=
"message" value=
"p5=@{p5}" /><aop:scoped-proxy /></bean>
261 <bean parent=
"myTestRunTemplate">
262 <property name=
"testData">
263 <bean class=
"org.argeo.slc.core.test.BasicTestData" scope=
"execution">
264 <property name=
"expected" value=
"e5" />
265 <property name=
"reached" value=
"@{p5}" />
270 <bean parent=
"task.echo" scope=
"execution"><property name=
"message" value=
"p6=@{p6}" /><aop:scoped-proxy /></bean>
271 <bean parent=
"myTestRunTemplate">
272 <property name=
"testData">
273 <bean class=
"org.argeo.slc.core.test.BasicTestData" scope=
"execution">
274 <property name=
"expected" value=
"e6" />
275 <property name=
"reached" value=
"@{p6}" />
282 p7 and p8 are not in the spec of FlowA and therefore can not be overridden
285 <bean parent=
"task.echo" scope=
"execution"><property name=
"message" value=
"p7=@{p7}" /><aop:scoped-proxy /></bean>
286 <bean parent=
"myTestRunTemplate">
287 <property name=
"testData">
288 <bean class=
"org.argeo.slc.core.test.BasicTestData" scope=
"execution">
289 <property name=
"expected" value=
"vb7" />
290 <property name=
"reached" value=
"@{p7}" />
295 <bean parent=
"task.echo" scope=
"execution"><property name=
"message" value=
"p8=@{p8}" /><aop:scoped-proxy /></bean>
296 <bean parent=
"myTestRunTemplate">
297 <property name=
"testData">
298 <bean class=
"org.argeo.slc.core.test.BasicTestData" scope=
"execution">
299 <property name=
"expected" value=
"db8" />
300 <property name=
"reached" value=
"@{p8}" />