aboutsummaryrefslogtreecommitdiff
path: root/id/server/auth/src/main/webapp
diff options
context:
space:
mode:
authorThomas Knall <t.knall@datentechnik-innovation.com>2015-01-16 15:11:48 +0100
committerThomas Knall <t.knall@datentechnik-innovation.com>2015-01-16 15:11:48 +0100
commite6e2bbf9a6e4df5e714ab10babae013317bf8422 (patch)
treee6a7a0ecde150f15fc895ebf106f5373a1be7269 /id/server/auth/src/main/webapp
parent92717efaa56e3d0f7c271b91483507cf981b417b (diff)
downloadmoa-id-spss-e6e2bbf9a6e4df5e714ab10babae013317bf8422.tar.gz
moa-id-spss-e6e2bbf9a6e4df5e714ab10babae013317bf8422.tar.bz2
moa-id-spss-e6e2bbf9a6e4df5e714ab10babae013317bf8422.zip
Add dti-process-engine support.
Diffstat (limited to 'id/server/auth/src/main/webapp')
-rw-r--r--id/server/auth/src/main/webapp/WEB-INF/applicationContext.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/id/server/auth/src/main/webapp/WEB-INF/applicationContext.xml b/id/server/auth/src/main/webapp/WEB-INF/applicationContext.xml
new file mode 100644
index 000000000..b340133c7
--- /dev/null
+++ b/id/server/auth/src/main/webapp/WEB-INF/applicationContext.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:task="http://www.springframework.org/schema/task"
+ xsi:schemaLocation="http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.1.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
+
+ <context:annotation-config />
+
+ <bean id="processEngine" class="com.datentechnik.process_engine.ProcessEngineImpl">
+ <property name="transitionConditionExpressionEvaluator">
+ <bean class="com.datentechnik.process_engine.spring.SpringExpressionEvaluator" />
+ </property>
+ <property name="processInstanceMaxIdleTimeSeconds" value="600" />
+ <property name="processDefinitions">
+ <bean class="com.datentechnik.process_engine.spring.ProcessDefinitionsFactoryBean">
+ <property name="resources" value="classpath:resources/processes/*.process.xml" />
+ </bean>
+ </property>
+ </bean>
+
+ <task:scheduler id="taskScheduler" pool-size="1" />
+ <task:scheduled-tasks scheduler="taskScheduler">
+ <task:scheduled ref="processEngine" method="cleanup" fixed-delay="60000" />
+ </task:scheduled-tasks>
+
+</beans>