incubator-hise-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r.@apache.org
Subject svn commit: r990714 [2/2] - in /incubator/hise/trunk: hise-services/src/main/java/org/apache/hise/runtime/ rtests/src/test/java/org/apache/hise/ rtests/src/test/java/org/apache/hise/evalpeople/ rtests/src/test/java/org/apache/hise/managementApi/ rtests...
Date Mon, 30 Aug 2010 07:43:40 GMT
Added: incubator/hise/trunk/rtests/src/test/resources/management/test.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/rtests/src/test/resources/management/test.xml?rev=990714&view=auto
==============================================================================
--- incubator/hise/trunk/rtests/src/test/resources/management/test.xml (added)
+++ incubator/hise/trunk/rtests/src/test/resources/management/test.xml Mon Aug 30 07:43:39 2010
@@ -0,0 +1,58 @@
+<?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:ctx="http://www.springframework.org/schema/context"
+       xmlns:util="http://www.springframework.org/schema/util"
+       xmlns:tx="http://www.springframework.org/schema/tx"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
+       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
+       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
+       ">
+
+
+  <bean class="org.apache.hise.engine.store.HISEDeployer" init-method="init" destroy-method="destroy">
+    <property name="hiseEngine" ref="hiseEngine"/>
+    <property name="deploymentInfo">
+      <bean class="org.apache.hise.engine.store.HISEDD">
+        <property name="humanInteractionsResource" value="classpath:management/testHtd1.xml"></property>
+        <property name="tasksDI">
+          <list>
+
+            <bean class="org.apache.hise.engine.store.TaskDD">
+              <property name="taskName">
+                <bean class="javax.xml.namespace.QName" factory-method="valueOf">
+                  <constructor-arg type="java.lang.String" value="{http://www.insurance.example.com/claims}Task1"></constructor-arg>
+                </bean>
+              </property>
+              <property name="handler" ref="handler"/>
+              <property name="sender" ref="sender"/>
+            </bean>
+            
+            <bean class="org.apache.hise.engine.store.TaskDD">
+              <property name="taskName">
+                <bean class="javax.xml.namespace.QName" factory-method="valueOf">
+                  <constructor-arg type="java.lang.String" value="{http://www.insurance.example.com/claims}Task4"></constructor-arg>
+                </bean>
+              </property>
+              <property name="handler" ref="handler"/>
+              <property name="sender" ref="sender"/>
+            </bean>
+            
+          </list>
+        </property>
+      </bean>
+    </property>
+  </bean>
+ 
+  <bean id="management" class="org.apache.hise.engine.ManagementImpl">
+  	<property name="hiseEngine" ref="hiseEngine"/>
+  	<property name="adminOperations" ref="taskOperationsAdministrative"/>
+  </bean>
+
+  <bean id="taskOperationsAdministrative" class="org.apache.hise.engine.jaxws.TaskOperationsAdministrativeImpl">
+    <property name="hiseEngine" ref="hiseEngine"/>
+     <property name="administrationMode" value="true"/>
+  </bean>
+
+</beans>
\ No newline at end of file

