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