You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hise-commits@incubator.apache.org by rr...@apache.org on 2010/02/03 16:24:45 UTC
svn commit: r906109 [1/3] - in /incubator/hise/trunk/hise-distro: ./
src/distro/examples/claimsHandling/ src/distro/examples/osgi/
src/distro/examples/osgi/claimsHandling/
src/distro/examples/osgi/claimsHandling/src/
src/distro/examples/osgi/claimsHand...
Author: rr
Date: Wed Feb 3 16:24:43 2010
New Revision: 906109
URL: http://svn.apache.org/viewvc?rev=906109&view=rev
Log:
Added distro scripts for OSGi
Added:
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/pom.xml (with props)
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/ExampleTasks.wsdl (with props)
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/META-INF/
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/META-INF/spring/
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/META-INF/spring/beans.xml (with props)
incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/testHtd1.xml (with props)
incubator/hise/trunk/hise-distro/src/distro/examples/war/
incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/
incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/ExampleTasks.wsdl (with props)
incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/claimsHandling-hise-dd.xml (with props)
incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/claimsHandling-soapui-project.xml (with props)
incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/claimsHandling.xml (with props)
incubator/hise/trunk/hise-distro/src/main/osgi.xml (with props)
incubator/hise/trunk/hise-distro/src/main/war.xml (with props)
Removed:
incubator/hise/trunk/hise-distro/src/distro/examples/claimsHandling/ExampleTasks.wsdl
incubator/hise/trunk/hise-distro/src/distro/examples/claimsHandling/claimsHandling-hise-dd.xml
incubator/hise/trunk/hise-distro/src/distro/examples/claimsHandling/claimsHandling-soapui-project.xml
incubator/hise/trunk/hise-distro/src/distro/examples/claimsHandling/claimsHandling.xml
incubator/hise/trunk/hise-distro/src/main/bin.xml
Modified:
incubator/hise/trunk/hise-distro/pom.xml
Modified: incubator/hise/trunk/hise-distro/pom.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-distro/pom.xml?rev=906109&r1=906108&r2=906109&view=diff
==============================================================================
--- incubator/hise/trunk/hise-distro/pom.xml (original)
+++ incubator/hise/trunk/hise-distro/pom.xml Wed Feb 3 16:24:43 2010
@@ -19,16 +19,29 @@
<executions>
<execution>
- <id>bin</id>
+ <id>distro-war</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
<configuration>
<descriptors>
- <descriptor>src/main/bin.xml</descriptor>
+ <descriptor>src/main/war.xml</descriptor>
</descriptors>
- <finalName>apache-hise-${project.version}</finalName>
+ <finalName>apache-hise-war-${project.version}</finalName>
+ </configuration>
+ </execution>
+ <execution>
+ <id>distro-osgi</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/osgi.xml</descriptor>
+ </descriptors>
+ <finalName>apache-hise-osgi-${project.version}</finalName>
</configuration>
</execution>
</executions>
@@ -43,5 +56,15 @@
<version>${project.version}</version>
<type>war</type>
</dependency>
+ <dependency>
+ <groupId>org.apache.hise</groupId>
+ <artifactId>hise-bundle</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hise</groupId>
+ <artifactId>hise-test-example-osgi</artifactId>
+ <version>${project.version}</version>
+ </dependency>
</dependencies>
</project>
Added: incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/pom.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/pom.xml?rev=906109&view=auto
==============================================================================
--- incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/pom.xml (added)
+++ incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/pom.xml Wed Feb 3 16:24:43 2010
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>example</groupId>
+ <artifactId>claimsHandling</artifactId>
+ <packaging>bundle</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.3</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Import-Package>
+ javax.persistence,
+ org.apache.openjpa.persistence,
+ javax.xml.bind,
+ javax.xml.soap,
+ META-INF.cxf,
+ META-INF.cxf.osgi,
+org.apache.hise,
+
+ org.apache.cxf.resource,
+ org.apache.cxf.binding.soap.spring,
+ org.springframework.beans,
+ org.apache.cxf.jaxws.spi,
+
+ org.springframework.osgi.config,
+ org.springframework.osgi.context,
+ org.springframework.osgi.context.support,
+ org.springframework.osgi.service,
+ org.springframework.osgi.service.importer,
+ </Import-Package>
+ <!--
+ <Private-Package>org.apache.hise*</Private-Package>
+ <Export-Package>org.apache.hise*,org.w3._2001.xmlschema</Export-Package>
+ -->
+ <DynamicImport-Package>*</DynamicImport-Package>
+ <Require-Bundle>
+ org.apache.cxf.bundle
+ </Require-Bundle>
+ <!--
+ -->
+ <!--
+
+ <DynamicImport-Package>org.w3.*,javax.xml.xquery</DynamicImport-Package>
+ org.w3.*,
+ net.sf.saxon*
+ <Embed-Dependency>saxon*,spring-orm,spring-jdbc,ojdbc5;scope=compile|runtime</Embed-Dependency>
+ <Embed-Dependency>saxon*,hise-wsdl;scope=compile|runtime</Embed-Dependency>
+ <Embed-Transitive>true</Embed-Transitive>
+ -->
+ <!--
+ -->
+
+ <!--
+ <_exportcontents>org.apache.hise*</_exportcontents>
+ -->
+ <!--
+ <DynamicImport-Package>*</DynamicImport-Package>
+<Include-Resource>
+ {maven-resources}, {maven-dependencies}
+</Include-Resource>
+ -->
+ <!--
+ <Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
+ -->
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/ExampleTasks.wsdl
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/ExampleTasks.wsdl?rev=906109&view=auto
==============================================================================
--- incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/ExampleTasks.wsdl (added)
+++ incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/ExampleTasks.wsdl Wed Feb 3 16:24:43 2010
@@ -0,0 +1,144 @@
+<?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.
+ -->
+<wsdl:definitions name="ClaimApproval"
+ targetNamespace="http://www.insurance.example.com/claims"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://www.insurance.example.com/claims"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+ <xsd:schema elementFormDefault="qualified"
+ targetNamespace="http://www.insurance.example.com/claims"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="http://www.insurance.example.com/claims">
+ <xsd:complexType name="ClaimApprovalData">
+ <xsd:sequence>
+ <xsd:element name="cust">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="id" type="xsd:string">
+ </xsd:element>
+ <xsd:element name="firstname" type="xsd:string">
+ </xsd:element>
+ <xsd:element name="lastname" type="xsd:string">
+ </xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="amount" type="xsd:double" />
+ <xsd:element name="region" type="xsd:string" />
+ <xsd:element name="prio" type="xsd:int" />
+ <xsd:element name="activateAt" type="xsd:dateTime" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="ClaimApprovalRequest">
+ <wsdl:part name="ClaimApprovalRequest"
+ type="tns:ClaimApprovalData" />
+ </wsdl:message>
+ <wsdl:message name="ClaimApprovalResponse">
+ </wsdl:message>
+ <wsdl:message name="ClaimResolveRequest">
+ <wsdl:part name="claimId" type="xsd:int" />
+ <wsdl:part name="ok" type="xsd:boolean" />
+ </wsdl:message>
+ <wsdl:message name="ClaimResolveResponse">
+ </wsdl:message>
+ <wsdl:message name="notifyRequest">
+ <wsdl:part name="firstname" type="xsd:string" />
+ <wsdl:part name="lastname" type="xsd:string" />
+ <wsdl:part name="taskId" type="xsd:string" />
+ </wsdl:message>
+ <wsdl:message name="notifyResponse"></wsdl:message>
+ <wsdl:portType name="ClaimsHandlingPT">
+ <wsdl:operation name="approve">
+ <wsdl:input message="tns:ClaimApprovalRequest" />
+ <wsdl:output message="tns:ClaimApprovalResponse" />
+ </wsdl:operation>
+ <wsdl:operation name="escalate">
+ <wsdl:input message="tns:ClaimApprovalRequest" />
+ <wsdl:output message="tns:ClaimApprovalResponse"></wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:portType name="ClaimsResolvingPT">
+ <wsdl:operation name="resolve">
+ <wsdl:input message="tns:ClaimResolveRequest" />
+ <wsdl:output message="tns:ClaimResolveResponse" />
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:portType name="ClaimApprovalReminderPT">
+ <wsdl:operation name="notify">
+ <wsdl:input message="tns:notifyRequest" />
+ <wsdl:output message="tns:notifyResponse" />
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="ClaimsHandlingBinding" type="tns:ClaimsHandlingPT">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="approve">
+ <soap:operation />
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="escalate">
+ <soap:operation />
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ClaimsHandlingService">
+ <wsdl:port name="ClaimsHandlingPort" binding="tns:ClaimsHandlingBinding">
+ <soap:address location="http://localhost:8090"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <wsdl:binding name="ClaimsResolvingBinding" type="tns:ClaimsResolvingPT">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="resolve">
+ <soap:operation/>
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ClaimsResolvingService">
+ <wsdl:port name="ClaimsResolvingPort" binding="tns:ClaimsResolvingBinding">
+ <soap:address location="http://localhost:9999"/> <!--some non existing destination, since it has to be initialized from callback EPR -->
+ </wsdl:port>
+ </wsdl:service>
+
+ <wsdl:binding name="ClaimApprovalReminderBinding" type="tns:ClaimApprovalReminderPT">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="notify">
+ <soap:operation/>
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ClaimApprovalReminderService">
+ <wsdl:port name="ClaimApprovalReminderPort" binding="tns:ClaimApprovalReminderBinding">
+ <soap:address location="http://localhost:8090"/> <!--some non existing destination, since it has to be initialized from callback EPR -->
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Propchange: incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/ExampleTasks.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/META-INF/spring/beans.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/META-INF/spring/beans.xml?rev=906109&view=auto
==============================================================================
--- incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/META-INF/spring/beans.xml (added)
+++ incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/META-INF/spring/beans.xml Wed Feb 3 16:24:43 2010
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the NOTICE file ~ distributed with this work for additional information ~ regarding copyright ownership. The ASF licenses this file ~ to you under the Apache License, Version 2.0 (the ~ "License"); you may not use this file except in compliance ~ with the License. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, ~ software distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the License for the ~ specific
+ language governing permissions and limitations ~ under the License.
+ -->
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:ins="http://www.insurance.example.com/claims"
+xmlns:osgi="http://www.springframework.org/schema/osgi"
+xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
+ http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
+ ">
+
+<osgi:reference id="hiseEngine" interface="org.apache.hise.api.HISEEngine" bean-name="hiseEngine"/>
+<osgi:reference id="transactionManager" interface="org.springframework.transaction.PlatformTransactionManager" bean-name="transactionManager"/>
+
+ <bean class="org.apache.hise.engine.store.HISEDeployer" init-method="init">
+ <property name="hiseEngine" ref="hiseEngine"/>
+ <property name="deploymentInfo">
+ <bean class="org.apache.hise.engine.store.HISEDD">
+ <property name="humanInteractionsResource" value="classpath: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="hiseJaxWSService1"/>
+ <property name="sender" ref="hiseJaxWSSender1"/>
+ </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}Notify2"></constructor-arg>
+ </bean>
+ </property>
+ <property name="handler" ref="hiseJaxWSService1"/>
+ </bean>
+ </list>
+ </property>
+ </bean>
+ </property>
+ </bean>
+
+ <bean id="hiseJaxWSService1" class="org.apache.hise.engine.jaxws.HISEJaxWSService" init-method="init">
+ <property name="hiseEngine" ref="hiseEngine"/>
+ <property name="transactionManager" ref="transactionManager"></property>
+ </bean>
+
+ <jaxws:endpoint id="testHtd1" address="/ClaimsHandlingService/" implementor="#hiseJaxWSService1" serviceName="ins:ClaimsHandlingService" endpointName="ins:ClaimsHandlingPort" publish="true" wsdlLocation="classpath:ExampleTasks.wsdl">
+ <!--
+ <jaxws:handlers>
+ <ref bean="transactionHandler"/>
+ </jaxws:handlers>
+ <jaxws:inInterceptors>
+ <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
+ <constructor-arg>
+ <map>
+ <entry key="action" value="UsernameToken"/>
+ <entry key="passwordType" value="PasswordDigest"/>
+ <entry key="passwordCallbackRef">
+ <ref bean="hisePasswordCallback"/>
+ </entry>
+ </map>
+ </constructor-arg>
+ </bean>
+ </jaxws:inInterceptors>
+ -->
+ </jaxws:endpoint>
+
+ <bean id="hiseJaxWSSender1" class="org.apache.hise.engine.jaxws.HISEJaxWSClient" init-method="init">
+ <property name="wsdlDocumentLocation" value="classpath:ExampleTasks.wsdl"></property>
+ <property name="serviceName">
+ <bean class="javax.xml.namespace.QName" factory-method="valueOf">
+ <constructor-arg type="java.lang.String" value="{http://www.insurance.example.com/claims}ClaimsResolvingService"></constructor-arg>
+ </bean>
+ </property>
+ </bean>
+
+<!--
+ <jaxws:client id="testHtd1Sender" address="http://localhost:9999" wsdlLocation="classpath:ExampleTasks.wsdl"/>
+ -->
+ <jaxws:endpoint id="testHtd2" address="/ClaimApprovalReminderService/" implementor="#hiseJaxWSService1" serviceName="ins:ClaimApprovalReminderService" endpointName="ins:ClaimApprovalReminderPort" publish="true" wsdlLocation="classpath:ExampleTasks.wsdl"/>
+
+</beans>
+
Propchange: incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/META-INF/spring/beans.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/testHtd1.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/testHtd1.xml?rev=906109&view=auto
==============================================================================
--- incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/testHtd1.xml (added)
+++ incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/testHtd1.xml Wed Feb 3 16:24:43 2010
@@ -0,0 +1,443 @@
+<?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">
+
+ <!--
+
+ 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="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:ClaimsResolvingPT" responseOperation="resolve"/>
+ <htd:priority> htd:getInput("ClaimApprovalRequest")/priority </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"> htd:getInput("ClahimApprovalRequest")/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:outcome>
+ <![CDATA[
+ <cla:resolve xmlns:cla="http://www.insurance.example.com/claims" xmlns:htd="http://www.example.org/WS-HT">
+ <claimId>{htd:getInput("request")/ClaimApprovalRequest/cla:cust/cla:id/text()}</claimId>
+ <ok>{$outcome}</ok>
+ </cla:resolve>
+ ]]>
+ </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:startDeadline>
+ <htd:for>'PT5S'</htd:for>
+ <htd:escalation name="startDeadline2">
+ <htd:toParts>
+ <htd:toPart name="request">
+ <![CDATA[
+ <cla:notify xmlns:cla="http://www.insurance.example.com/claims" xmlns:htd="http://www.example.org/WS-HT">
+ <firstname>{htd:getInput("request")/ClaimApprovalRequest/cla:cust/cla:firstname/text()}</firstname>
+ <lastname>{htd:getInput("request")/ClaimApprovalRequest/cla:cust/cla:lastname/text()}</lastname>
+ <taskId>{$taskId}</taskId>
+ </cla:notify>
+ ]]>
+ </htd:toPart>
+ </htd:toParts>
+ <htd:localNotification reference="tns:Notify2"/>
+ </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>
+
+ <!-- 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("ClahimApprovalRequest")/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="startDeadline1">
+ <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:startDeadline>
+ <htd:for>PT5S</htd:for>
+ <htd:escalation name="startDeadline2">
+ <htd:localNotification reference="tns:Notify2"/>
+ </htd:escalation>
+ </htd:startDeadline>
+
+ <!--
+ <htd:startDeadline>
+ <htd:for>PT5S</htd:for>
+ <htd:escalation name="startDeadline3">
+ <htd:notification name="NotifyInline">
+ <htd:interface portType="req" operation="notify"></htd:interface>
+ <htd:priority>2</htd:priority>
+ <htd:peopleAssignments>
+ </htd:peopleAssignments>
+ <htd:presentationElements>
+ </htd:presentationElements>
+ </htd:notification>
+ </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: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>
Propchange: incubator/hise/trunk/hise-distro/src/distro/examples/osgi/claimsHandling/src/main/resources/testHtd1.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/ExampleTasks.wsdl
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/ExampleTasks.wsdl?rev=906109&view=auto
==============================================================================
--- incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/ExampleTasks.wsdl (added)
+++ incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/ExampleTasks.wsdl Wed Feb 3 16:24:43 2010
@@ -0,0 +1,144 @@
+<?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.
+ -->
+<wsdl:definitions name="ClaimApproval"
+ targetNamespace="http://www.insurance.example.com/claims"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://www.insurance.example.com/claims"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+ <xsd:schema elementFormDefault="qualified"
+ targetNamespace="http://www.insurance.example.com/claims"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="http://www.insurance.example.com/claims">
+ <xsd:complexType name="ClaimApprovalData">
+ <xsd:sequence>
+ <xsd:element name="cust">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="id" type="xsd:string">
+ </xsd:element>
+ <xsd:element name="firstname" type="xsd:string">
+ </xsd:element>
+ <xsd:element name="lastname" type="xsd:string">
+ </xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="amount" type="xsd:double" />
+ <xsd:element name="region" type="xsd:string" />
+ <xsd:element name="prio" type="xsd:int" />
+ <xsd:element name="activateAt" type="xsd:dateTime" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="ClaimApprovalRequest">
+ <wsdl:part name="ClaimApprovalRequest"
+ type="tns:ClaimApprovalData" />
+ </wsdl:message>
+ <wsdl:message name="ClaimApprovalResponse">
+ </wsdl:message>
+ <wsdl:message name="ClaimResolveRequest">
+ <wsdl:part name="claimId" type="xsd:int" />
+ <wsdl:part name="ok" type="xsd:boolean" />
+ </wsdl:message>
+ <wsdl:message name="ClaimResolveResponse">
+ </wsdl:message>
+ <wsdl:message name="notifyRequest">
+ <wsdl:part name="firstname" type="xsd:string" />
+ <wsdl:part name="lastname" type="xsd:string" />
+ <wsdl:part name="taskId" type="xsd:string" />
+ </wsdl:message>
+ <wsdl:message name="notifyResponse"></wsdl:message>
+ <wsdl:portType name="ClaimsHandlingPT">
+ <wsdl:operation name="approve">
+ <wsdl:input message="tns:ClaimApprovalRequest" />
+ <wsdl:output message="tns:ClaimApprovalResponse" />
+ </wsdl:operation>
+ <wsdl:operation name="escalate">
+ <wsdl:input message="tns:ClaimApprovalRequest" />
+ <wsdl:output message="tns:ClaimApprovalResponse"></wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:portType name="ClaimsHandlingPT">
+ <wsdl:operation name="resolve">
+ <wsdl:input message="tns:ClaimResolveRequest" />
+ <wsdl:output message="tns:ClaimResolveResponse" />
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:portType name="ClaimApprovalReminderPT">
+ <wsdl:operation name="notify">
+ <wsdl:input message="tns:notifyRequest" />
+ <wsdl:output message="tns:notifyResponse" />
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="ClaimsHandlingBinding" type="tns:ClaimsHandlingPT">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="approve">
+ <soap:operation />
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="escalate">
+ <soap:operation />
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ClaimsHandlingService">
+ <wsdl:port name="ClaimsHandlingPort" binding="tns:ClaimsHandlingBinding">
+ <soap:address location="http://localhost:8090"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <wsdl:binding name="ClaimsHandlingBinding" type="tns:ClaimsHandlingPT">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="resolve">
+ <soap:operation/>
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ClaimsHandlingService">
+ <wsdl:port name="ClaimsHandlingPort" binding="tns:ClaimsHandlingBinding">
+ <soap:address location="http://localhost:9999"/> <!--some non existing destination, since it has to be initialized from callback EPR -->
+ </wsdl:port>
+ </wsdl:service>
+
+ <wsdl:binding name="ClaimApprovalReminderBinding" type="tns:ClaimApprovalReminderPT">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="notify">
+ <soap:operation/>
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://www.insurance.example.com/claims" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ClaimApprovalReminderService">
+ <wsdl:port name="ClaimApprovalReminderPort" binding="tns:ClaimApprovalReminderBinding">
+ <soap:address location="http://localhost:8090"/> <!--some non existing destination, since it has to be initialized from callback EPR -->
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Propchange: incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/ExampleTasks.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/claimsHandling-hise-dd.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/claimsHandling-hise-dd.xml?rev=906109&view=auto
==============================================================================
--- incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/claimsHandling-hise-dd.xml (added)
+++ incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/claimsHandling-hise-dd.xml Wed Feb 3 16:24:43 2010
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the NOTICE file ~ distributed with this work for additional information ~ regarding copyright ownership. The ASF licenses this file ~ to you under the Apache License, Version 2.0 (the ~ "License"); you may not use this file except in compliance ~ with the License. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, ~ software distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the License for the ~ specific
+ language governing permissions and limitations ~ under the License.
+ -->
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:ins="http://www.insurance.example.com/claims" xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
+ ">
+ <bean class="org.apache.hise.engine.store.HISEDeployer" init-method="init">
+ <property name="hiseEngine" ref="hiseEngine"/>
+ <property name="deploymentInfo">
+ <bean class="org.apache.hise.engine.store.HISEDD">
+ <property name="humanInteractionsResource" value="classpath:claimsHandling.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}ClaimsHandlingTask"></constructor-arg>
+ </bean>
+ </property>
+ <property name="handler" ref="hiseJaxWSService1"/>
+ <property name="sender" ref="hiseJaxWSSender1"/>
+ </bean>
+ </list>
+ </property>
+ </bean>
+ </property>
+ </bean>
+
+ <bean id="hiseJaxWSService1" class="org.apache.hise.engine.jaxws.HISEJaxWSService" init-method="init">
+ <property name="hiseEngine" ref="hiseEngine"/>
+ <property name="transactionManager" ref="transactionManager"></property>
+ </bean>
+
+ <jaxws:endpoint id="claimsHandling" address="/ClaimsHandlingService/" implementor="#hiseJaxWSService1" serviceName="ins:ClaimsHandlingService" endpointName="ins:ClaimsHandlingPort" publish="true" wsdlLocation="classpath:ExampleTasks.wsdl">
+ </jaxws:endpoint>
+
+ <bean id="hiseJaxWSSender1" class="org.apache.hise.engine.jaxws.HISEJaxWSClient" init-method="init">
+ <property name="wsdlDocumentLocation" value="classpath:ExampleTasks.wsdl"></property>
+ <property name="serviceName">
+ <bean class="javax.xml.namespace.QName" factory-method="valueOf">
+ <constructor-arg type="java.lang.String" value="{http://www.insurance.example.com/claims}ClaimsHandlingService"></constructor-arg>
+ </bean>
+ </property>
+ </bean>
+</beans>
+
Propchange: incubator/hise/trunk/hise-distro/src/distro/examples/war/claimsHandling/claimsHandling-hise-dd.xml
------------------------------------------------------------------------------
svn:eol-style = native