Added: incubator/hise/trunk/rtests/src/test/resources/management/testHtd1.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/rtests/src/test/resources/management/testHtd1.xml?rev=990714&view=auto
==============================================================================
--- incubator/hise/trunk/rtests/src/test/resources/management/testHtd1.xml (added)
+++ incubator/hise/trunk/rtests/src/test/resources/management/testHtd1.xml Mon Aug 30 07:43:39 2010
@@ -0,0 +1,477 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0c9ce4c-ee02-2a10-4b96-cb205464aa02
+
+© 2007 Active Endpoints Inc., Adobe Systems Inc., BEA Systems Inc., International
+Business Machines Corporation, Oracle Inc., and SAP AG. All rights reserved.
+ -->
+<htd:humanInteractions xmlns:htd="http://www.example.org/WS-HT"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:tns="http://www.insurance.example.com/claims"
+    targetNamespace="http://www.insurance.example.com/claims"
+    xsi:schemaLocation="http://www.example.org/WS-HT file:/usr/share/schemas/ws-humantask.xsd"
+    xmlns:cla="http://www.insurance.example.com/claims">
+    
+    <!-- 
+        
+        Test human task definition. Contains: task definitions, different human roles definitions,
+        descriptions with parameters.
+        
+        TODO:
+         
+         - matching business request
+        
+    -->
+    
+    <htd:import importType="http://schemas.xmlsoap.org/wsdl/" location="management/ExampleTasks.wsdl" namespace="http://www.insurance.example.com/claims/"/>
+    
+    <htd:logicalPeopleGroups>
+    
+    	<htd:logicalPeopleGroup name="lpg1">
+            <htd:documentation xml:lang="en-US">Employee group.</htd:documentation>
+            <htd:parameter name="region" type="xsd:string"/>
+        </htd:logicalPeopleGroup>
+
+    </htd:logicalPeopleGroups>
+    
+    <htd:tasks>
+    
+        <!-- Please change properties other than potential owners i both Task1 and Task2 -->
+        
+        <!-- One potential owners -->
+        <htd:task name="Task1">
+            
+            <htd:documentation xml:lang="en-US">This task is used to handle claims that require manual approval. </htd:documentation>
+            <htd:interface portType="tns:ClaimsHandlingPT" operation="approve" responsePortType="tns:ClaimsHandlingCallbackPT" responseOperation="approvalResponse"/>
+            <htd:priority> xs:integer(htd:getInput("ClaimApprovalRequest")/cla:prio) </htd:priority>
+            
+            <htd:peopleAssignments>
+            	<htd:potentialOwners>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:users>
+                                <htd:user>user1</htd:user>
+                            </htd:users>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>
+                </htd:potentialOwners>
+                
+                <htd:businessAdministrators>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:groups>
+                                <htd:group>group1</htd:group>
+                                <htd:group>group2</htd:group>
+                            </htd:groups>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>
+                </htd:businessAdministrators>
+
+                <htd:businessAdministrators>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:users>
+                                <htd:user>user1</htd:user>
+                                <htd:user>user2</htd:user>
+                            </htd:users>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>
+                </htd:businessAdministrators>
+
+                <htd:businessAdministrators>
+                    <htd:from logicalPeopleGroup="lpg1">
+                        <htd:argument name="region"> xs:string(htd:getInput("ClaimApprovalRequest")/cla:region) </htd:argument>
+                    </htd:from>
+                </htd:businessAdministrators>
+                
+            	<htd:taskStakeholders>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:users>
+                                <htd:user>user3</htd:user>
+                            </htd:users>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>
+                </htd:taskStakeholders>
+                
+            </htd:peopleAssignments>
+            
+            <htd:delegation potentialDelegatees="anybody"/>
+            
+            <htd:presentationElements>
+                
+                <htd:name xml:lang="en-US"> Approve Claim </htd:name>
+                
+                <htd:presentationParameters>
+                    
+                    <htd:presentationParameter name="firstname" type="xsd:string">
+                        htd:getInput("ClaimApprovalRequest")/cust/firstname </htd:presentationParameter>
+                    
+                    <htd:presentationParameter name="lastname" type="xsd:string">
+                        htd:getInput("ClaimApprovalRequest")/cust/lastname </htd:presentationParameter>
+                    
+                    <htd:presentationParameter name="euroAmount" type="xsd:double">
+                        htd:getInput("ClaimApprovalRequest")/amount </htd:presentationParameter>
+                        
+                </htd:presentationParameters>
+                
+                <htd:subject xml:lang="en-US"> Approve the insurance claim for PLN $euroAmount$ on behalf of $firstname$ $lastname$ </htd:subject>
+
+                <htd:description xml:lang="en-US" contentType="text/plain"> Approve this claim following corporate guideline #4711.0815/7 ... </htd:description>
+
+            </htd:presentationElements>
+            <htd:outcome>someOutput</htd:outcome>
+            
+  <htd:deadlines>
+    <htd:startDeadline>
+      <htd:for>'PT5S'</htd:for>
+      <htd:escalation name="reassignTask3">
+        <htd:reassignment>
+          <htd:potentialOwners>
+            <htd:from>
+              <htd:literal>
+                <htd:organizationalEntity>
+                  <htd:users>
+                    <htd:user>user3</htd:user>
+                  </htd:users>
+                </htd:organizationalEntity>
+
+              </htd:literal>
+            </htd:from>
+          </htd:potentialOwners>
+        </htd:reassignment>
+      </htd:escalation>
+    </htd:startDeadline>
+    <htd:completionDeadline>
+      <htd:for>'PT10S'</htd:for>
+      <htd:escalation name="reassignTask3Completion">
+        <htd:reassignment>
+          <htd:potentialOwners>
+            <htd:from>
+              <htd:literal>
+                <htd:organizationalEntity>
+                  <htd:users>
+                    <htd:user>user4</htd:user>
+                  </htd:users>
+                </htd:organizationalEntity>
+              </htd:literal>
+            </htd:from>
+          </htd:potentialOwners>
+        </htd:reassignment>
+      </htd:escalation>
+    </htd:completionDeadline>
+  </htd:deadlines>
+       
+        <htd:autoActivate>true</htd:autoActivate>
+        </htd:task>    
+        
+        <!-- Two potential owners -->
+        <htd:task name="Task2">
+            
+            <htd:documentation xml:lang="en-US">This task is used to handle claims that require manual approval. </htd:documentation>
+            <htd:interface portType="tns:ClaimsHandlingPT" operation="approve2" responsePortType="tns:ClaimsHandlingCallbackPT" responseOperation="approvalResponse"/>
+            <htd:priority> htd:getInput("ClaimApprovalRequest")/prio </htd:priority>
+            
+            <htd:peopleAssignments>
+            
+            	<htd:potentialOwners>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:users>
+                                <htd:user>user1</htd:user>
+                                <htd:user>user2</htd:user>
+                            </htd:users>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>
+                </htd:potentialOwners>
+                
+                <htd:businessAdministrators>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:groups>
+                                <htd:group>group1</htd:group>
+                                <htd:group>group2</htd:group>
+                            </htd:groups>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>  
+                </htd:businessAdministrators>
+
+                <htd:businessAdministrators>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:users>
+                                <htd:user>user1</htd:user>
+                                <htd:user>user2</htd:user>
+                            </htd:users>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>  
+                </htd:businessAdministrators>
+
+                <htd:businessAdministrators>
+                    <htd:from logicalPeopleGroup="lpg1">
+                        <htd:argument name="region"> htd:getInput("ClaimApprovalRequest")/region </htd:argument>
+                    </htd:from>
+                </htd:businessAdministrators>
+                
+            	<htd:taskStakeholders>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:users>
+                                <htd:user>user3</htd:user>
+                            </htd:users>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>  
+                </htd:taskStakeholders>
+                
+            </htd:peopleAssignments>
+            
+            <htd:delegation potentialDelegatees="nobody"/>
+            
+            <htd:presentationElements>
+                
+                <htd:name xml:lang="en-US"> Approve Claim </htd:name>
+                
+                <htd:presentationParameters>
+                    
+                    <htd:presentationParameter name="firstname" type="xsd:string">
+                        htd:getInput("ClaimApprovalRequest")/cust/firstname </htd:presentationParameter>
+                    
+                    <htd:presentationParameter name="lastname" type="xsd:string">
+                        htd:getInput("ClaimApprovalRequest")/cust/lastname </htd:presentationParameter>
+                    
+                    <htd:presentationParameter name="euroAmount" type="xsd:double">
+                        htd:getInput("ClaimApprovalRequest")/amount </htd:presentationParameter>
+                        
+                </htd:presentationParameters>
+                
+                <htd:subject xml:lang="en-US"> Approve the insurance claim for PLN $euroAmount$ on behalf of $firstname$ $lastname$ </htd:subject>
+
+                <htd:description xml:lang="en-US" contentType="text/plain"> Approve this claim following corporate guideline #4711.0815/7 ... </htd:description>
+
+            </htd:presentationElements>
+            
+        </htd:task>    
+
+
+        <!-- Escalation -->
+        <htd:task name="Task3">
+            
+            <htd:documentation xml:lang="en-US">This task is used to handle claims that require manual approval. </htd:documentation>
+            <htd:interface portType="tns:ClaimsHandlingPT" operation="approve3"/>
+            
+            <htd:peopleAssignments>
+              <htd:potentialOwners>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:users>
+                                <htd:user>user1</htd:user>
+                            </htd:users>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>
+                </htd:potentialOwners>
+
+                <htd:businessAdministrators>
+                  <htd:from>
+                    <htd:literal>
+                        <htd:organizationalEntity>
+                            <htd:users>
+                                <htd:user>user2</htd:user>
+                            </htd:users>
+                        </htd:organizationalEntity>
+                    </htd:literal>
+                  </htd:from>
+                </htd:businessAdministrators>
+            </htd:peopleAssignments>
+            
+            <htd:presentationElements>
+                
+                <htd:name xml:lang="en-US"> Approve Claim </htd:name>
+                
+                <htd:presentationParameters>
+                    
+                    <htd:presentationParameter name="firstname" type="xsd:string">
+                        htd:getInput("ClaimApprovalRequest")/cust/firstname </htd:presentationParameter>
+                    
+                    <htd:presentationParameter name="lastname" type="xsd:string">
+                        htd:getInput("ClaimApprovalRequest")/cust/lastname </htd:presentationParameter>
+                    
+                    <htd:presentationParameter name="euroAmount" type="xsd:double">
+                        htd:getInput("ClaimApprovalRequest")/amount </htd:presentationParameter>
+                        
+                </htd:presentationParameters>
+                
+                <htd:subject xml:lang="en-US"> Approve the insurance claim for PLN $euroAmount$ on behalf of $firstname$ $lastname$ </htd:subject>
+
+                <htd:description xml:lang="en-US" contentType="text/plain"> Approve this claim following corporate guideline #4711.0815/7 ... </htd:description>
+
+            </htd:presentationElements>
+
+  <htd:deadlines>
+    <htd:startDeadline>
+      <htd:for>PT5S</htd:for>
+      <htd:escalation name="reassignTask3">
+        <htd:reassignment>
+          <htd:potentialOwners>
+            <htd:from>
+              <htd:literal>
+                <htd:organizationalEntity>
+                  <htd:users>
+                    <htd:user>user3</htd:user>
+                  </htd:users>
+                </htd:organizationalEntity>
+
+              </htd:literal>
+            </htd:from>
+          </htd:potentialOwners>
+        </htd:reassignment>
+      </htd:escalation>
+    </htd:startDeadline>
+    <htd:completionDeadline>
+      <htd:for>PT10S</htd:for>
+      <htd:escalation name="reassignTask3Completion">
+        <htd:reassignment>
+          <htd:potentialOwners>
+            <htd:from>
+              <htd:literal>
+                <htd:organizationalEntity>
+                  <htd:users>
+                    <htd:user>user4</htd:user>
+                  </htd:users>
+                </htd:organizationalEntity>
+              </htd:literal>
+            </htd:from>
+          </htd:potentialOwners>
+        </htd:reassignment>
+      </htd:escalation>
+    </htd:completionDeadline>
+  </htd:deadlines>
+        </htd:task>
+        
+	<htd:task name="Task4">
+		<htd:documentation
+			xml:lang="en-US"
+		>This task is used to handle claims that require manual approval.
+		</htd:documentation>
+		<htd:interface
+			portType="tns:ClaimsHandlingPT"
+			operation="approve4"
+			responsePortType="tns:ClaimsHandlingCallbackPT"
+			responseOperation="approvalResponse" />
+		<htd:priority>
+			xs:integer(htd:getInput("ClaimApprovalRequest")/cla:prio)
+		</htd:priority>
+		<htd:peopleAssignments>
+			<htd:potentialOwners>
+				<htd:from>
+					<htd:literal>
+						<htd:organizationalEntity>
+							<htd:users>
+								<htd:user>user1</htd:user>
+							</htd:users>
+						</htd:organizationalEntity>
+					</htd:literal>
+				</htd:from>
+			</htd:potentialOwners>
+			<htd:businessAdministrators>
+				<htd:from>
+					<htd:literal>
+						<htd:organizationalEntity>
+							<htd:users>
+								<htd:user>user1</htd:user>
+								<htd:user>user2</htd:user>
+							</htd:users>
+						</htd:organizationalEntity>
+					</htd:literal>
+				</htd:from>
+			</htd:businessAdministrators>
+			<htd:taskStakeholders>
+				<htd:from>
+					<htd:literal>
+						<htd:organizationalEntity>
+							<htd:users>
+								<htd:user>user3</htd:user>
+							</htd:users>
+						</htd:organizationalEntity>
+					</htd:literal>
+				</htd:from>
+			</htd:taskStakeholders>
+		</htd:peopleAssignments>
+		<htd:presentationElements>
+			<htd:name
+				xml:lang="en-US"
+			> Approve Claim</htd:name>
+			<htd:presentationParameters>
+				<htd:presentationParameter
+					name="firstname"
+					type="xsd:string"
+				> htd:getInput("ClaimApprovalRequest")/cust/firstname
+				</htd:presentationParameter>
+				<htd:presentationParameter
+					name="lastname"
+					type="xsd:string"
+				> htd:getInput("ClaimApprovalRequest")/cust/lastname
+				</htd:presentationParameter>
+				<htd:presentationParameter
+					name="euroAmount"
+					type="xsd:double"
+				> htd:getInput("ClaimApprovalRequest")/amount
+				</htd:presentationParameter>
+			</htd:presentationParameters>
+			<htd:subject
+				xml:lang="en-US"
+			> Approve the insurance claim for PLN $euroAmount$ on behalf of
+				$firstname$ $lastname$</htd:subject>
+			<htd:description
+				xml:lang="en-US"
+				contentType="text/plain"
+			> Approve this claim following corporate guideline #4711.0815/7 ...
+			</htd:description>
+		</htd:presentationElements>
+		<htd:outcome>someOutput</htd:outcome>
+	</htd:task>  
+    
+    </htd:tasks>
+    
+    <htd:notifications>
+      <htd:notification name="Notify2">
+        <htd:interface portType="tns:ClaimApprovalReminderPT" operation="notify"></htd:interface>
+        <htd:peopleAssignments>
+          <htd:potentialOwners>
+            <htd:from>
+              <htd:literal>
+                <htd:organizationalEntity>
+                  <htd:users>
+                    <htd:user>user5</htd:user>
+                  </htd:users>
+                </htd:organizationalEntity>
+              </htd:literal>
+            </htd:from>
+          </htd:potentialOwners>
+        </htd:peopleAssignments>
+        <htd:presentationElements>
+          <htd:name>Notify2Name</htd:name>
+          <htd:subject>Name2Subject</htd:subject>
+        </htd:presentationElements>
+      </htd:notification>
+    </htd:notifications>
+        
+</htd:humanInteractions>

