]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/ext/test/org/argeo/slc/core/execution/xml/advanced.xml
Disable trace logging
[gpl/argeo-slc.git] / org.argeo.slc.core / ext / test / org / argeo / slc / core / execution / xml / advanced.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 Copyright (C) 2007-2012 Argeo GmbH
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19 <beans xmlns="http://www.springframework.org/schema/beans"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
21 xmlns:flow="http://www.argeo.org/schema/slc-flow"
22 xsi:schemaLocation="
23 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
24 http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
25 http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">
26
27 <import resource="classpath:org/argeo/slc/core/execution/spring.xml" />
28 <import resource="classpath:/org/argeo/slc/core/test/spring.xml" />
29
30 <bean id="testResult" class="org.argeo.slc.core.test.SimpleTestResult" />
31
32 <bean id="testDef" class="org.argeo.slc.core.test.BasicTestDefinition" />
33
34 <bean id="testRunTemplate" class="org.argeo.slc.core.test.SimpleTestRun" abstract="true">
35 <property name="testDefinition" ref="testDef" />
36 <property name="testResult" ref="testResult"/>
37 </bean>
38
39 <flow:spec id="advanced.spec">
40 <description>spec description</description>
41 <flow:primitive name="param1" isParameter="true"
42 type="integer" />
43 <flow:primitive name="param2" isParameter="true"
44 type="integer" />
45 </flow:spec>
46
47
48 <flow:flow id="advanced.flowTemplate" abstract="true" spec="advanced.spec"
49 path="/path">
50 <description>flow description</description>
51 <bean parent="task.echo">
52 <property name="message" value="Advanced: param1=@{param1}, param2=@{param2}" />
53 <flow:variable/>
54 </bean>
55 <flow:flow>
56 <bean parent="task.echo" p:message="Flow in Flow - param1=@{param1}, param2=@{param2} [Not variable]" />
57 </flow:flow>
58
59 <bean parent="testRunTemplate">
60 <property name="testData">
61 <bean class="org.argeo.slc.core.test.BasicTestData">
62 <flow:variable/>
63 <property name="expected" value="@{param1}" />
64 <property name="reached" value="@{param2}" />
65 </bean>
66 </property>
67 </bean>
68
69 </flow:flow>
70
71 <flow:flow id="advanced.flowTemplate2" abstract="true" spec="advanced.spec"
72 path="/path">
73 <bean parent="task.echo" p:message="Advanced2: param1=@{param1}, param2=@{param2}">
74 <flow:variable/>
75 </bean>
76 <flow:flow parent="advanced.flowTemplate">
77 <flow:arg name="param1" value="@{param1}"/>
78 <flow:arg name="param2">
79 <!-- flow:param in flow:arg -->
80 <flow:param name="param2" />
81 </flow:arg>
82 </flow:flow>
83 </flow:flow>
84
85
86 <flow:flow id="flow1" parent="advanced.flowTemplate">
87 <flow:arg name="param1" value="1" />
88 <flow:arg name="param2" value="1" />
89 </flow:flow>
90
91 <flow:flow id="flow2">
92 <flow:flow parent="advanced.flowTemplate">
93 <flow:arg name="param1" value="2" />
94 <flow:arg name="param2" value="2" />
95 </flow:flow>
96 </flow:flow>
97
98 <flow:flow id="flow3" parent="advanced.flowTemplate2">
99 <flow:arg name="param1" value="3" />
100 <flow:arg name="param2" value="3" />
101 </flow:flow>
102
103 <flow:flow id="flow4" parent="advanced.flowTemplate">
104 <description>Would fail if param 2 is not changed at execution</description>
105 <flow:arg name="param1" value="4" />
106 <flow:arg name="param2" value="3" />
107 </flow:flow>
108
109
110 </beans>