incubator-hise-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r.@apache.org
Subject svn commit: r983624 [1/2] - in /incubator/hise/trunk: hise-examples/ hise-examples/osgi/ hise-examples/osgi/claimsHandling-bundle/ hise-examples/osgi/claimsHandling-bundle/src/ hise-examples/osgi/claimsHandling-bundle/src/main/ hise-examples/osgi/claim...
Date Mon, 09 Aug 2010 13:02:45 GMT
Author: rr
Date: Mon Aug  9 13:02:45 2010
New Revision: 983624

URL: http://svn.apache.org/viewvc?rev=983624&view=rev
Log:
HISE-67: Create a simple example to show how the application works (Thanks to Michał Więcław)

Added:
    incubator/hise/trunk/hise-examples/
    incubator/hise/trunk/hise-examples/osgi/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/apache/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/apache/hise/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/apache/hise/example/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/apache/hise/example/osgi/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/apache/hise/example/osgi/SampleUsers.java
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/Htd1.xml
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/pom.xml
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/
    incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml
    incubator/hise/trunk/hise-examples/osgi/pom.xml
    incubator/hise/trunk/itest/hise-example-osgi.xml

Added: incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml?rev=983624&view=auto
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml (added)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml Mon Aug  9 13:02:45
2010
@@ -0,0 +1,79 @@
+<?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>
+  
+  <parent>
+        <groupId>org.apache.hise.hise-examples.osgi.claimsHandling</groupId>
+        <artifactId>claimsHandling</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+  </parent>
+  
+  <name>claimsHandling-bundle</name>
+  <artifactId>claimsHandling-bundle</artifactId>
+  <groupId>org.apache.hise.hise-examples.osgi.claimsHandling</groupId>
+  <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>
+							org.apache.hise,
+                            javax.jws,
+                            javax.wsdl,
+                            META-INF.cxf,
+                            META-INF.cxf.osgi,
+                            org.apache.cxf.bus,
+                            org.apache.cxf.bus.spring,
+                            org.apache.cxf.bus.resource,
+                            org.apache.cxf.configuration.spring,
+                            org.apache.cxf.resource,
+                            org.apache.cxf.transport.http_osgi,
+                            org.apache.servicemix.util,
+                            org.springframework.beans.factory.config
+                        </Import-Package>
+                        <Private-Package>org.apache.hise.example.osgi</Private-Package>
+                        <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
+                        
+                        <Export-Package>org.apache.hise.example.osgi</Export-Package>
+                        <DynamicImport-Package>*</DynamicImport-Package>
+                        
+                    </instructions>
+                </configuration>
+            </plugin>
+    	</plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.hise</groupId>
+      <artifactId>hise-services</artifactId>
+      <version>${hise.version}</version>
+    </dependency>
+  </dependencies>
+</project>

Added: incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/apache/hise/example/osgi/SampleUsers.java
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/apache/hise/example/osgi/SampleUsers.java?rev=983624&view=auto
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/apache/hise/example/osgi/SampleUsers.java
(added)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/java/org/apache/hise/example/osgi/SampleUsers.java
Mon Aug  9 13:02:45 2010
@@ -0,0 +1,81 @@
+package org.apache.hise.example.osgi;
+
+import org.apache.hise.api.HISEEngine;
+import org.apache.hise.dao.OrgEntity;
+import org.apache.hise.dao.TaskOrgEntity;
+import org.springframework.orm.jpa.JpaSystemException;
+import org.springframework.transaction.PlatformTransactionManager;
+import org.springframework.transaction.TransactionStatus;
+import org.springframework.transaction.support.TransactionCallback;
+import org.springframework.transaction.support.TransactionTemplate;
+
+public class SampleUsers {
+    
+    private HISEEngine hiseEngine;
+    private PlatformTransactionManager transactionManager;
+
+    public void setHiseEngine(HISEEngine hiseEngine) {
+		this.hiseEngine = hiseEngine;
+	}
+
+	public void setTransactionManager(PlatformTransactionManager transactionManager) {
+        this.transactionManager = transactionManager;
+    }
+    
+    private OrgEntity addUser(String name, String pass) {
+        OrgEntity o = new OrgEntity();
+        o.setName(name);
+        o.setType(TaskOrgEntity.OrgEntityType.USER);
+        o.setUserPassword(pass);
+        hiseEngine.getHiseDao().persist(o);
+        return o;
+    }
+
+
+    public void init() {
+    	try {
+        TransactionTemplate transactionTemplate = new TransactionTemplate(transactionManager);
+        
+        transactionTemplate.execute(new TransactionCallback() {
+        	
+            public Object doInTransaction(TransactionStatus arg0) {
+                {
+                    OrgEntity g = new OrgEntity();
+                    g.setName("group1");
+                    g.setType(TaskOrgEntity.OrgEntityType.GROUP);
+                    hiseEngine.getHiseDao().persist(g);
+                }
+                OrgEntity g3 = new OrgEntity();
+                {
+                    g3.setName("group3");
+                    g3.setType(TaskOrgEntity.OrgEntityType.GROUP);
+                    hiseEngine.getHiseDao().persist(g3);
+                }
+                OrgEntity g4 = new OrgEntity();
+                {
+                    g4.setName("group4");
+                    g4.setType(TaskOrgEntity.OrgEntityType.GROUP);
+                    hiseEngine.getHiseDao().persist(g4);
+                }
+                
+                //user G1 and G2 belong to group1 and group2
+            	OrgEntity userG3 = addUser("userG3", "userG3");
+            	OrgEntity userG4 = addUser("userG4", "userG4");
+            	userG3.getUserGroups().add(g3);
+            	userG4.getUserGroups().add(g4);
+                
+                addUser("user1", "user1pass");
+                addUser("user2", "user2pass");
+                addUser("user3", "user3pass");
+                addUser("user4", "user4pass");
+                addUser("user5", "user5pass");
+                addUser("user6", "user6pass");
+                
+                return null;
+            }
+        });
+    	} catch (RuntimeException e) {
+    		e.printStackTrace();
+    	}
+    }
+}