Modified: incubator/hise/trunk/rtests/src/test/resources/test-example/test.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/rtests/src/test/resources/test-example/test.xml?rev=990714&r1=990713&r2=990714&view=diff
==============================================================================
--- incubator/hise/trunk/rtests/src/test/resources/test-example/test.xml (original)
+++ incubator/hise/trunk/rtests/src/test/resources/test-example/test.xml Mon Aug 30 07:43:39 2010
@@ -29,16 +29,6 @@
               <property name="sender" ref="sender"/>
             </bean>
             
-            <bean class="org.apache.hise.engine.store.TaskDD">
-              <property name="taskName">
-                <bean class="javax.xml.namespace.QName" factory-method="valueOf">
-                  <constructor-arg type="java.lang.String" value="{http://www.insurance.example.com/claims}Task4"></constructor-arg>
-                </bean>
-              </property>
-              <property name="handler" ref="handler"/>
-              <property name="sender" ref="sender"/>
-            </bean>
-            
           </list>
         </property>
       </bean>

Modified: incubator/hise/trunk/rtests/src/test/resources/test-example/testHtd1.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/rtests/src/test/resources/test-example/testHtd1.xml?rev=990714&r1=990713&r2=990714&view=diff
==============================================================================
--- incubator/hise/trunk/rtests/src/test/resources/test-example/testHtd1.xml (original)
+++ incubator/hise/trunk/rtests/src/test/resources/test-example/testHtd1.xml Mon Aug 30 07:43:39 2010
@@ -4,474 +4,163 @@ https://www.sdn.sap.com/irj/sdn/go/porta
 
 © 2007 Active Endpoints Inc., Adobe Systems Inc., BEA Systems Inc., International
 Business Machines Corporation, Oracle Inc., and SAP AG. All rights reserved.
