Author: bbrodt
Date: 2010-03-11 14:59:31 -0500 (Thu, 11 Mar 2010)
New Revision: 563
Added:
trunk/samples/tutorial/BPEL-BluePrint1/.project
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.bpel
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.bpelex
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.wsdl
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.bpel
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.bpelex
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.wsdl
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/bpel-deploy.xml
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/inventory.xsd
trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/purchaseOrder.xsd
trunk/samples/tutorial/BPEL-BluePrint1/build.xml
trunk/samples/tutorial/BPEL-BluePrint1/messages/
trunk/samples/tutorial/BPEL-BluePrint1/messages/invalid.xml
trunk/samples/tutorial/BPEL-BluePrint1/messages/valid.xml
Log:
Moved to tutorial folder
Added: trunk/samples/tutorial/BPEL-BluePrint1/.project
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/.project (rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/.project 2010-03-11 19:59:31 UTC (rev 563)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>BPEL-BluePrint1</name>
+ <comment></comment>
+ <projects>
+ <project>BPEL-BluePrint1</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/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.bpel
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.bpel
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.bpel 2010-03-11
19:59:31 UTC (rev 563)
@@ -0,0 +1,117 @@
+<?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/bp1"
+
xmlns:tns="http://www.seebeyond.com/eInsight/newuntitled"
+
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/bp1"
+
xmlns:invsh="http://manufacturing.org/xsd/inventory"
+
xmlns:po="http://manufacturing.org/xsd/purchase">
+
+ <import
namespace="http://manufacturing.org/wsdl/inventory/bp1"
+ location="InventoryService.wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/"></import>
+
+ <import
namespace="http://manufacturing.org/xsd/inventory"
+ location="inventory.xsd"
+
importType="http://www.w3.org/2001/XMLSchema"></import>
+
+ <import
namespace="http://manufacturing.org/xsd/purchase"
+ location="purchaseOrder.xsd"
+
importType="http://www.w3.org/2001/XMLSchema"></import>
+
+ <partnerLinks>
+ <partnerLink name="inventorySevicePLink"
partnerLinkType="invs:inventoryRequestingLT"
myRole="inventoryService"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="purchaseOrder"
messageType="invs:POMessage"></variable>
+ <variable name="inventoryStatus"
messageType="invs:InventoryMessage"></variable>
+ </variables>
+
+ <sequence>
+ <receive name="inventoryService"
+ partnerLink="inventorySevicePLink"
+ portType="invs:inventoryPortType"
+ operation="inventoryService"
+ variable="purchaseOrder"
+ createInstance="yes">
+ </receive>
+
+ <bpws:assign validate="no"
name="InitializeResponseMessage">
+ <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:inventoryStatus></tns:inventoryStatus>
+ <tns:inventoryStatusMessage></tns:inventoryStatusMessage>
+</tns:inventory>
+</bpws:literal></bpws:from>
+ <bpws:to variable="inventoryStatus"
part="inventoryPart"></bpws:to>
+ </bpws:copy>
+
+ </bpws:assign>
+ <if name="checkAvailability">
+
<condition>starts-with($purchaseOrder.purchaseOrder/po:orderDescription,
'OrderVal') = true()</condition>
+
+ <assign name="Case1">
+ <copy>
+ <from>true()</from>
+
<to>$inventoryStatus.inventoryPart/invsh:inventoryStatus</to>
+ </copy>
+ <copy>
+ <from>'available'</from>
+
<to>$inventoryStatus.inventoryPart/invsh:inventoryStatusMessage</to>
+ </copy>
+ </assign>
+
+ <else>
+ <assign name="Case2">
+ <copy>
+ <from>false()</from>
+
<to>$inventoryStatus.inventoryPart/invsh:inventoryStatus</to>
+ </copy>
+ <copy>
+ <from>'currently out of stock'</from>
+
<to>$inventoryStatus.inventoryPart/invsh:inventoryStatusMessage</to>
+ </copy>
+ </assign>
+ </else>
+ </if>
+
+ <reply name="inventoryService.Reply"
+ partnerLink="inventorySevicePLink"
+ portType="invs:inventoryPortType"
+ operation="inventoryService"
+ variable="inventoryStatus"/>
+ </sequence>
+</process>
Added: trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.bpelex
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.bpelex
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.bpelex 2010-03-11
19:59:31 UTC (rev 563)
@@ -0,0 +1,63 @@
+<?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#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1267810115000"/>
+ </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.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.2/@else/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.2/@else/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.2/@else/@activity/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.2/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.2/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/@activities.2/@activity/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="InventoryService.bpel#//@activity/(a)activities.3"/>
+ <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#//@activity/@activities.1/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added: trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.wsdl
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.wsdl
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/InventoryService.wsdl 2010-03-11
19:59:31 UTC (rev 563)
@@ -0,0 +1,94 @@
+<?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/bp1"
name="InventoryService"
+
xmlns:tns="http://manufacturing.org/wsdl/inventory/bp1"
+
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">
+
+ <types>
+ <xsd:schema
targetNamespace="http://manufacturing.org/wsdl/inventory/bp1">
+ <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="InventoryFaultMessage">
+ <part name="inventoryFault"
type="xsd:string"></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>
+ <output name="inventoryStatus"
message="tns:InventoryMessage"></output>
+ <fault name="fault"
message="tns:InventoryFaultMessage"></fault>
+ </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>
+ <output name="inventoryStatus">
+ <soap:body parts="inventoryPart"
use="literal"/>
+ </output>
+ <fault name="inventoryFault">
+ <soap:fault name="inventoryFault"
use="literal"/>
+ </fault>
+ </operation>
+ </binding>
+
+ <service name="inventoryService">
+ <port name="inventoryServicePort"
+ binding="tns:inventoryBinding">
+ <soap:address
location="http://localhost:8080/BPEL_BluePrint1_InventoryService"/>
+ </port>
+ </service>
+
+ <plink:partnerLinkType name="inventoryRequestingLT">
+ <plink:role name="inventoryService"
portType="tns:inventoryPortType"></plink:role>
+ </plink:partnerLinkType>
+</definitions>
Added: trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.bpel
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.bpel
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.bpel 2010-03-11 19:59:31
UTC (rev 563)
@@ -0,0 +1,199 @@
+<?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"
+
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
xmlns:pos="http://manufacturing.org/wsdl/purchase/bp1"
+
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/bp1"
+
targetNamespace="http://manufacturing.org/wsdl/purchase/bp1"
+
xmlns:inv="http://manufacturing.org/xsd/inventory"
+
xmlns:po="http://manufacturing.org/xsd/purchase">
+
+ <import
namespace="http://manufacturing.org/wsdl/purchase/bp1"
+ location="POService.wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/"></import>
+
+ <import
namespace="http://manufacturing.org/wsdl/inventory/bp1"
+ location="InventoryService.wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/"></import>
+
+ <import
namespace="http://manufacturing.org/xsd/inventory"
+ location="inventory.xsd"
+
importType="http://www.w3.org/2001/XMLSchema"></import>
+
+ <import
namespace="http://manufacturing.org/xsd/purchase"
+ location="purchaseOrder.xsd"
+
importType="http://www.w3.org/2001/XMLSchema"></import>
+
+ <partnerLinks>
+ <partnerLink name="POServicePLink"
+ partnerLinkType="pos:purchasingLT"
+ myRole="purchaseService"/>
+ <partnerLink name="requestInventoryPLink"
+ partnerLinkType="invs:inventoryRequestingLT"
+ 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>
+
+ <sequence>
+ <receive name="sendPurchaseOrder"
+ partnerLink="POServicePLink"
+ portType="pos:purchaseOrderPT"
+ operation="sendPurchaseOrder"
+ variable="purchaseOrderRequest"
+ createInstance="yes">
+ </receive>
+
+ <assign name="InitializeInventoryServiceRequest">
+
+
+
+
+
+
+
+
+
+
+
+ <bpws:copy><bpws:from>
+ <bpws:literal
xml:space="preserve"><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></bpws:literal>
+ </bpws:from>
+ <bpws:to part="purchaseOrder"
variable="inventoryServiceRequest"></bpws:to>
+
+
+
+
+ </bpws:copy>
+ <copy><from>
+ <![CDATA[49.97]]>
+ </from>
+ <to>
+
+
+ <![CDATA[$purchaseOrderRequest.purchaseOrder/po:price]]>
+ </to>
+
+ </copy>
+
<copy><from>$purchaseOrderRequest.purchaseOrder/po:orderId</from>
+ <to>$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="requestInventoryPLink"
+ portType="invs:inventoryPortType"
+ operation="inventoryService"
+ inputVariable="inventoryServiceRequest"
+ outputVariable="inventoryServiceReply">
+ </invoke>
+ <if name="InStock">
+
<bpws:condition><![CDATA[$inventoryServiceReply.inventoryPart/inv:inventoryStatus
= 'true']]></bpws:condition>
+ <sequence name="ProcessInStock">
+ <reply name="sendPurchaseOrder.Success"
+ partnerLink="POServicePLink"
+ operation="sendPurchaseOrder"
+ portType="pos:purchaseOrderPT"
+ variable="purchaseOrderRequest"/>
+ </sequence>
+ <else>
+ <sequence name="ProcessOutOfStock">
+
+ <assign name="InitializeFaultReply">
+
+
+
+
+
+
+ <bpws:copy>
+
<bpws:from><bpws: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>
+</bpws:literal></bpws:from>
+ <bpws:to variable="purchaseOrderFault"
part="cannotCompleteOrder"></bpws:to>
+ </bpws:copy>
+ <bpws:copy>
+ <bpws:from part="inventoryPart"
variable="inventoryServiceReply">
+ <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
+ <![CDATA[inv:inventoryStatusMessage]]>
+ </bpws:query>
+ </bpws:from>
+ <bpws:to part="cannotCompleteOrder"
variable="purchaseOrderFault">
+ <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[po:FaultMessage]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ <bpws:copy>
+ <bpws:from>
+ <bpws:literal
xml:space="preserve">404</bpws:literal>
+ </bpws:from>
+ <bpws:to part="cannotCompleteOrder"
variable="purchaseOrderFault">
+ <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[po:FaultCode]]></bpws:query>
+ </bpws:to>
+ </bpws:copy>
+ </assign>
+ <reply name="sendPurchaseOrder.Fault"
+ partnerLink="POServicePLink"
+ portType="pos:purchaseOrderPT"
+ operation="sendPurchaseOrder"
+ variable="purchaseOrderFault"
+ faultName="pos:cannotCompleteOrder"/>
+ </sequence>
+ </else>
+ </if>
+ </sequence>
+</process>
Added: trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.bpelex
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.bpelex
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.bpelex 2010-03-11
19:59:31 UTC (rev 563)
@@ -0,0 +1,99 @@
+<?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#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1267716683000"/>
+ </extensions>
+ <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#//@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"/>
+ <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#//@activity/@activities.1/(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>
+ <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/@else/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@else/@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@else/@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="POService.bpel#//@activity/@activities.3/@activity/(a)activities.0"/>
+ <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/@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/@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/@else/@activity/@activities.0/(a)copy.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added: trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.wsdl
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.wsdl
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/POService.wsdl 2010-03-11 19:59:31
UTC (rev 563)
@@ -0,0 +1,99 @@
+<?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/bp1"
+ name="POService"
+
xmlns:tns="http://manufacturing.org/wsdl/purchase/bp1"
+
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: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/bp1">
+ <xsd:import schemaLocation="purchaseOrder.xsd"
namespace="http://manufacturing.org/xsd/purchase"/>
+ </xsd:schema>
+ <xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <xsd:import
+
namespace="http://manufacturing.org/xsd/purchase"
+ schemaLocation="purchaseOrder.xsd">
+ </xsd:import></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_BluePrint1_PurchaseOrderService"/>
+ </port>
+ </service>
+
+ <plink:partnerLinkType name="purchasingLT">
+ <plink:role name="purchaseService"
portType="tns:purchaseOrderPT"></plink:role>
+ </plink:partnerLinkType>
+
+ <bpws:property name="pocorr" type="xsd:int"/>
+
+ <bpws:propertyAlias propertyName="tns:pocorr"
messageType="tns:POMessage" part="purchaseOrder">
+ <bpws:query>sns:orderId</bpws:query>
+ </bpws:propertyAlias>
+</definitions>
Added: trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/bpel-deploy.xml
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/bpel-deploy.xml
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/bpel-deploy.xml 2010-03-11 19:59:31
UTC (rev 563)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:bp1="http://manufacturing.org/wsdl/inventory/bp1"
xmlns:bp1_1="http://manufacturing.org/wsdl/purchase/bp1">
+ <process name="bp1:InventoryService">
+ <active>true</active>
+ <retired>false</retired>
+ <process-events generate="all"/>
+ <provide partnerLink="inventorySevicePLink">
+ <service name="bp1:inventoryService"
port="inventoryServicePort"/>
+ </provide>
+ </process>
+ <process name="bp1_1:POService">
+ <active>true</active>
+ <retired>false</retired>
+ <process-events generate="all"/>
+ <provide partnerLink="POServicePLink">
+ <service name="bp1_1:purchaseOrderService"
port="purchaseOrderPort"/>
+ </provide>
+ <invoke partnerLink="requestInventoryPLink">
+ <service name="bp1:inventoryService"
port="inventoryServicePort"/>
+ </invoke>
+ </process>
+</deploy>
\ No newline at end of file
Added: trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/inventory.xsd
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/inventory.xsd
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/inventory.xsd 2010-03-11 19:59:31
UTC (rev 563)
@@ -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="inventoryStatus"
type="xs:boolean"/>
+ <xs:element name="inventoryStatusMessage"
type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Added: trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/purchaseOrder.xsd
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/purchaseOrder.xsd
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/bpelContent/purchaseOrder.xsd 2010-03-11
19:59:31 UTC (rev 563)
@@ -0,0 +1,58 @@
+<?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/tutorial/BPEL-BluePrint1/build.xml
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/build.xml (rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/build.xml 2010-03-11 19:59:31 UTC (rev 563)
@@ -0,0 +1,57 @@
+<project name="BPEL_BluePrint1" 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_BluePrint1_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_BluePrint1_PurchaseOrderService"/>
+ <arg value="messages/invalid.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+</project>
Added: trunk/samples/tutorial/BPEL-BluePrint1/messages/invalid.xml
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/messages/invalid.xml
(rev 0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/messages/invalid.xml 2010-03-11 19:59:31 UTC
(rev 563)
@@ -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>321</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderInvalid: Attempt to purchase an out of stock
item</pur:orderDescription>
+ <pur:price></pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/samples/tutorial/BPEL-BluePrint1/messages/valid.xml
===================================================================
--- trunk/samples/tutorial/BPEL-BluePrint1/messages/valid.xml (rev
0)
+++ trunk/samples/tutorial/BPEL-BluePrint1/messages/valid.xml 2010-03-11 19:59:31 UTC (rev
563)
@@ -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>123</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderValid: Purchase an item that is in
stock</pur:orderDescription>
+ <pur:price></pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file