Added: incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl?rev=983624&view=auto
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl
(added)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl
Mon Aug  9 13:02:45 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>

Added: incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/Htd1.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/Htd1.xml?rev=983624&view=auto
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/Htd1.xml
(added)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/Htd1.xml
Mon Aug  9 13:02:45 2010
@@ -0,0 +1,126 @@
+<?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">
+    
+    <!--      
+        Example human task definition. Contains: Example definition, different human roles
definitions,
+        descriptions with parameters.  
+    -->
+    
+    <htd:import importType="http://schemas.xmlsoap.org/wsdl/" location="ExampleTasks.wsdl"
namespace="http://www.insurance.example.com/claims/"/>
+    
+
+    
+    <htd:tasks>
+        
+        <!-- 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> 
+				declare namespace cla="http://www.insurance.example.com/claims";
+				declare namespace htd="http://www.example.org/WS-HT";  
+				xs:integer(htd:getInput("ClaimApprovalRequest")/cla:prio)
+            </htd:priority>
+            
+			<htd:autoActivate>true</htd:autoActivate>
+          
+            <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: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">
+declare namespace cla="http://www.insurance.example.com/claims";
+declare namespace htd="http://www.example.org/WS-HT";
+xs:string(htd:getInput("ClaimApprovalRequest")/cla:cust/cla:firstname)
+</htd:presentationParameter>
+                    
+                    <htd:presentationParameter name="lastname" type="xsd:string">
+declare namespace cla="http://www.insurance.example.com/claims";
+declare namespace htd="http://www.example.org/WS-HT";
+xs:string(htd:getInput("ClaimApprovalRequest")/cla:cust/cla:lastname)
+</htd:presentationParameter>
+                    
+                    <htd:presentationParameter name="euroAmount" type="xsd:double">
+declare namespace cla="http://www.insurance.example.com/claims";
+declare namespace htd="http://www.example.org/WS-HT";
+xs:double(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 for {$firstname} {$lastname} </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("ClaimApprovalRequest")/cla:cust/cla:id/text()}</claimId>
+                     <ok>{$outcome}</ok>
+                  </cla:resolve>
+                ]]>
+            </htd:outcome>
+         
+ </htd:task>  
+       
+</htd:tasks> 
+</htd:humanInteractions>

Added: incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml?rev=983624&view=auto
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml
(added)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml
Mon Aug  9 13:02:45 2010
@@ -0,0 +1,88 @@
+<?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
+       ">
+	<import resource="classpath:META-INF/cxf/cxf.xml" />
+	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+	<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
+	<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
+
+	<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" destroy-method="destroy">
+		<property name="hiseEngine" ref="hiseEngine" />
+		<property name="deploymentInfo">
+			<bean class="org.apache.hise.engine.store.HISEDD">
+				<property name="humanInteractionsResource" value="classpath:Htd1.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>
+
+
+          </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="Htd1" address="/ClaimsHandlingService/"
+		implementor="#hiseJaxWSService1" serviceName="ins:ClaimsHandlingService"
+		endpointName="ins:ClaimsHandlingPort" publish="true"
+		wsdlLocation="classpath:ExampleTasks.wsdl" />
+		
+  <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:endpoint id="Htd2" address="/ClaimApprovalReminderService/" implementor="#hiseJaxWSService1"
serviceName="ins:ClaimApprovalReminderService" endpointName="ins:ClaimApprovalReminderPort"
publish="true" wsdlLocation="classpath:ExampleTasks.wsdl"/>
+
+	  
+	<bean id="sampleUsers" class="org.apache.hise.example.osgi.SampleUsers" init-method="init">
+        <property name="hiseEngine" ref="hiseEngine"></property>
+        <property name="transactionManager" ref="transactionManager"></property>
+    </bean>
+   
+</beans>    
+