- -->
+-->
 <htd:humanInteractions xmlns:htd="http://www.example.org/WS-HT"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-    xmlns:tns="http://www.insurance.example.com/claims"
-    targetNamespace="http://www.insurance.example.com/claims"
-    xsi:schemaLocation="http://www.example.org/WS-HT file:/usr/share/schemas/ws-humantask.xsd"
-    xmlns:cla="http://www.insurance.example.com/claims">
-    
-    <!-- 
-        
-        Test human task definition. Contains: task definitions, different human roles definitions,
-        descriptions with parameters.
-        
-        TODO:
-         
-         - matching business request
-        
-    -->
-    
+                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+                       xmlns:tns="http://www.insurance.example.com/claims"
+                       targetNamespace="http://www.insurance.example.com/claims"
+                       xsi:schemaLocation="http://www.example.org/WS-HT file:/usr/share/schemas/ws-humantask.xsd"
+                       xmlns:cla="http://www.insurance.example.com/claims">
+
     <htd:import importType="http://schemas.xmlsoap.org/wsdl/" location="test-example/ExampleTasks.wsdl" namespace="http://www.insurance.example.com/claims/"/>
-    
+
     <htd:logicalPeopleGroups>
-    
-    	<htd:logicalPeopleGroup name="lpg1">
+
+        <htd:logicalPeopleGroup name="lpg1">
             <htd:documentation xml:lang="en-US">Employee group.</htd:documentation>
             <htd:parameter name="region" type="xsd:string"/>
         </htd:logicalPeopleGroup>
 
     </htd:logicalPeopleGroups>
