]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.core/ext/test/org/argeo/slc/core/execution/xml/canonic-ns.xml
Disable trace logging
[gpl/argeo-slc.git] / org.argeo.slc.core / ext / test / org / argeo / slc / core / execution / xml / canonic-ns.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:beans xmlns="http://www.argeo.org/schema/slc-flow"
20 xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop"
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/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
25 http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">
26
27 <beans:import resource="classpath:org/argeo/slc/core/execution/spring.xml" />
28 <beans:import resource="classpath:/org/argeo/slc/core/test/spring.xml" />
29
30 <beans:import resource="canonic-ns-001.xml" />
31 <beans:import resource="canonic-ns-002.xml" />
32 <beans:import resource="tests.xml" />
33
34 <!--
35 Specifications definition is greatly simplified by the flow namespace
36 -->
37 <spec id="canonic-ns.spec">
38 <primitive name="parameterAtInstantiation" isParameter="true"
39 type="integer" />
40 <primitive name="displayWithoutControl" value="100"
41 isParameter="true" type="integer" isFrozen="true" />
42 <primitive name="displayWithControl" value="200"
43 isParameter="true" type="integer" />
44 <primitive name="hide" value="300" isParameter="true" type="integer"
45 isHidden="true" />
46 <ref name="refWithValue" targetClass="org.argeo.slc.core.test.BasicTestData"
47 isParameter="true" ref="testDataNok" />
48 <ref name="refWithoutValue" targetClass="org.argeo.slc.core.test.BasicTestData" />
49 <ref name="refWithoutValueFrozen" targetClass="org.argeo.slc.core.test.BasicTestData"
50 isParameter="true" isFrozen="true">
51 <value>
52 <beans:bean class="org.argeo.slc.core.test.BasicTestData">
53 <aop:scoped-proxy />
54 <beans:property name="expected" value="tata" />
55 <beans:property name="reached" value="tata" />
56 </beans:bean>
57 </value>
58 </ref>
59 </spec>
60
61 <flow id="canonic-ns.flowTemplate" abstract="true" spec="canonic-ns.spec"
62 path="/path">
63 <beans:bean parent="task.echo"
64 p:message="Canonical: displayWithControl=@{displayWithControl}, displayWithoutControl=@{displayWithoutControl}, hide=@{hide}"
65 scope="execution">
66 <aop:scoped-proxy />
67 </beans:bean>
68 <beans:ref bean="testRun" />
69 </flow>
70
71 <beans:bean id="testDataOk" class="org.argeo.slc.core.test.BasicTestData">
72 <aop:scoped-proxy />
73 <beans:property name="expected" value="tata" />
74 <beans:property name="reached" value="tata" />
75 </beans:bean>
76
77 <beans:bean id="testDataNok" class="org.argeo.slc.core.test.BasicTestData">
78 <aop:scoped-proxy />
79 <beans:property name="expected" value="tata" />
80 <beans:property name="reached" value="toto" />
81 </beans:bean>
82 </beans:beans>