Added: incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/pom.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/pom.xml?rev=983624&view=auto
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/pom.xml (added)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/pom.xml Mon Aug  9 13:02:45
2010
@@ -0,0 +1,81 @@
+<?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>
+
+  <parent>
+        <groupId>org.apache.hise.hise-examples.osgi.claimsHandling</groupId>
+        <artifactId>claimsHandling</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+  </parent>
+
+  <name>claimsHandling-karaf</name>  
+  <version>1.0.0-SNAPSHOT</version>
+  <artifactId>claimsHandling-karaf</artifactId>
+  <groupId>org.apache.hise.hise-examples.osgi.claimsHandling</groupId>
+  <packaging>jar</packaging>
+
+
+  <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <executions>
+           <execution>
+              <id>filter</id>
+              <phase>generate-resources</phase>
+              <goals>
+                <goal>resources</goal>
+              </goals>
+           </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+          <artifactId>build-helper-maven-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>attach-artifacts</id>
+              <phase>package</phase>
+              <goals>
+                <goal>attach-artifact</goal>
+              </goals>
+              <configuration>
+                <artifacts>
+                  <artifact>
+                    <file>target/classes/features.xml</file>
+                     <type>xml</type>
+                     <classifier>features</classifier>
+                   </artifact>
+                 </artifacts>
+               </configuration>
+             </execution>
+         </executions>
+       </plugin>
+    </plugins>
+  </build>
+
+</project>

Added: incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml?rev=983624&view=auto
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml
(added)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml
Mon Aug  9 13:02:45 2010
@@ -0,0 +1,51 @@
+<?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.
+  -->
+<features>
+  <feature name="hise" version="${hise.version}">
+    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.2.2_5</bundle>
+    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.openjpa/1.2.1_2</bundle>
+    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.1.0.8_1-SNAPSHOT</bundle>
+    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.serp/1.13.1_2</bundle>
+    <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.java-persistence-api-1.1.1/1.4.0</bundle>
+    <bundle>mvn:org.springframework/spring-orm/${spring.version}</bundle>
+    <bundle>mvn:org.springframework/spring-jdbc/${spring.version}</bundle>
+    <bundle>mvn:org.springframework/spring-aspects/${spring.version}</bundle>
+    <bundle>mvn:org.apache.hise/hise-bundle/${hise.version}</bundle>
+  </feature>
+  <feature name="hise-h2" version="${hise.version}">
+    <bundle>mvn:com.h2database/h2/1.1.117</bundle>
+    <feature version="${hise.version}">hise</feature>
+  </feature>
+  <feature name="hise-sqlserver" version="${hise.version}">
+    <bundle>wrap:mvn:com.microsoft.sqlserver/sqljdbc/1.2</bundle>
+    <feature version="${hise.version}">hise</feature>
+  </feature>
+  <feature name="hise-oracle" version="${hiset.version}">
+    <bundle>wrap:mvn:oracle/ojdbc5/11.1.0.6.0</bundle>
+    <feature version="${hise.version}">hise</feature>
+  </feature>
+  <feature name="claims-handling-h2-example-osgi" version="${project.version}">
+    <feature version="${hise.version}">hise-h2</feature>
+    <bundle>mvn:org.apache.hise.hise-examples.osgi.claimsHandling/claimsHandling-bundle/${project.version}</bundle>
+  </feature>
+  <feature name="claims-handling-sqlserver-example-osgi" version="${project.version}">
+    <feature version="${hise.version}">hise-sqlserver</feature>
+    <bundle>mvn:org.apache.hise.hise-examples.osgi.claimsHandling/claimsHandling-bundle/${project.version}</bundle>
+  </feature>
+</features>

Added: incubator/hise/trunk/hise-examples/osgi/pom.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/pom.xml?rev=983624&view=auto
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/pom.xml (added)
+++ incubator/hise/trunk/hise-examples/osgi/pom.xml Mon Aug  9 13:02:45 2010
@@ -0,0 +1,54 @@
+<?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>org.apache.hise.hise-examples.osgi.claimsHandling</groupId>
+  <artifactId>claimsHandling</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0.0-SNAPSHOT</version>
+  <name>claimsHandling</name>	
+
+  <modules>
+	<module>claimsHandling-bundle</module>
+	<module>claimsHandling-karaf</module>  
+  </modules>
+
+  <properties>
+	<cxf.version>2.2.6</cxf.version>
+	<spring.version>2.5.6.SEC01</spring.version>
+	<saxon.version>9.1.0.8</saxon.version>
+        <log4j.version>1.2.13</log4j.version>
+	<hise.version>1.0.0-SNAPSHOT</hise.version>
+  </properties>
+
+  <build>
+	<plugins>
+	    <plugin>
+		<artifactId>maven-compiler-plugin</artifactId>
+		    <configuration>
+			<source>1.5</source>
+			<target>1.5</target>
+			<encoding>UTF-8</encoding>
+   		    </configuration>
+	     </plugin>
+	</plugins>
+  </build>
+</project>



Mime
View raw message