-    
+
     <htd:tasks>
-    
-        <!-- Please change properties other than potential owners i both Task1 and Task2 -->
-        
+
         <!-- One potential owners -->
         <htd:task name="Task1">
-            
+
             <htd:documentation xml:lang="en-US">This task is used to handle claims that require manual approval. </htd:documentation>
             <htd:interface portType="tns:ClaimsHandlingPT" operation="approve" responsePortType="tns:ClaimsHandlingCallbackPT" responseOperation="approvalResponse"/>
             <htd:priority> xs:integer(htd:getInput("ClaimApprovalRequest")/cla:prio) </htd:priority>
-            
+
             <htd:peopleAssignments>
-            	<htd:potentialOwners>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:users>
-                                <htd:user>user1</htd:user>
-                            </htd:users>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>
+                <htd:potentialOwners>
+                    <htd:from>
+                        <htd:literal>
+                            <htd:organizationalEntity>
+                                <htd:users>
+                                    <htd:user>user1</htd:user>
+                                </htd:users>
+                            </htd:organizationalEntity>
+                        </htd:literal>
+                    </htd:from>
                 </htd:potentialOwners>
-                
-                <htd:businessAdministrators>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:groups>
-                                <htd:group>group1</htd:group>
-                                <htd:group>group2</htd:group>
-                            </htd:groups>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>
-                </htd:businessAdministrators>
 
                 <htd:businessAdministrators>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:users>
-                                <htd:user>user1</htd:user>
-                                <htd:user>user2</htd:user>
-                            </htd:users>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>
-                </htd:businessAdministrators>
-
-                <htd:businessAdministrators>
-                    <htd:from logicalPeopleGroup="lpg1">
-                        <htd:argument name="region"> htd:getInput("ClaimApprovalRequest")/region </htd:argument>
+                    <htd:from>
+                        <htd:literal>
+                            <htd:organizationalEntity>
+                                <htd:groups>
+                                    <htd:group>group1</htd:group>
+                                    <htd:group>group2</htd:group>
+                                </htd:groups>
+                            </htd:organizationalEntity>
+                        </htd:literal>
                     </htd:from>
                 </htd:businessAdministrators>
