]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - demo/site/org.argeo.slc.demo.basic/conf/namespace.xml
Update demo
[gpl/argeo-slc.git] / demo / site / org.argeo.slc.demo.basic / conf / namespace.xml
diff --git a/demo/site/org.argeo.slc.demo.basic/conf/namespace.xml b/demo/site/org.argeo.slc.demo.basic/conf/namespace.xml
new file mode 100644 (file)
index 0000000..48ab910
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"\r
+       xmlns:aop="http://www.springframework.org/schema/aop" xmlns:flow="http://www.argeo.org/schema/slc-flow"\r
+       xsi:schemaLocation="\r
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
+       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd\r
+       http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">\r
+\r
+       <!-- Flow definition is simplified thanks to the 'flow:flow' element -->\r
+       <flow:flow id="flow" path="/namespace">\r
+               <bean p:message="TEST in flow" class="org.argeo.slc.core.execution.tasks.Echo" />\r
+               <ref bean="referencedRunnable" />\r
+       </flow:flow>\r
+\r
+       <bean id="referencedRunnable" p:message="TEST in referenced Runnable"\r
+               class="org.argeo.slc.core.execution.tasks.Echo" />\r
+\r
+       <!--\r
+               Standalone beans implementing Runnable can be exposed as flows via the\r
+               'flow:as-flow' attribute\r
+       -->\r
+       <bean id="standaloneRunnable" flow:as-flow="implicitFlow"\r
+               p:message="TEST in implicit flow" class="org.argeo.slc.core.execution.tasks.Echo" />\r
+</beans>
\ No newline at end of file