Author: bbrodt
Date: 2010-03-10 12:14:08 -0500 (Wed, 10 Mar 2010)
New Revision: 556
Added:
trunk/samples/quickstart/BPEL-BluePrint1/messages/timeout.xml
trunk/samples/quickstart/BPEL-BluePrint2/.project
trunk/samples/quickstart/BPEL-BluePrint2/.settings/
trunk/samples/quickstart/BPEL-BluePrint2/.settings/org.eclipse.wst.common.component
trunk/samples/quickstart/BPEL-BluePrint2/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.bpel
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.bpelex
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.wsdl
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.bpel
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.bpelex
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.wsdl
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/bpel-deploy.xml
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/inventory.xsd
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/purchaseOrder.xsd
trunk/samples/quickstart/BPEL-BluePrint2/build.xml
Log:
Added test messages and ant build targets
Added: trunk/samples/quickstart/BPEL-BluePrint1/messages/timeout.xml
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint1/messages/timeout.xml
(rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint1/messages/timeout.xml 2010-03-10 17:14:08 UTC
(rev 556)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>2003</pur:orderId>
+ <pur:customerId>100656</pur:customerId>
+ <pur:orderDescription>OrderTimeout: Simulate Inventory Service
timeout</pur:orderDescription>
+ <pur:price></pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/samples/quickstart/BPEL-BluePrint2/.project
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/.project (rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/.project 2010-03-10 17:14:08 UTC (rev 556)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>BPEL-BluePrint2</name>
+ <comment></comment>
+ <projects>
+ <project>BPEL-BluePrint2</project>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.bpel.validator.builder</name>
+ <arguments>
+ <dictionary>
+ <key>debug</key>
+ <value>false</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/samples/quickstart/BPEL-BluePrint2/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/samples/quickstart/BPEL-BluePrint2/.settings/org.eclipse.wst.common.component 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="BPEL-BluePrint2">
+ <wb-resource deploy-path="/"
source-path="/bpelContent"/>
+ <dependent-module deploy-path="/"
handle="module:/org.jboss.ide.eclipse.as.wtp.core.vcf.outputFolders/">
+ <dependency-type>consumes</dependency-type>
+ </dependent-module>
+ </wb-module>
+</project-modules>
Added:
trunk/samples/quickstart/BPEL-BluePrint2/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/samples/quickstart/BPEL-BluePrint2/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/samples/quickstart/BPEL-BluePrint2/.settings/org.eclipse.wst.common.project.facet.core.xml 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <fixed facet="jbt.bpel.facet.core"/>
+ <installed facet="jbt.bpel.facet.core" version="2.0"/>
+</faceted-project>
Added: trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.bpel
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.bpel
(rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.bpel 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<process name="InventoryService"
+
targetNamespace="http://manufacturing.org/wsdl/inventory/bp2"
+
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExten...
+
xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExte...
+
xmlns:invs="http://manufacturing.org/wsdl/inventory/bp2"
+
xmlns:invsh="http://manufacturing.org/xsd/inventory"
+
xmlns:po="http://manufacturing.org/xsd/purchase">
+
+ <import
namespace="http://manufacturing.org/wsdl/inventory/bp2"
+ location="InventoryService.wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/"></import>
+
+ <import
namespace="http://manufacturing.org/xsd/purchase"
+ location="purchaseOrder.xsd"
+
importType="http://www.w3.org/2001/XMLSchema"></import>
+
+ <import
namespace="http://manufacturing.org/xsd/inventory"
+ location="inventory.xsd"
+
importType="http://www.w3.org/2001/XMLSchema"></import>
+
+ <partnerLinks>
+ <partnerLink name="inventoryServicing"
+ partnerLinkType="invs:inventoryRequestingLT"
+ myRole="inventoryService"
+ partnerRole="inventoryServiceRequester"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="inventoryServiceVar"
messageType="invs:POMessage"></variable>
+ <variable name="inventoryServiceResponseVar"
messageType="invs:InventoryMessage"></variable>
+ </variables>
+
+ <sequence>
+ <receive name="inventoryService"
+ partnerLink="inventoryServicing"
+ portType="invs:inventoryPortType"
+ operation="inventoryService"
+ variable="inventoryServiceVar"
+ createInstance="yes">
+ </receive>
+ <if name="checkAvailability">
+
<condition>starts-with($inventoryServiceVar.purchaseOrder/po:orderDescription,
'OrderVal') = true()</condition>
+ <sequence name="Case1">
+ <assign name="Assign1">
+
+ <bpws:copy>
+ <bpws:from><bpws:literal><tns:inventory
xmlns:tns="http://manufacturing.org/xsd/inventory"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:orderId></tns:orderId>
+ <tns:inventoryStatus></tns:inventoryStatus>
+ <tns:inventoryStatusMessage></tns:inventoryStatusMessage>
+</tns:inventory>
+</bpws:literal></bpws:from>
+ <bpws:to variable="inventoryServiceResponseVar"
part="inventoryPart"></bpws:to>
+ </bpws:copy>
+ <copy>
+
<from>$inventoryServiceVar.purchaseOrder/po:orderId</from>
+
<to>$inventoryServiceResponseVar.inventoryPart/invsh:orderId</to>
+ </copy>
+ <copy>
+ <from>true()</from>
+
<to>$inventoryServiceResponseVar.inventoryPart/invsh:inventoryStatus</to>
+ </copy>
+ <copy>
+ <from>'available'</from>
+
<to>$inventoryServiceResponseVar.inventoryPart/invsh:inventoryStatusMessage</to>
+ </copy>
+
+
+ </assign>
+ </sequence>
+ <bpws:elseif>
+
<bpws:condition><![CDATA[starts-with($inventoryServiceVar.purchaseOrder/po:orderDescription,
'OrderTimeout') = true()]]></bpws:condition>
+ <sequence name="Case2">
+ <bpws:wait name="Wait">
+ <bpws:for><![CDATA['PT15S']]></bpws:for>
+ </bpws:wait>
+ <assign name="Assign2">
+ <bpws:copy>
+ <bpws:from><bpws:literal><tns:inventory
xmlns:tns="http://manufacturing.org/xsd/inventory"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:orderId></tns:orderId>
+ <tns:inventoryStatus></tns:inventoryStatus>
+ <tns:inventoryStatusMessage></tns:inventoryStatusMessage>
+</tns:inventory>
+</bpws:literal></bpws:from>
+ <bpws:to variable="inventoryServiceResponseVar"
part="inventoryPart"></bpws:to>
+ </bpws:copy>
+ <copy>
+
<from>$inventoryServiceVar.purchaseOrder/po:orderId</from>
+
<to>$inventoryServiceResponseVar.inventoryPart/invsh:orderId</to>
+ </copy>
+ <copy>
+ <from>false()</from>
+
<to>$inventoryServiceResponseVar.inventoryPart/invsh:inventoryStatus</to>
+ </copy>
+ <copy>
+ <from>
+ <![CDATA['timed out searching for
stock']]>
+ </from>
+
<to>$inventoryServiceResponseVar.inventoryPart/invsh:inventoryStatusMessage</to>
+ </copy>
+
+ </assign>
+ </sequence>
+ </bpws:elseif>
+ <else>
+ <sequence name="Case3">
+ <assign name="Assign3">
+ <bpws:copy>
+ <bpws:from><bpws:literal><tns:inventory
xmlns:tns="http://manufacturing.org/xsd/inventory"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:orderId></tns:orderId>
+ <tns:inventoryStatus></tns:inventoryStatus>
+ <tns:inventoryStatusMessage></tns:inventoryStatusMessage>
+</tns:inventory>
+</bpws:literal></bpws:from>
+ <bpws:to variable="inventoryServiceResponseVar"
part="inventoryPart"></bpws:to>
+ </bpws:copy>
+ <copy>
+
<from>$inventoryServiceVar.purchaseOrder/po:orderId</from>
+
<to>$inventoryServiceResponseVar.inventoryPart/invsh:orderId</to>
+ </copy>
+ <copy>
+ <from>false()</from>
+
<to>$inventoryServiceResponseVar.inventoryPart/invsh:inventoryStatus</to>
+ </copy>
+ <copy>
+ <from>'currently out of stock'</from>
+
<to>$inventoryServiceResponseVar.inventoryPart/invsh:inventoryStatusMessage</to>
+ </copy>
+
+ </assign>
+ </sequence>
+ </else>
+</if>
+ <invoke name="inventoryServiceResponse"
+ partnerLink="inventoryServicing"
+ portType="invs:inventoryServiceCallbackPortType"
+ operation="inventoryServiceResponse"
+ inputVariable="inventoryServiceResponseVar"/>
+ </sequence>
+</process>
Added: trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.bpelex
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.bpelex
(rev 0)
+++
trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.bpelex 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="ASCII"?>
+<extensionmodel:ExtensionMap xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:extensionmodel="http:///extensionmodel.ecore"
xmlns:org.eclipse.bpel.ui.uiextensionmodel="http:///org/eclipse/bpel/ui/uiextensionmodel.ecore"
namespace="http://org.eclipse.bpel.ui/">
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="InventoryService.bpel#//@activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="InventoryService.bpel#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1267643855000"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@else/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@else/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@else/@activity/@activities.0/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@else/@activity/@activities.0/(a)copy.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@else/@activity/@activities.0/(a)copy.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@activity/@activities.0/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@activity/@activities.0/(a)copy.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@activity/@activities.0/(a)copy.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@activity/@activities.0/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/@else/@activity/@activities.0/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.1/(a)elseIf.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CaseExtension"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added: trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.wsdl
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.wsdl
(rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/InventoryService.wsdl 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<definitions
targetNamespace="http://manufacturing.org/wsdl/inventory/bp2"
+ name="InventoryService"
+
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+
xmlns:tns="http://manufacturing.org/wsdl/inventory/bp2"
+
xmlns:inv="http://manufacturing.org/xsd/inventory"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:plink="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:po="http://manufacturing.org/xsd/purchase"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
+
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/varprop">
+
+ <vprop:property name="orderID" type="xsd:int"/>
+
+ <vprop:propertyAlias propertyName="tns:orderID"
messageType="tns:POMessage" part="purchaseOrder">
+ <vprop:query>po:orderId</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:orderID"
messageType="tns:InventoryMessage" part="inventoryPart">
+ <vprop:query>inv:orderId</vprop:query>
+ </vprop:propertyAlias>
+
+ <plink:partnerLinkType name="inventoryRequestingLT">
+ <plink:role portType="tns:inventoryPortType"
name="inventoryService"></plink:role>
+ <plink:role portType="tns:inventoryServiceCallbackPortType"
name="inventoryServiceRequester"></plink:role>
+ </plink:partnerLinkType>
+
+ <types>
+ <xsd:schema
targetNamespace="http://manufacturing.org/wsdl/inventory/bp2">
+ <xsd:import schemaLocation="inventory.xsd"
namespace="http://manufacturing.org/xsd/inventory"/>
+ <xsd:import schemaLocation="purchaseOrder.xsd"
namespace="http://manufacturing.org/xsd/purchase"/>
+ </xsd:schema>
+ </types>
+
+ <message name="InventoryMessage">
+ <part name="inventoryPart"
element="inv:inventory"></part>
+ </message>
+
+ <message name="POMessage">
+ <part name="purchaseOrder"
element="po:purchaseOrder"></part>
+ </message>
+
+ <portType name="inventoryPortType">
+ <operation name="inventoryService">
+ <input name="purchaseOrder"
message="tns:POMessage"></input>
+ </operation>
+ </portType>
+
+ <portType name="inventoryServiceCallbackPortType">
+ <operation name="inventoryServiceResponse">
+ <input name="inventoryResponse"
message="tns:InventoryMessage"></input>
+ </operation>
+ </portType>
+
+ <binding name="inventoryBinding"
type="tns:inventoryPortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="inventoryService">
+ <input name="purchaseOrder">
+ <soap:body parts="purchaseOrder"
use="literal"/>
+ </input>
+ </operation>
+ </binding>
+
+ <binding name="inventoryCallbackBinding"
type="tns:inventoryServiceCallbackPortType">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="inventoryServiceResponse">
+ <input name="inventoryResponse">
+ <soap:body parts="inventoryPart"
use="literal"/>
+ </input>
+ </operation>
+ </binding>
+
+ <service name="inventoryCallbackService">
+ <port name="inventoryCallbackServicePort"
binding="tns:inventoryCallbackBinding">
+ <soap:address
location="http://localhost:8080/BPEL_BluePrint2_InventoryServiceCallback"/>
+ </port>
+ </service>
+
+ <service name="inventoryService">
+ <port name="inventoryServicePort"
binding="tns:inventoryBinding">
+ <soap:address
location="http://localhost:8080/BPEL_BluePrint2_InventoryService"/>
+ </port>
+ </service>
+</definitions>
Added: trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.bpel
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.bpel
(rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.bpel 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,238 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<process name="POService"
+
targetNamespace="http://manufacturing.org/wsdl/purchase/bp2"
+
xmlns:pos="http://manufacturing.org/wsdl/purchase/bp2"
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExten...
+
xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExte...
+
xmlns:invs="http://manufacturing.org/wsdl/inventory/bp2"
+
xmlns:invsh="http://manufacturing.org/xsd/inventory"
+
xmlns:po="http://manufacturing.org/xsd/purchase"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
+ <import
namespace="http://manufacturing.org/wsdl/purchase/bp2"
+ location="POService.wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/"></import>
+
+ <import
namespace="http://manufacturing.org/wsdl/inventory/bp2"
+ location="InventoryService.wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/"></import>
+
+ <import
namespace="http://manufacturing.org/xsd/purchase"
+ location="purchaseOrder.xsd"
+
importType="http://www.w3.org/2001/XMLSchema"></import>
+
+ <import
namespace="http://manufacturing.org/xsd/inventory"
+ location="inventory.xsd"
+
importType="http://www.w3.org/2001/XMLSchema"></import>
+
+ <partnerLinks>
+ <partnerLink name="POServicePLink"
+ partnerLinkType="pos:purchasingLT"
+ myRole="purchaseService"/>
+ <partnerLink name="inventoryRequesting"
+ partnerLinkType="invs:inventoryRequestingLT"
+ myRole="inventoryServiceRequester"
+ partnerRole="inventoryService"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="purchaseOrderRequest"
messageType="pos:POMessage"></variable>
+ <variable name="purchaseOrderFault"
messageType="pos:orderFaultType"></variable>
+ <variable name="inventoryServiceRequest"
messageType="invs:POMessage"></variable>
+ <variable name="inventoryServiceReply"
messageType="invs:InventoryMessage"></variable>
+ </variables>
+
+ <correlationSets>
+ <correlationSet name="CorrelationSet"
properties="pos:corrprop"/>
+ <correlationSet name="POCorrelationSet"
properties="invs:orderID"/>
+ </correlationSets>
+
+ <sequence>
+ <receive name="sendPurchaseOrder"
+ partnerLink="POServicePLink"
+ portType="pos:purchaseOrderPT"
+ operation="sendPurchaseOrder"
+ variable="purchaseOrderRequest"
+ createInstance="yes">
+ <correlations>
+ <correlation set="CorrelationSet"
initiate="yes"/>
+ </correlations>
+ </receive>
+ <assign name="Assign_2">
+ <bpel:copy>
+ <bpel:from><bpel:literal><tns:purchaseOrder
xmlns:tns="http://manufacturing.org/xsd/purchase"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:orderId></tns:orderId>
+ <tns:customerId></tns:customerId>
+ <tns:orderDescription></tns:orderDescription>
+ <tns:price></tns:price>
+</tns:purchaseOrder>
+</bpel:literal></bpel:from>
+ <bpel:to part="purchaseOrder"
variable="inventoryServiceRequest"></bpel:to>
+ </bpel:copy>
+ <copy>
+ <from>49.98</from>
+ <to>
+
+
+ <![CDATA[$purchaseOrderRequest.purchaseOrder/po:price]]>
+ </to>
+ </copy>
+
<copy><from>$purchaseOrderRequest.purchaseOrder/po:orderId</from>
+ <to>
+ <![CDATA[$inventoryServiceRequest.purchaseOrder/po:orderId]]>
+ </to>
+
+ </copy>
+
<copy><from>$purchaseOrderRequest.purchaseOrder/po:customerId</from>
+
<to>$inventoryServiceRequest.purchaseOrder/po:customerId</to>
+
+ </copy>
+
<copy><from>$purchaseOrderRequest.purchaseOrder/po:orderDescription</from>
+
<to>$inventoryServiceRequest.purchaseOrder/po:orderDescription</to>
+
+ </copy>
+
<copy><from>$purchaseOrderRequest.purchaseOrder/po:price</from>
+ <to>$inventoryServiceRequest.purchaseOrder/po:price</to>
+
+ </copy>
+
+ </assign>
+ <invoke name="inventoryService"
+ partnerLink="inventoryRequesting"
+ portType="invs:inventoryPortType"
+ operation="inventoryService"
+ inputVariable="inventoryServiceRequest">
+ <correlations>
+ <correlation set="POCorrelationSet"
initiate="yes"/>
+ </correlations>
+ </invoke>
+ <pick name="Event_Based_Decision" createInstance="no">
+ <onMessage partnerLink="inventoryRequesting"
+ portType="invs:inventoryServiceCallbackPortType"
+ operation="inventoryServiceResponse"
+ variable="inventoryServiceReply">
+ <correlations>
+ <correlation set="POCorrelationSet"
initiate="no"/>
+ </correlations>
+ <sequence>
+ <if name="Decision">
+
<bpel:condition><![CDATA[$inventoryServiceReply.inventoryPart/invsh:inventoryStatus
= 'true']]></bpel:condition>
+ <sequence name="Case2">
+ <reply name="sendPurchaseOrder.Reply"
+ partnerLink="POServicePLink"
+ portType="pos:purchaseOrderPT"
+ operation="sendPurchaseOrder"
+ variable="purchaseOrderRequest"/>
+ </sequence>
+ <else>
+ <sequence name="Case1">
+ <assign name="Assign2">
+ <bpel:copy>
+
<bpel:from><bpel:literal><tns:purchaseOrderFault
xmlns:tns="http://manufacturing.org/xsd/purchase"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:FaultCode></tns:FaultCode>
+ <tns:FaultMessage></tns:FaultMessage>
+</tns:purchaseOrderFault>
+</bpel:literal></bpel:from>
+ <bpel:to
variable="purchaseOrderFault"
part="cannotCompleteOrder"></bpel:to>
+ </bpel:copy>
+
+
+
+ <bpel:copy><bpel:from>
+ <bpel:literal
xml:space="preserve">404</bpel:literal>
+ </bpel:from>
+ <bpel:to part="cannotCompleteOrder"
variable="purchaseOrderFault">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
+ <![CDATA[po:FaultCode]]>
+ </bpel:query>
+ </bpel:to>
+
+ </bpel:copy>
+
<copy><from>$inventoryServiceReply.inventoryPart/invsh:inventoryStatusMessage</from>
+ <to>
+
+
<![CDATA[$purchaseOrderFault.cannotCompleteOrder/po:FaultMessage]]>
+ </to>
+
+ </copy>
+ </assign>
+ <reply name="sendPurchaseOrder.Fault_2"
+ partnerLink="POServicePLink"
+ portType="pos:purchaseOrderPT"
+ operation="sendPurchaseOrder"
+ variable="purchaseOrderFault"
+
faultName="pos:cannotCompleteOrder"/>
+ </sequence>
+ </else>
+ </if>
+ </sequence>
+ </onMessage>
+ <onAlarm>
+ <bpel:for><![CDATA['PT10S']]></bpel:for>
+ <sequence>
+ <assign name="Assign">
+ <bpel:copy>
+
<bpel:from><bpel:literal><tns:purchaseOrderFault
xmlns:tns="http://manufacturing.org/xsd/purchase"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:FaultCode></tns:FaultCode>
+ <tns:FaultMessage></tns:FaultMessage>
+</tns:purchaseOrderFault>
+</bpel:literal></bpel:from>
+ <bpel:to variable="purchaseOrderFault"
part="cannotCompleteOrder"></bpel:to>
+ </bpel:copy>
+
+
+ <bpel:copy><bpel:from>
+ <bpel:literal
xml:space="preserve">408</bpel:literal>
+ </bpel:from>
+ <bpel:to part="cannotCompleteOrder"
variable="purchaseOrderFault">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[po:FaultCode]]></bpel:query>
+ </bpel:to>
+
+ </bpel:copy>
+ <copy><from>'Time out waiting for inventory
Response'</from>
+ <to part="cannotCompleteOrder"
variable="purchaseOrderFault">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[po:FaultMessage]]></bpel:query>
+ </to>
+
+ </copy>
+ </assign>
+ <reply name="sendPurchaseOrder.Fault"
+ partnerLink="POServicePLink"
+ portType="pos:purchaseOrderPT"
+ operation="sendPurchaseOrder"
+ variable="purchaseOrderFault"
+ faultName="pos:cannotCompleteOrder"/>
+ </sequence>
+ </onAlarm>
+ </pick>
+ </sequence>
+</process>
Added: trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.bpelex
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.bpelex
(rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.bpelex 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="ASCII"?>
+<extensionmodel:ExtensionMap xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:extensionmodel="http:///extensionmodel.ecore"
xmlns:org.eclipse.bpel.ui.uiextensionmodel="http:///org/eclipse/bpel/ui/uiextensionmodel.ecore"
namespace="http://org.eclipse.bpel.ui/">
+ <extensions>
+ <extendedObject href="POService.bpel#//@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="POService.bpel#//@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="POService.bpel#//@activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="POService.bpel#//@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="POService.bpel#//@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="POService.bpel#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1267643516000"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="POService.bpel#//@variables/(a)children.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="POService.bpel#//@variables/(a)children.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.1/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="POService.bpel#//@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="POService.bpel#//@activity/(a)activities.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/(a)messages.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:OnMessageExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/@activity/@activities.0/@else/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/@activity/@activities.0/@else/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/@activity/@activities.0/@else/@activity/@activities.0/(a)copy.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/@activity/@activities.0/@else/@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/@activity/@activities.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/@activity/@activities.0/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/(a)alarm.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:OnAlarmExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@alarm.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@alarm.0/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@alarm.0/@activity/@activities.0/(a)copy.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@alarm.0/@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.1/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/@activity/@activities.0/@else/@activity/@activities.0/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@messages.0/@activity/@activities.0/@else/@activity/@activities.0/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@alarm.0/@activity/@activities.0/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@alarm.0/@activity/@activities.0/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.1/(a)copy.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.1/(a)copy.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.1/(a)copy.4"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.1/(a)copy.5"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added: trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.wsdl
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.wsdl
(rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/POService.wsdl 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<definitions
targetNamespace="http://manufacturing.org/wsdl/purchase/bp2"
+ name="POService"
+
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+
xmlns:tns="http://manufacturing.org/wsdl/purchase/bp2"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:plink="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:inv="http://manufacturing.org/xsd/inventory"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:sns="http://manufacturing.org/xsd/purchase"
+
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/varprop">
+
+ <types>
+ <xsd:schema
targetNamespace="http://manufacturing.org/wsdl/purchase/bp2">
+ <xsd:import schemaLocation="inventory.xsd"
namespace="http://manufacturing.org/xsd/inventory"/>
+ </xsd:schema>
+ <xsd:schema
targetNamespace="http://manufacturing.org/wsdl/purchase/bp2">
+ <xsd:import schemaLocation="purchaseOrder.xsd"
namespace="http://manufacturing.org/xsd/purchase"/>
+ </xsd:schema>
+ </types>
+
+ <message name="POMessage">
+ <part name="purchaseOrder"
element="sns:purchaseOrder"></part>
+ </message>
+
+ <message name="orderFaultType">
+ <part name="cannotCompleteOrder"
element="sns:purchaseOrderFault"></part>
+ </message>
+
+ <portType name="purchaseOrderPT">
+ <operation name="sendPurchaseOrder">
+ <input name="sendPurchaseOrderRequest"
message="tns:POMessage"></input>
+ <output name="sendPurchaseOrderReply"
message="tns:POMessage"></output>
+ <fault name="cannotCompleteOrder"
message="tns:orderFaultType"></fault>
+ </operation>
+ </portType>
+
+ <binding name="purchaseOrderBinding"
type="tns:purchaseOrderPT">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="sendPurchaseOrder">
+ <input name="sendPurchaseOrderRequest">
+ <soap:body parts="purchaseOrder"
use="literal"/>
+ </input>
+ <output name="sendPurchaseOrderReply">
+ <soap:body parts="purchaseOrder"
use="literal"/>
+ </output>
+ <fault name="cannotCompleteOrder">
+ <soap:fault name="cannotCompleteOrder"
use="literal"/>
+ </fault>
+ </operation>
+ </binding>
+
+ <service name="purchaseOrderService">
+ <port name="purchaseOrderPort"
+ binding="tns:purchaseOrderBinding">
+ <soap:address
location="http://localhost:8080/BPEL_BluePrint2_PurchaseOrderService"/>
+ </port>
+ </service>
+
+ <plink:partnerLinkType name="purchasingLT">
+ <plink:role name="purchaseService"
portType="tns:purchaseOrderPT"></plink:role>
+ </plink:partnerLinkType>
+
+ <vprop:property name="corrprop" type="xsd:int"/>
+
+ <vprop:propertyAlias propertyName="tns:corrprop"
messageType="tns:POMessage" part="purchaseOrder">
+ <vprop:query>sns:orderId</vprop:query>
+ </vprop:propertyAlias>
+
+</definitions>
Added: trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/bpel-deploy.xml
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/bpel-deploy.xml
(rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/bpel-deploy.xml 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:bp2="http://manufacturing.org/wsdl/inventory/bp2"
xmlns:bp2_1="http://manufacturing.org/wsdl/purchase/bp2">
+ <process name="bp2:InventoryService">
+ <active>true</active>
+ <retired>false</retired>
+ <process-events generate="all"/>
+ <provide partnerLink="inventoryServicing">
+ <service name="bp2:inventoryService"
port="inventoryServicePort"/>
+ </provide>
+ <invoke partnerLink="inventoryServicing">
+ <service name="bp2:inventoryCallbackService"
port="inventoryCallbackServicePort"/>
+ </invoke>
+ </process>
+ <process name="bp2_1:POService">
+ <active>true</active>
+ <retired>false</retired>
+ <process-events generate="all"/>
+ <provide partnerLink="POServicePLink">
+ <service name="bp2_1:purchaseOrderService"
port="purchaseOrderPort"/>
+ </provide>
+ <provide partnerLink="inventoryRequesting">
+ <service name="bp2:inventoryCallbackService"
port="inventoryCallbackServicePort"/>
+ </provide>
+ <invoke partnerLink="inventoryRequesting">
+ <service name="bp2:inventoryService"
port="inventoryServicePort"/>
+ </invoke>
+ </process>
+</deploy>
\ No newline at end of file
Added: trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/inventory.xsd
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/inventory.xsd
(rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/inventory.xsd 2010-03-10 17:14:08
UTC (rev 556)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
targetNamespace="http://manufacturing.org/xsd/inventory"
+ xmlns:tns ="http://manufacturing.org/xsd/inventory"
+ elementFormDefault="qualified"
attributeFormDefault="unqualified">
+ <xs:element name="inventory" type="tns:inventoryType">
+ </xs:element>
+
+ <xs:complexType name="inventoryType">
+ <xs:sequence>
+ <xs:element name="orderId" type="xs:int"/>
+ <xs:element name="inventoryStatus"
type="xs:boolean"/>
+ <xs:element name="inventoryStatusMessage"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Added: trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/purchaseOrder.xsd
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/purchaseOrder.xsd
(rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/bpelContent/purchaseOrder.xsd 2010-03-10
17:14:08 UTC (rev 556)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
targetNamespace="http://manufacturing.org/xsd/purchase"
+ xmlns:tns ="http://manufacturing.org/xsd/purchase"
+ elementFormDefault="qualified"
attributeFormDefault="unqualified">
+ <xs:element name="purchaseOrder"
type="tns:purchaseOrderType">
+ </xs:element>
+
+ <xs:complexType name="purchaseOrderType">
+ <xs:sequence>
+ <xs:element name="orderId" type="xs:int"/>
+ <xs:element name="customerId" type="xs:int"/>
+ <xs:element name="orderDescription"
type="xs:string"/>
+ <xs:element name="price" type="xs:double"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="purchaseOrderFaultType">
+ <xs:sequence>
+ <xs:element name="FaultCode"
type="xs:int"></xs:element>
+ <xs:element name="FaultMessage"
type="xs:string"></xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:element name="purchaseOrderFault"
+ type="tns:purchaseOrderFaultType">
+ </xs:element>
+</xs:schema>
Added: trunk/samples/quickstart/BPEL-BluePrint2/build.xml
===================================================================
--- trunk/samples/quickstart/BPEL-BluePrint2/build.xml (rev 0)
+++ trunk/samples/quickstart/BPEL-BluePrint2/build.xml 2010-03-10 17:14:08 UTC (rev 556)
@@ -0,0 +1,71 @@
+<project name="BPEL_BluePrint2" default="deploy"
basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <!-- Import the base Ant build script... -->
+ <property file="../../../install/deployment.properties" />
+
+ <property name="version" value="1" />
+
+ <property name="server.dir"
value="${org.jboss.as.home}/server/${org.jboss.as.config}"/>
+ <property name="conf.dir" value="${server.dir}/conf"/>
+ <property name="deploy.dir" value="${server.dir}/deploy"/>
+ <property name="server.lib.dir" value="${server.dir}/lib"/>
+
+ <property name="sample.jar.name"
value="${ant.project.name}-${version}.jar" />
+
+ <target name="deploy">
+ <echo>Deploy ${ant.project.name}</echo>
+ <jar basedir="bpelContent"
destfile="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+ <target name="undeploy">
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+ <target name="sendvalid">
+ <echo>Send valid test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg
value="http://localhost:8080/BPEL_BluePrint2_PurchaseOrderService"/>
+ <arg value="messages/valid.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="sendinvalid">
+ <echo>Send invalid test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg
value="http://localhost:8080/BPEL_BluePrint2_PurchaseOrderService"/>
+ <arg value="messages/invalid.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="sendtimeout">
+ <echo>Send timeout test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg
value="http://localhost:8080/BPEL_BluePrint2_PurchaseOrderService"/>
+ <arg value="messages/timeout.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+</project>