-                
-            	<htd:taskStakeholders>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:users>
-                                <htd:user>user3</htd:user>
-                            </htd:users>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>
-                </htd:taskStakeholders>
-                
-            </htd:peopleAssignments>
-            
-            <htd:delegation potentialDelegatees="anybody"/>
-            
-            <htd:presentationElements>
-                
-                <htd:name xml:lang="en-US"> Approve Claim </htd:name>
-                
-                <htd:presentationParameters>
-                    
-                    <htd:presentationParameter name="firstname" type="xsd:string">
-                        htd:getInput("ClaimApprovalRequest")/cust/firstname </htd:presentationParameter>
-                    
-                    <htd:presentationParameter name="lastname" type="xsd:string">
-                        htd:getInput("ClaimApprovalRequest")/cust/lastname </htd:presentationParameter>
-                    
-                    <htd:presentationParameter name="euroAmount" type="xsd:double">
-                        htd:getInput("ClaimApprovalRequest")/amount </htd:presentationParameter>
-                        
-                </htd:presentationParameters>
-                
-                <htd:subject xml:lang="en-US"> Approve the insurance claim for PLN $euroAmount$ on behalf of $firstname$ $lastname$ </htd:subject>
-
-                <htd:description xml:lang="en-US" contentType="text/plain"> Approve this claim following corporate guideline #4711.0815/7 ... </htd:description>
-
-            </htd:presentationElements>
-            <htd:outcome>someOutput</htd:outcome>
-            
-  <htd:deadlines>
-    <htd:startDeadline>
-      <htd:for>'PT5S'</htd:for>
-      <htd:escalation name="reassignTask3">
-        <htd:reassignment>
-          <htd:potentialOwners>
-            <htd:from>
-              <htd:literal>
-                <htd:organizationalEntity>
-                  <htd:users>
-                    <htd:user>user3</htd:user>
-                  </htd:users>
-                </htd:organizationalEntity>
-
-              </htd:literal>
-            </htd:from>
-          </htd:potentialOwners>
-        </htd:reassignment>
-      </htd:escalation>
-    </htd:startDeadline>
-    <htd:completionDeadline>
-      <htd:for>'PT10S'</htd:for>
-      <htd:escalation name="reassignTask3Completion">
-        <htd:reassignment>
-          <htd:potentialOwners>
-            <htd:from>
-              <htd:literal>
-                <htd:organizationalEntity>
-                  <htd:users>
-                    <htd:user>user4</htd:user>
-                  </htd:users>
-                </htd:organizationalEntity>
-              </htd:literal>
-            </htd:from>
-          </htd:potentialOwners>
-        </htd:reassignment>
-      </htd:escalation>
-    </htd:completionDeadline>
-  </htd:deadlines>
-       
-        <htd:autoActivate>true</htd:autoActivate>
-        </htd:task>    
-        
-        <!-- Two potential owners -->
-        <htd:task name="Task2">
-            
-            <htd:documentation xml:lang="en-US">This task is used to handle claims that require manual approval. </htd:documentation>
-            <htd:interface portType="tns:ClaimsHandlingPT" operation="approve2" responsePortType="tns:ClaimsHandlingCallbackPT" responseOperation="approvalResponse"/>
-            <htd:priority> htd:getInput("ClaimApprovalRequest")/prio </htd:priority>
-            
-            <htd:peopleAssignments>
-            
-            	<htd:potentialOwners>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:users>
-                                <htd:user>user1</htd:user>
-                                <htd:user>user2</htd:user>
-                            </htd:users>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>
-                </htd:potentialOwners>
-                
-                <htd:businessAdministrators>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:groups>
-                                <htd:group>group1</htd:group>
-                                <htd:group>group2</htd:group>
-                            </htd:groups>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>  
-                </htd:businessAdministrators>
 
                 <htd:businessAdministrators>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:users>
-                                <htd:user>user1</htd:user>
-                                <htd:user>user2</htd:user>
-                            </htd:users>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>  
+                    <htd:from>
+                        <htd:literal>
+                            <htd:organizationalEntity>
+                                <htd:users>
+                                    <htd:user>user1</htd:user>
+                                    <htd:user>user2</htd:user>
+                                </htd:users>
+                            </htd:organizationalEntity>
+                        </htd:literal>
+                    </htd:from>
                 </htd:businessAdministrators>
 
                 <htd:businessAdministrators>
                     <htd:from logicalPeopleGroup="lpg1">
-                        <htd:argument name="region"> htd:getInput("ClaimApprovalRequest")/region </htd:argument>
+                        <htd:argument name="region"> xs:string(htd:getInput("ClaimApprovalRequest")/cla:region)  </htd:argument>
                     </htd:from>
                 </htd:businessAdministrators>
-                
-            	<htd:taskStakeholders>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:users>
-                                <htd:user>user3</htd:user>
-                            </htd:users>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>  
-                </htd:taskStakeholders>
-                
-            </htd:peopleAssignments>
-            
-            <htd:delegation potentialDelegatees="nobody"/>
-            
-            <htd:presentationElements>
-                
-                <htd:name xml:lang="en-US"> Approve Claim </htd:name>
-                
-                <htd:presentationParameters>
-                    
-                    <htd:presentationParameter name="firstname" type="xsd:string">
-                        htd:getInput("ClaimApprovalRequest")/cust/firstname </htd:presentationParameter>
-                    
-                    <htd:presentationParameter name="lastname" type="xsd:string">
-                        htd:getInput("ClaimApprovalRequest")/cust/lastname </htd:presentationParameter>
-                    
-                    <htd:presentationParameter name="euroAmount" type="xsd:double">
-                        htd:getInput("ClaimApprovalRequest")/amount </htd:presentationParameter>
-                        
-                </htd:presentationParameters>
-                
-                <htd:subject xml:lang="en-US"> Approve the insurance claim for PLN $euroAmount$ on behalf of $firstname$ $lastname$ </htd:subject>
 
