From 05835c051b57d3231e3ddf8dc160f1477a6494ca Mon Sep 17 00:00:00 2001
From: Thomas Lenz <thomas.lenz@egiz.gv.at>
Date: Thu, 21 Nov 2019 08:59:34 +0100
Subject: add stop condition to process-flow engine that can be set dynamically
 by tasks

---
 ...ingExpressionAwareProcessEngineTest-context.xml |  6 ++++++
 .../process/test/SampleProcessDefinition4.xml      | 24 ++++++++++++++++++++++
 .../process/test/SampleProcessDefinition5.xml      | 24 ++++++++++++++++++++++
 3 files changed, 54 insertions(+)
 create mode 100644 eaaf_core/src/test/resources/process/test/SampleProcessDefinition4.xml
 create mode 100644 eaaf_core/src/test/resources/process/test/SampleProcessDefinition5.xml

(limited to 'eaaf_core/src/test/resources')

diff --git a/eaaf_core/src/test/resources/process/spring/test/SpringExpressionAwareProcessEngineTest-context.xml b/eaaf_core/src/test/resources/process/spring/test/SpringExpressionAwareProcessEngineTest-context.xml
index ad94c6d4..ebbd89e9 100644
--- a/eaaf_core/src/test/resources/process/spring/test/SpringExpressionAwareProcessEngineTest-context.xml
+++ b/eaaf_core/src/test/resources/process/spring/test/SpringExpressionAwareProcessEngineTest-context.xml
@@ -30,6 +30,12 @@
 	<bean id="HalloWeltTask" 
 				class="at.gv.egiz.eaaf.core.impl.idp.process.test.HalloWeltTask"/>
 				
+	<bean id="StopProcessFlagTask" 
+				class="at.gv.egiz.eaaf.core.impl.idp.process.test.StopProcessFlagTask"/>
+	
+	<bean id="ThrowExceptionTask" 
+				class="at.gv.egiz.eaaf.core.impl.idp.process.test.ThrowExceptionTask"/>
+				
 	<bean id="SelectBKUTask" 
 				class="at.gv.egiz.eaaf.core.impl.idp.process.spring.test.task.SelectBKUTask"/>
 				
diff --git a/eaaf_core/src/test/resources/process/test/SampleProcessDefinition4.xml b/eaaf_core/src/test/resources/process/test/SampleProcessDefinition4.xml
new file mode 100644
index 00000000..c88afd05
--- /dev/null
+++ b/eaaf_core/src/test/resources/process/test/SampleProcessDefinition4.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ -->
+
+<tns:ProcessDefinition
+	id="SampleProcess4"
+	xmlns:tns="http://reference.e-government.gv.at/namespace/moa/process/definition/v1"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://reference.e-government.gv.at/namespace/moa/process/definition/v1 ../../main/resources/process/ProcessDefinition.xsd ">
+
+	<tns:StartEvent id="start" />
+
+	<tns:Task id="task1" class="HelloWorldTask" />
+	<tns:Task id="task2" class="ThrowExceptionTask" />
+	<tns:Task id="task3" />
+
+	<tns:EndEvent id="end" />
+
+	<tns:Transition id="fromStart" from="start" to="task1" conditionExpression="true" />
+	<tns:Transition from="task1" to="task2" />
+	<tns:Transition from="task2" to="task3" />
+	<tns:Transition from="task3" to="end" />
+	
+</tns:ProcessDefinition>
diff --git a/eaaf_core/src/test/resources/process/test/SampleProcessDefinition5.xml b/eaaf_core/src/test/resources/process/test/SampleProcessDefinition5.xml
new file mode 100644
index 00000000..e0072e62
--- /dev/null
+++ b/eaaf_core/src/test/resources/process/test/SampleProcessDefinition5.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ -->
+
+<tns:ProcessDefinition
+	id="SampleProcess5"
+	xmlns:tns="http://reference.e-government.gv.at/namespace/moa/process/definition/v1"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://reference.e-government.gv.at/namespace/moa/process/definition/v1 ../../main/resources/process/ProcessDefinition.xsd ">
+
+	<tns:StartEvent id="start" />
+
+	<tns:Task id="task1" class="HelloWorldTask" />
+	<tns:Task id="task2" class="StopProcessFlagTask" />
+	<tns:Task id="task3" class="ThrowExceptionTask" />
+
+	<tns:EndEvent id="end" />
+
+	<tns:Transition id="fromStart" from="start" to="task1" conditionExpression="true" />
+	<tns:Transition from="task1" to="task2" />
+	<tns:Transition from="task2" to="task3" />
+	<tns:Transition from="task3" to="end" />
+	
+</tns:ProcessDefinition>
-- 
cgit v1.2.3