1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <beans xmlns=
"http://www.springframework.org/schema/beans"
3 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance" xmlns:
p=
"http://www.springframework.org/schema/p"
4 xmlns:
flow=
"http://www.argeo.org/schema/slc-flow" xmlns:
aop=
"http://www.springframework.org/schema/aop"
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
8 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
9 http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">
11 <import resource=
"classpath:org/argeo/slc/core/execution/spring.xml" />
12 <import resource=
"classpath:/org/argeo/slc/core/test/spring.xml" />
14 <bean id=
"testResult" class=
"org.argeo.slc.core.test.SimpleTestResult" />
16 <bean id=
"testDef" class=
"org.argeo.slc.core.test.BasicTestDefinition" />
18 <bean id=
"testRunTemplate" class=
"org.argeo.slc.core.test.SimpleTestRun" abstract=
"true">
19 <property name=
"testDefinition" ref=
"testDef" />
20 <property name=
"testResult" ref=
"testResult"/>
23 <flow:spec id=
"test.list.spec">
24 <flow:ref name=
"list1" targetClass=
"java.util.List">
26 <!-- a list element can be used directly as default value-->
32 <flow:ref name=
"list2" targetClass=
"java.util.List" />
33 <!-- following parameters are not used in flow -->
34 <flow:ref name=
"dummyMap" targetClass=
"java.util.Map">
39 <flow:ref name=
"dummySet" targetClass=
"java.util.Set">
44 <flow:ref name=
"dummyProperties" targetClass=
"java.util.Properties">
53 <flow:flow id=
"test.list.flowTemplate" abstract=
"true" spec=
"test.list.spec"
55 <bean parent=
"task.echo">
56 <property name=
"message" value=
"list1=@{list1}, list2=@{list2}" />
60 <bean parent=
"testRunTemplate">
61 <property name=
"testData">
62 <bean class=
"org.argeo.slc.core.test.BasicTestData">
63 <property name=
"expected">
64 <flow:param name=
"list1"/>
66 <property name=
"reached">
67 <flow:param name=
"list2"/>
75 <flow:flow id=
"test.list.flow1" parent=
"test.list.flowTemplate">
76 <flow:arg name=
"list1">
82 <flow:arg name=
"list2">
89 <!-- not used in flow (just to test that the syntax is accepted): -->
90 <flow:arg name=
"dummyMap">
93 <flow:arg name=
"dummySet">
96 <flow:arg name=
"dummyProperties">
102 <flow:flow id=
"test.list.flow2" parent=
"test.list.flowTemplate">
103 <description>use default value for parameter
"list1"</description>
104 <flow:arg name=
"list2">