-                <htd:description xml:lang="en-US" contentType="text/plain"> Approve this claim following corporate guideline #4711.0815/7 ... </htd:description>
-
-            </htd:presentationElements>
-            
-        </htd:task>    
+                <htd:taskStakeholders>
+                    <htd:from>
+                        <htd:literal>
+                            <htd:organizationalEntity>
+                                <htd:users>
+                                    <htd:user>user3</htd:user>
+                                </htd:users>
+                            </htd:organizationalEntity>
+                        </htd:literal>
+                    </htd:from>
+                </htd:taskStakeholders>
 
+            </htd:peopleAssignments>
 
-        <!-- Escalation -->
-        <htd:task name="Task3">
-            
-            <htd:documentation xml:lang="en-US">This task is used to handle claims that require manual approval. </htd:documentation>
-            <htd:interface portType="tns:ClaimsHandlingPT" operation="approve3"/>
-            
-            <htd:peopleAssignments>
-              <htd:potentialOwners>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:users>
-                                <htd:user>user1</htd:user>
-                            </htd:users>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>
-                </htd:potentialOwners>
+            <htd:delegation potentialDelegatees="anybody"/>
 
-                <htd:businessAdministrators>
-                  <htd:from>
-                    <htd:literal>
-                        <htd:organizationalEntity>
-                            <htd:users>
-                                <htd:user>user2</htd:user>
-                            </htd:users>
-                        </htd:organizationalEntity>
-                    </htd:literal>
-                  </htd:from>
-                </htd:businessAdministrators>
-            </htd:peopleAssignments>
-            
             <htd:presentationElements>
-                
+
                 <htd:name xml:lang="en-US"> Approve Claim </htd:name>
-                
+
                 <htd:presentationParameters>
-                    
+
                     <htd:presentationParameter name="firstname" type="xsd:string">
-                        htd:getInput("ClaimApprovalRequest")/cust/firstname </htd:presentationParameter>
-                    
+                    htd:getInput("ClaimApprovalRequest")/cla:cust/cla:firstname </htd:presentationParameter>
+
                     <htd:presentationParameter name="lastname" type="xsd:string">
-                        htd:getInput("ClaimApprovalRequest")/cust/lastname </htd:presentationParameter>
-                    
+                    htd:getInput("ClaimApprovalRequest")/cla:cust/cla:lastname </htd:presentationParameter>
+
                     <htd:presentationParameter name="euroAmount" type="xsd:double">
-                        htd:getInput("ClaimApprovalRequest")/amount </htd:presentationParameter>
-                        
+                    htd:getInput("ClaimApprovalRequest")/cla:amount </htd:presentationParameter>
+
                 </htd:presentationParameters>
-                
+
                 <htd:subject xml:lang="en-US"> Approve the insurance claim for PLN $euroAmount$ on behalf of $firstname$ $lastname$ </htd:subject>
 
                 <htd:description xml:lang="en-US" contentType="text/plain"> Approve this claim following corporate guideline #4711.0815/7 ... </htd:description>
 
             </htd:presentationElements>
+            <htd:outcome>someOutput</htd:outcome>
+
+            <htd:deadlines>
+                <htd:startDeadline>
+                    <htd:for>'PT5S'</htd:for>
+                    <htd:escalation name="reassignTask3">
+                        <htd:reassignment>
+                            <htd:potentialOwners>
+                                <htd:from>
+                                    <htd:literal>
+                                        <htd:organizationalEntity>
+                                            <htd:users>
+                                                <htd:user>user3</htd:user>
+                                            </htd:users>
+                                        </htd:organizationalEntity>
+
+                                    </htd:literal>
+                                </htd:from>
+                            </htd:potentialOwners>
+                        </htd:reassignment>
+                    </htd:escalation>
+                </htd:startDeadline>
+                <htd:completionDeadline>
+                    <htd:for>'PT10S'</htd:for>
+                    <htd:escalation name="reassignTask3Completion">
+                        <htd:reassignment>
+                            <htd:potentialOwners>
+                                <htd:from>
+                                    <htd:literal>
+                                        <htd:organizationalEntity>
+                                            <htd:users>
+                                                <htd:user>user4</htd:user>
+                                            </htd:users>
+                                        </htd:organizationalEntity>
+                                    </htd:literal>
+                                </htd:from>
+                            </htd:potentialOwners>
+                        </htd:reassignment>
+                    </htd:escalation>
+                </htd:completionDeadline>
+            </htd:deadlines>
 
-  <htd:deadlines>
-    <htd:startDeadline>
-      <htd:for>PT5S</htd:for>
-      <htd:escalation name="reassignTask3">
-        <htd:reassignment>
-          <htd:potentialOwners>
-            <htd:from>
-              <htd:literal>
-                <htd:organizationalEntity>
-                  <htd:users>
-                    <htd:user>user3</htd:user>
-                  </htd:users>
-                </htd:organizationalEntity>
-
-              </htd:literal>
-            </htd:from>
-          </htd:potentialOwners>
-        </htd:reassignment>
-      </htd:escalation>
-    </htd:startDeadline>
-    <htd:completionDeadline>
-      <htd:for>PT10S</htd:for>
-      <htd:escalation name="reassignTask3Completion">
-        <htd:reassignment>
-          <htd:potentialOwners>
-            <htd:from>
-              <htd:literal>
-                <htd:organizationalEntity>
-                  <htd:users>
-                    <htd:user>user4</htd:user>
-                  </htd:users>
-                </htd:organizationalEntity>
-              </htd:literal>
-            </htd:from>
-          </htd:potentialOwners>
-        </htd:reassignment>
-      </htd:escalation>
-    </htd:completionDeadline>
-  </htd:deadlines>
+            <htd:autoActivate>true</htd:autoActivate>
         </htd:task>
-        
-	<htd:task name="Task4">
-		<htd:documentation
-			xml:lang="en-US"
-		>This task is used to handle claims that require manual approval.
-		</htd:documentation>
-		<htd:interface
-			portType="tns:ClaimsHandlingPT"
-			operation="approve4"
-			responsePortType="tns:ClaimsHandlingCallbackPT"
-			responseOperation="approvalResponse" />
-		<htd:priority>
-			xs:integer(htd:getInput("ClaimApprovalRequest")/cla:prio)
-		</htd:priority>
-		<htd:peopleAssignments>
-			<htd:potentialOwners>
-				<htd:from>
-					<htd:literal>
-						<htd:organizationalEntity>
-							<htd:users>
-								<htd:user>user1</htd:user>
-							</htd:users>
-						</htd:organizationalEntity>
-					</htd:literal>
-				</htd:from>
-			</htd:potentialOwners>
-			<htd:businessAdministrators>
-				<htd:from>
-					<htd:literal>
-						<htd:organizationalEntity>
-							<htd:users>
-								<htd:user>user1</htd:user>
-								<htd:user>user2</htd:user>
-							</htd:users>
-						</htd:organizationalEntity>
-					</htd:literal>
-				</htd:from>
-			</htd:businessAdministrators>
-			<htd:taskStakeholders>
-				<htd:from>
-					<htd:literal>
-						<htd:organizationalEntity>
-							<htd:users>
-								<htd:user>user3</htd:user>
-							</htd:users>
-						</htd:organizationalEntity>
-					</htd:literal>
-				</htd:from>
-			</htd:taskStakeholders>
-		</htd:peopleAssignments>
-		<htd:presentationElements>
-			<htd:name
-				xml:lang="en-US"
-			> Approve Claim</htd:name>
-			<htd:presentationParameters>
-				<htd:presentationParameter
-					name="firstname"
-					type="xsd:string"
-				> htd:getInput("ClaimApprovalRequest")/cust/firstname
-				</htd:presentationParameter>
-				<htd:presentationParameter
-					name="lastname"
-					type="xsd:string"
-				> htd:getInput("ClaimApprovalRequest")/cust/lastname
-				</htd:presentationParameter>
-				<htd:presentationParameter
-					name="euroAmount"
-					type="xsd:double"
-				> htd:getInput("ClaimApprovalRequest")/amount
-				</htd:presentationParameter>
-			</htd:presentationParameters>
-			<htd:subject
-				xml:lang="en-US"
-			> Approve the insurance claim for PLN $euroAmount$ on behalf of
-				$firstname$ $lastname$</htd:subject>
-			<htd:description
-				xml:lang="en-US"
-				contentType="text/plain"
-			> Approve this claim following corporate guideline #4711.0815/7 ...
-			</htd:description>
-		</htd:presentationElements>
-		<htd:outcome>someOutput</htd:outcome>
-	</htd:task>  
-    
+
     </htd:tasks>
-    
-    <htd:notifications>
-      <htd:notification name="Notify2">
-        <htd:interface portType="tns:ClaimApprovalReminderPT" operation="notify"></htd:interface>
-        <htd:peopleAssignments>
-          <htd:potentialOwners>
-            <htd:from>
-              <htd:literal>
-                <htd:organizationalEntity>
-                  <htd:users>
-                    <htd:user>user5</htd:user>
-                  </htd:users>
-                </htd:organizationalEntity>
-              </htd:literal>
-            </htd:from>
-          </htd:potentialOwners>
-        </htd:peopleAssignments>
-        <htd:presentationElements>
-          <htd:name>Notify2Name</htd:name>
-          <htd:subject>Name2Subject</htd:subject>
-        </htd:presentationElements>
-      </htd:notification>
-    </htd:notifications>
-        
+
 </htd:humanInteractions>



Mime
View raw message