Author: pvasicek(a)redhat.com
Date: 2010-05-12 10:25:59 -0400 (Wed, 12 May 2010)
New Revision: 653
Added:
trunk/samples/quickstart/math/
trunk/samples/quickstart/math/.project
trunk/samples/quickstart/math/.settings/
trunk/samples/quickstart/math/.settings/org.eclipse.wst.common.component
trunk/samples/quickstart/math/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/samples/quickstart/math/bpelContent/
trunk/samples/quickstart/math/bpelContent/Math.bpel
trunk/samples/quickstart/math/bpelContent/Math.bpelex
trunk/samples/quickstart/math/bpelContent/MathArtifacts.wsdl
trunk/samples/quickstart/math/bpelContent/bpel-deploy.xml
trunk/samples/quickstart/math/build.xml
trunk/samples/quickstart/math/messages/
trunk/samples/quickstart/math/messages/math_add_request.xml
trunk/samples/quickstart/math/messages/math_divideByZero_request.xml
trunk/samples/quickstart/math/messages/math_divide_request.xml
trunk/samples/quickstart/math/messages/math_multiply_request.xml
trunk/samples/quickstart/math/messages/math_power_request.xml
trunk/samples/quickstart/math/messages/math_subtract_request.xml
trunk/samples/quickstart/math/readme.txt
trunk/samples/quickstart/salutations/
trunk/samples/quickstart/salutations/.project
trunk/samples/quickstart/salutations/.settings/
trunk/samples/quickstart/salutations/.settings/org.eclipse.wst.common.component
trunk/samples/quickstart/salutations/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/samples/quickstart/salutations/bpelContent/
trunk/samples/quickstart/salutations/bpelContent/Salutations.bpel
trunk/samples/quickstart/salutations/bpelContent/Salutations.bpelex
trunk/samples/quickstart/salutations/bpelContent/SalutationsArtifacts.wsdl
trunk/samples/quickstart/salutations/bpelContent/bpel-deploy.xml
trunk/samples/quickstart/salutations/build.xml
trunk/samples/quickstart/salutations/messages/
trunk/samples/quickstart/salutations/messages/salute_afternoon.xml
trunk/samples/quickstart/salutations/messages/salute_evening.xml
trunk/samples/quickstart/salutations/messages/salute_morning.xml
trunk/samples/quickstart/salutations/messages/salute_night.xml
trunk/samples/quickstart/salutations/readme.txt
trunk/samples/quickstart/say_hello/
trunk/samples/quickstart/say_hello/.project
trunk/samples/quickstart/say_hello/.settings/
trunk/samples/quickstart/say_hello/.settings/org.eclipse.wst.common.component
trunk/samples/quickstart/say_hello/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/samples/quickstart/say_hello/bpelContent/
trunk/samples/quickstart/say_hello/bpelContent/SayHello.bpel
trunk/samples/quickstart/say_hello/bpelContent/SayHello.bpelex
trunk/samples/quickstart/say_hello/bpelContent/SayHelloArtifacts.wsdl
trunk/samples/quickstart/say_hello/bpelContent/bpel-deploy.xml
trunk/samples/quickstart/say_hello/build.xml
trunk/samples/quickstart/say_hello/messages/
trunk/samples/quickstart/say_hello/messages/sayHello_request.xml
trunk/samples/quickstart/say_hello/readme.txt
Log:
=Adding new QuickStart samples
Added: trunk/samples/quickstart/math/.project
===================================================================
--- trunk/samples/quickstart/math/.project (rev 0)
+++ trunk/samples/quickstart/math/.project 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>math</name>
+ <comment></comment>
+ <projects>
+ <project>math</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/math/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/samples/quickstart/math/.settings/org.eclipse.wst.common.component
(rev 0)
+++ trunk/samples/quickstart/math/.settings/org.eclipse.wst.common.component 2010-05-12
14:25:59 UTC (rev 653)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="math">
+ <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/math/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/samples/quickstart/math/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/samples/quickstart/math/.settings/org.eclipse.wst.common.project.facet.core.xml 2010-05-12
14:25:59 UTC (rev 653)
@@ -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/math/bpelContent/Math.bpel
===================================================================
--- trunk/samples/quickstart/math/bpelContent/Math.bpel (rev 0)
+++ trunk/samples/quickstart/math/bpelContent/Math.bpel 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,255 @@
+<!-- Math BPEL Process [Generated by the Eclipse BPEL Designer] -->
+<bpel:process name="Math"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+ suppressJoinFailure="yes"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
xmlns:ns1="http://www.w3.org/2001/XMLSchema">
+
+ <!-- Import the client WSDL -->
+ <bpel:import location="MathArtifacts.wsdl"
namespace="http://www.jboss.org/bpel/examples"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <!-- ================================================================= -->
+ <!-- PARTNERLINKS -->
+ <!-- List of services participating in this BPEL process -->
+ <!-- ================================================================= -->
+ <bpel:partnerLinks>
+ <!-- The 'client' role represents the requester of this service.
-->
+ <bpel:partnerLink name="client"
+ partnerLinkType="tns:Math"
+ myRole="MathProvider"
+ />
+ </bpel:partnerLinks>
+
+ <!-- ================================================================= -->
+ <!-- VARIABLES -->
+ <!-- List of messages and XML documents used within this BPEL process -->
+ <!-- ================================================================= -->
+ <bpel:variables>
+ <!-- Reference to the message passed as input during initiation -->
+ <bpel:variable name="ReceiveCalculateVar"
+ messageType="tns:MathRequestMessage"/>
+
+ <!--
+ Reference to the message that will be returned to the requester
+ -->
+ <bpel:variable name="ReplyCalculateVar"
+ messageType="tns:MathResponseMessage"/>
+
+ <bpel:variable name="Result"
type="ns1:decimal"></bpel:variable>
+ <bpel:variable name="A"
type="ns1:decimal"></bpel:variable>
+ <bpel:variable name="B"
type="ns1:decimal"></bpel:variable>
+
+
+ <bpel:variable name="FaultVar"
element="tns:CalculateFault"></bpel:variable>
+ </bpel:variables>
+
+ <!-- ================================================================= -->
+ <!-- ORCHESTRATION LOGIC -->
+ <!-- Set of activities coordinating the flow of messages across the -->
+ <!-- services integrated within this business process -->
+ <!-- ================================================================= -->
+ <bpel:sequence name="main">
+
+ <!-- Receive input from requester.
+ Note: This maps to operation defined in Math.wsdl
+ -->
+ <bpel:receive name="ReceiveCalculate"
partnerLink="client"
+ portType="tns:Math"
+ operation="calculate"
variable="ReceiveCalculateVar"
+ createInstance="yes"/>
+
+ <!-- Generate reply to synchronous request -->
+ <bpel:assign validate="no" name="AssignInitialize">
+ <bpel:copy>
+ <bpel:from><bpel:literal><tns:calculateFault
xmlns:tns="http://www.jboss.org/bpel/examples"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:calculateFault></tns:calculateFault>
+</tns:calculateFault>
+</bpel:literal></bpel:from>
+ <bpel:to variable="FaultVar"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from part="parameters"
variable="ReceiveCalculateVar">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:a]]>
+ </bpel:query>
+ </bpel:from>
+ <bpel:to variable="A"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from part="parameters"
variable="ReceiveCalculateVar">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:b]]>
+ </bpel:query>
+ </bpel:from>
+ <bpel:to variable="B"></bpel:to>
+ </bpel:copy>
+
+ </bpel:assign>
+ <bpel:if name="OperatorType">
+
<bpel:condition><![CDATA[$ReceiveCalculateVar.parameters/tns:operator =
'+']]>
+ </bpel:condition>
+ <bpel:sequence name="Add">
+ <bpel:assign validate="no" name="AssignAdd">
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA[$A + $B]]>
+ </bpel:from>
+ <bpel:to variable="Result"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ </bpel:sequence>
+ <bpel:elseif>
+
<bpel:condition><![CDATA[$ReceiveCalculateVar.parameters/tns:operator =
'-']]>
+ </bpel:condition>
+ <bpel:sequence name="Subtract">
+ <bpel:assign validate="no"
name="AssignSubtract">
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA[$A - $B]]>
+ </bpel:from>
+ <bpel:to variable="Result"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ </bpel:sequence>
+ </bpel:elseif>
+ <bpel:elseif>
+
<bpel:condition><![CDATA[$ReceiveCalculateVar.parameters/tns:operator =
'*']]>
+ </bpel:condition>
+ <bpel:sequence name="Multiply">
+ <bpel:assign validate="no"
name="AssignMultiply">
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA[$A * $B]]>
+ </bpel:from>
+ <bpel:to variable="Result"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ </bpel:sequence>
+ </bpel:elseif>
+ <bpel:elseif>
+
<bpel:condition><![CDATA[$ReceiveCalculateVar.parameters/tns:operator =
'/']]>
+ </bpel:condition>
+ <bpel:sequence name="Divide">
+ <bpel:if name="BnotZero">
+ <bpel:condition><![CDATA[$B != 0]]>
+ </bpel:condition>
+ <bpel:assign validate="no"
name="AssignDivide">
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA[$A div $B]]>
+ </bpel:from>
+ <bpel:to
variable="Result"></bpel:to>
+ </bpel:copy>
+
+ </bpel:assign>
+ <bpel:else>
+ <bpel:sequence>
+ <bpel:assign validate="no"
name="AssignFault">
+
+ <bpel:copy>
+
<bpel:from><bpel:literal><tns:CalculateFault
xmlns:tns="http://www.jboss.org/bpel/examples"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:errorText></tns:errorText>
+</tns:CalculateFault>
+</bpel:literal></bpel:from>
+ <bpel:to
variable="FaultVar"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA['Division By Zero']]>
+ </bpel:from>
+ <bpel:to variable="FaultVar">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
+ <![CDATA[tns:errorText]]>
+ </bpel:query>
+ </bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+
+ <bpel:throw name="DivisionByZero"
faultName="tns:CalculateFault"
faultVariable="FaultVar"></bpel:throw>
+
+ </bpel:sequence>
+ </bpel:else>
+ </bpel:if>
+ </bpel:sequence>
+ </bpel:elseif>
+ <bpel:elseif>
+
<bpel:condition><![CDATA[$ReceiveCalculateVar.parameters/tns:operator =
'^']]></bpel:condition>
+ <bpel:sequence name="Power">
+ <bpel:assign validate="no"
name="AssignResultOne">
+ <bpel:copy>
+ <bpel:from>
+ <bpel:literal
xml:space="preserve">1</bpel:literal>
+ </bpel:from>
+ <bpel:to variable="Result"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ <bpel:while name="WhileBnotZero">
+ <bpel:condition><![CDATA[$B >
0]]></bpel:condition>
+ <bpel:assign validate="no"
name="CalculatePower">
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA[$B - 1]]>
+ </bpel:from>
+ <bpel:to variable="B"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA[$Result * $A]]>
+ </bpel:from>
+ <bpel:to
variable="Result"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ </bpel:while>
+
+ </bpel:sequence>
+ </bpel:elseif>
+ <bpel:else>
+ <bpel:sequence name="Other">
+ <bpel:assign validate="no"
name="AssignFault2">
+ <bpel:copy>
+ <bpel:from><bpel:literal><tns:CalculateFault
xmlns:tns="http://www.jboss.org/bpel/examples"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:errorText></tns:errorText>
+</tns:CalculateFault>
+</bpel:literal></bpel:from>
+ <bpel:to
variable="FaultVar"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA['Unknown Operator']]>
+ </bpel:from>
+ <bpel:to variable="FaultVar">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:errorText]]></bpel:query>
+ </bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ <bpel:throw name="UnknownOperator"
faultName="tns:CalculateFault"
faultVariable="FaultVar"></bpel:throw>
+ </bpel:sequence>
+ </bpel:else>
+ </bpel:if>
+ <bpel:assign validate="no" name="AssignResult">
+ <bpel:copy>
+ <bpel:from>
+ <bpel:literal>
+ <tns:MathResponse
xmlns:tns="http://www.jboss.org/bpel/examples"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:result></tns:result>
+ </tns:MathResponse>
+ </bpel:literal>
+ </bpel:from>
+ <bpel:to variable="ReplyCalculateVar"
part="parameters"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from variable="Result"></bpel:from>
+ <bpel:to part="parameters"
variable="ReplyCalculateVar">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]>
+ </bpel:query>
+ </bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ <bpel:reply name="ReplyCalculate"
+ partnerLink="client"
+ portType="tns:Math"
+ operation="calculate"
+ variable="ReplyCalculateVar"
+ />
+ </bpel:sequence>
+</bpel:process>
\ No newline at end of file
Added: trunk/samples/quickstart/math/bpelContent/Math.bpelex
===================================================================
--- trunk/samples/quickstart/math/bpelContent/Math.bpelex (rev 0)
+++ trunk/samples/quickstart/math/bpelContent/Math.bpelex 2010-05-12 14:25:59 UTC (rev
653)
@@ -0,0 +1,75 @@
+<?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="Math.bpel#//@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1273238599000"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@variables/(a)children.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@variables/(a)children.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@variables/(a)children.4"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@variables/(a)children.5"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/@activities.1/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/@activities.1/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/@activities.1/(a)copy.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/(a)activities.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/@activities.3/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/@activities.3/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Math.bpel#//@activity/(a)activities.4"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added: trunk/samples/quickstart/math/bpelContent/MathArtifacts.wsdl
===================================================================
--- trunk/samples/quickstart/math/bpelContent/MathArtifacts.wsdl
(rev 0)
+++ trunk/samples/quickstart/math/bpelContent/MathArtifacts.wsdl 2010-05-12 14:25:59 UTC
(rev 653)
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<definitions name="Math"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:p="http://www.w3.org/2001/XMLSchema">
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ TYPE DEFINITION - List of types participating in this BPEL process
+ The BPEL Designer will generate default request and response types
+ but you can define or import any XML Schema type and use them as part
+ of the message types.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <types>
+ <schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://www.w3.org/2001/XMLSchema">
+
+ <element name="MathRequest">
+ <complexType>
+ <sequence>
+ <element name="a" type="decimal" />
+ <element name="b"
type="decimal"></element>
+ <element name="operator"
type="string"></element>
+ </sequence>
+ </complexType>
+ </element>
+
+ <element name="MathResponse">
+ <complexType>
+ <sequence>
+ <element name="result"
type="decimal"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="CalculateFault">
+ <complexType>
+ <sequence>
+ <element name="errorText"
type="string"></element>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </types>
+
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ MESSAGE TYPE DEFINITION - Definition of the message types used as
+ part of the port type definitions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <message name="MathRequestMessage">
+ <part name="parameters" element="tns:MathRequest"/>
+ </message>
+ <message name="MathResponseMessage">
+ <part name="parameters" element="tns:MathResponse"/>
+ </message>
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ PORT TYPE DEFINITION - A port type groups a set of operations into
+ a logical service unit.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+
+ <!-- portType implemented by the Math BPEL process -->
+ <portType name="Math">
+ <operation name="calculate">
+ <input message="tns:MathRequestMessage" />
+ <output message="tns:MathResponseMessage"/>
+ </operation>
+ </portType>
+
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ PARTNER LINK TYPE DEFINITION
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <plnk:partnerLinkType name="Math">
+ <plnk:role name="MathProvider" portType="tns:Math"/>
+ </plnk:partnerLinkType>
+
+ <binding name="MathBinding" type="tns:Math">
+ <soap:binding style="document"
+
transport="http://schemas.xmlsoap.org/soap/http" />
+ <operation name="calculate">
+ <soap:operation
+
soapAction="http://www.jboss.org/bpel/examples/calculate" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="MathService">
+ <port name="MathPort" binding="tns:MathBinding">
+ <soap:address location="http://localhost:8080/MathProcess" />
+ </port>
+ </service>
+</definitions>
Added: trunk/samples/quickstart/math/bpelContent/bpel-deploy.xml
===================================================================
--- trunk/samples/quickstart/math/bpelContent/bpel-deploy.xml (rev
0)
+++ trunk/samples/quickstart/math/bpelContent/bpel-deploy.xml 2010-05-12 14:25:59 UTC (rev
653)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:examples="http://www.jboss.org/bpel/examples">
+ <process name="examples:Math">
+ <active>true</active>
+ <retired>false</retired>
+ <process-events generate="all"/>
+ <provide partnerLink="client">
+ <service name="examples:MathService" port="MathPort"/>
+ </provide>
+ </process>
+</deploy>
\ No newline at end of file
Added: trunk/samples/quickstart/math/build.xml
===================================================================
--- trunk/samples/quickstart/math/build.xml (rev 0)
+++ trunk/samples/quickstart/math/build.xml 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,44 @@
+<project name="math_process" 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="math">
+ <echo>Send test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg value="http://localhost:8080/MathProcess"/>
+ <arg value="messages/math_${op}_request.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+</project>
Added: trunk/samples/quickstart/math/messages/math_add_request.xml
===================================================================
--- trunk/samples/quickstart/math/messages/math_add_request.xml
(rev 0)
+++ trunk/samples/quickstart/math/messages/math_add_request.xml 2010-05-12 14:25:59 UTC
(rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:MathRequest>
+ <exam:a>2</exam:a>
+ <exam:b>4</exam:b>
+ <exam:operator>+</exam:operator>
+ </exam:MathRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/math/messages/math_divideByZero_request.xml
===================================================================
--- trunk/samples/quickstart/math/messages/math_divideByZero_request.xml
(rev 0)
+++ trunk/samples/quickstart/math/messages/math_divideByZero_request.xml 2010-05-12
14:25:59 UTC (rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:MathRequest>
+ <exam:a>2</exam:a>
+ <exam:b>0</exam:b>
+ <exam:operator>/</exam:operator>
+ </exam:MathRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/math/messages/math_divide_request.xml
===================================================================
--- trunk/samples/quickstart/math/messages/math_divide_request.xml
(rev 0)
+++ trunk/samples/quickstart/math/messages/math_divide_request.xml 2010-05-12 14:25:59 UTC
(rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:MathRequest>
+ <exam:a>2</exam:a>
+ <exam:b>4</exam:b>
+ <exam:operator>/</exam:operator>
+ </exam:MathRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/math/messages/math_multiply_request.xml
===================================================================
--- trunk/samples/quickstart/math/messages/math_multiply_request.xml
(rev 0)
+++ trunk/samples/quickstart/math/messages/math_multiply_request.xml 2010-05-12 14:25:59
UTC (rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:MathRequest>
+ <exam:a>2</exam:a>
+ <exam:b>4</exam:b>
+ <exam:operator>*</exam:operator>
+ </exam:MathRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/math/messages/math_power_request.xml
===================================================================
--- trunk/samples/quickstart/math/messages/math_power_request.xml
(rev 0)
+++ trunk/samples/quickstart/math/messages/math_power_request.xml 2010-05-12 14:25:59 UTC
(rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:MathRequest>
+ <exam:a>2</exam:a>
+ <exam:b>4</exam:b>
+ <exam:operator>^</exam:operator>
+ </exam:MathRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/math/messages/math_subtract_request.xml
===================================================================
--- trunk/samples/quickstart/math/messages/math_subtract_request.xml
(rev 0)
+++ trunk/samples/quickstart/math/messages/math_subtract_request.xml 2010-05-12 14:25:59
UTC (rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:MathRequest>
+ <exam:a>2</exam:a>
+ <exam:b>4</exam:b>
+ <exam:operator>-</exam:operator>
+ </exam:MathRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/math/readme.txt
===================================================================
--- trunk/samples/quickstart/math/readme.txt (rev 0)
+++ trunk/samples/quickstart/math/readme.txt 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,40 @@
+Quickstart Examples - Level 1 - Math
+============================================
+
+This example is emulating a calculator which can add (+), subtract (-),
+multiply (*), divide (/) and calculate power (^). Input for this process
+is a operator and two decimal numbers, result is a decimal number.
+
+If process is used to divide numbers and the second one is zero,
+the calculateFault arises, with "Division By Zero" text. If an invalid
+operator is given, same error with text "Unknown Operator" is thrown.
+
+Power is calculated using a While activity.
+
+To deploy the example, open a command line window in the example's folder,
+and simply type 'ant deploy'. To undeploy, use the command 'ant
undeploy'.
+
+To test the example, for example using the SOAPUI client, an example
+'math' message can be found in the messages sub-folder, with the
+relevant WSDL being located in the bpel sub-folder.
+
+Alternatively, use one od these commands (from a command line window)
+to send the message:
+ ant math -Dop=add
+ ant math -Dop=subtract
+ ant math -Dop=multiply
+ ant math -Dop=divide
+ ant math -Dop=divideByZero
+ ant math -Dop=power
+
+For these tests always: a=2, b=4, only for divideByZero b=0
+
+NOTE: The "ant deploy" command will by default deploy version 1 of the
+example to the server. If you wish to change the example, and redeploy,
+then you will need to update the version number in the build.xml, or
+override the version property, e.g. "ant -Dversion=2 deploy" (and similarly
+when undeploying "ant -Dversion=2 undeploy").
+
+Some handy URLs:
+http://localhost:8080/bpel-console is the BPEL console
+http://localhost:8080/MathProcess?wsdl is the URL to the BPEL process' WSDL
Added: trunk/samples/quickstart/salutations/.project
===================================================================
--- trunk/samples/quickstart/salutations/.project (rev 0)
+++ trunk/samples/quickstart/salutations/.project 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>salutations</name>
+ <comment></comment>
+ <projects>
+ <project>salutations</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/salutations/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/samples/quickstart/salutations/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/samples/quickstart/salutations/.settings/org.eclipse.wst.common.component 2010-05-12
14:25:59 UTC (rev 653)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="salutations">
+ <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/salutations/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/samples/quickstart/salutations/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/samples/quickstart/salutations/.settings/org.eclipse.wst.common.project.facet.core.xml 2010-05-12
14:25:59 UTC (rev 653)
@@ -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/salutations/bpelContent/Salutations.bpel
===================================================================
--- trunk/samples/quickstart/salutations/bpelContent/Salutations.bpel
(rev 0)
+++ trunk/samples/quickstart/salutations/bpelContent/Salutations.bpel 2010-05-12 14:25:59
UTC (rev 653)
@@ -0,0 +1,133 @@
+<!-- Salutations BPEL Process [Generated by the Eclipse BPEL Designer] -->
+<bpel:process name="Salutations"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+ suppressJoinFailure="yes"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
xmlns:ns1="http://www.w3.org/2001/XMLSchema">
+
+ <!-- Import the client WSDL -->
+ <bpel:import location="SalutationsArtifacts.wsdl"
namespace="http://www.jboss.org/bpel/examples"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <!-- ================================================================= -->
+ <!-- PARTNERLINKS -->
+ <!-- List of services participating in this BPEL process -->
+ <!-- ================================================================= -->
+ <bpel:partnerLinks>
+ <!-- The 'client' role represents the requester of this service.
-->
+ <bpel:partnerLink name="client"
+ partnerLinkType="tns:Salutations"
+ myRole="SalutationsProvider"
+ />
+ </bpel:partnerLinks>
+
+ <!-- ================================================================= -->
+ <!-- VARIABLES -->
+ <!-- List of messages and XML documents used within this BPEL process -->
+ <!-- ================================================================= -->
+ <bpel:variables>
+ <!-- Reference to the message passed as input during initiation -->
+ <bpel:variable name="ReceiveSaluteVar"
+ messageType="tns:SalutationsRequestMessage"/>
+
+ <!--
+ Reference to the message that will be returned to the requester
+ -->
+ <bpel:variable name="ReplySaluteVar"
+ messageType="tns:SalutationsResponseMessage"/>
+ <bpel:variable name="Salutation" type="ns1:string">
+ </bpel:variable>
+ <bpel:variable name="Hours"
type="ns1:int"></bpel:variable>
+ </bpel:variables>
+
+ <!-- ================================================================= -->
+ <!-- ORCHESTRATION LOGIC -->
+ <!-- Set of activities coordinating the flow of messages across the -->
+ <!-- services integrated within this business process -->
+ <!-- ================================================================= -->
+ <bpel:sequence name="main">
+
+ <!-- Receive input from requester.
+ Note: This maps to operation defined in Salutations.wsdl
+ -->
+ <bpel:receive name="ReceiveSalute" partnerLink="client"
+ portType="tns:Salutations"
+ operation="salute" variable="ReceiveSaluteVar"
+ createInstance="yes"/>
+
+ <!-- Generate reply to synchronous request -->
+ <bpel:assign validate="no" name="AssignHour">
+ <bpel:copy>
+ <bpel:from part="parameters"
variable="ReceiveSaluteVar">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:hours]]></bpel:query>
+ </bpel:from>
+ <bpel:to variable="Hours"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ <bpel:if name="TimeOfDay">
+ <bpel:condition>$Hours >= 4 and $Hours <
12</bpel:condition>
+ <bpel:assign validate="no" name="AssignMorning">
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA['Good Morning']]>
+ </bpel:from>
+ <bpel:to variable="Salutation"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ <bpel:elseif>
+ <bpel:condition>$Hours >= 12 and $Hours <
17</bpel:condition>
+ <bpel:assign validate="no"
name="AssignAfternoon">
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA['Good Afternoon']]>
+ </bpel:from>
+ <bpel:to variable="Salutation"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ </bpel:elseif><bpel:elseif>
+ <bpel:condition>$Hours >= 17 and $Hours <
22</bpel:condition>
+ <bpel:assign validate="no"
name="AssignEvening">
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA['Good Evening']]>
+ </bpel:from>
+ <bpel:to variable="Salutation"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ </bpel:elseif><bpel:else>
+ <bpel:assign validate="no" name="AssignNight">
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA['Good Night']]>
+ </bpel:from>
+ <bpel:to variable="Salutation"></bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ </bpel:else></bpel:if>
+ <bpel:assign validate="no" name="AssignSalutation">
+ <bpel:copy>
+ <bpel:from><bpel:literal><tns:SalutationsResponse
xmlns:tns="http://www.jboss.org/bpel/examples"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:result></tns:result>
+</tns:SalutationsResponse>
+</bpel:literal></bpel:from>
+ <bpel:to variable="ReplySaluteVar"
part="parameters"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA[concat($Salutation, ', ',
$ReceiveSaluteVar.parameters/tns:name)]]>
+ </bpel:from>
+ <bpel:to part="parameters"
variable="ReplySaluteVar">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
+ </bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ <bpel:reply name="ReplySalute"
+ partnerLink="client"
+ portType="tns:Salutations"
+ operation="salute"
+ variable="ReplySaluteVar"
+ />
+ </bpel:sequence>
+</bpel:process>
+
Added: trunk/samples/quickstart/salutations/bpelContent/Salutations.bpelex
===================================================================
--- trunk/samples/quickstart/salutations/bpelContent/Salutations.bpelex
(rev 0)
+++ trunk/samples/quickstart/salutations/bpelContent/Salutations.bpelex 2010-05-12
14:25:59 UTC (rev 653)
@@ -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="Salutations.bpel#//@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#//@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#//@activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#//@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#//@activity/(a)activities.4"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1273066670000"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#//@activity/(a)activities.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#//@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#//@variables/(a)children.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.3/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.3/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/(a)elseIf.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CaseExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/@elseIf.0/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/@elseIf.0/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/(a)elseIf.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CaseExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/@elseIf.1/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/@elseIf.1/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/@else/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/@else/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/(a)activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.2/@activity/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#//@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="Salutations.bpel#//@activity/@activities.1/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="Salutations.bpel#//@variables/(a)children.3"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added: trunk/samples/quickstart/salutations/bpelContent/SalutationsArtifacts.wsdl
===================================================================
--- trunk/samples/quickstart/salutations/bpelContent/SalutationsArtifacts.wsdl
(rev 0)
+++ trunk/samples/quickstart/salutations/bpelContent/SalutationsArtifacts.wsdl 2010-05-12
14:25:59 UTC (rev 653)
@@ -0,0 +1,92 @@
+<?xml version="1.0"?>
+<definitions name="Salutations"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ TYPE DEFINITION - List of types participating in this BPEL process
+ The BPEL Designer will generate default request and response types
+ but you can define or import any XML Schema type and use them as part
+ of the message types.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <types>
+ <schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://www.w3.org/2001/XMLSchema">
+
+ <element name="SalutationsRequest">
+ <complexType>
+ <sequence>
+ <element name="name" type="string" />
+ <element name="hours"
type="int"></element>
+ <element name="minutes"
type="int"></element>
+ </sequence>
+ </complexType>
+ </element>
+
+ <element name="SalutationsResponse">
+ <complexType>
+ <sequence>
+ <element name="result" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </types>
+
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ MESSAGE TYPE DEFINITION - Definition of the message types used as
+ part of the port type defintions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <message name="SalutationsRequestMessage">
+ <part name="parameters"
element="tns:SalutationsRequest"/>
+ </message>
+ <message name="SalutationsResponseMessage">
+ <part name="parameters"
element="tns:SalutationsResponse"/>
+ </message>
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ PORT TYPE DEFINITION - A port type groups a set of operations into
+ a logical service unit.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+
+ <!-- portType implemented by the Salutations BPEL process -->
+ <portType name="Salutations">
+ <operation name="salute">
+ <input message="tns:SalutationsRequestMessage" />
+ <output message="tns:SalutationsResponseMessage"/>
+ </operation>
+ </portType>
+
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ PARTNER LINK TYPE DEFINITION
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <plnk:partnerLinkType name="Salutations">
+ <plnk:role name="SalutationsProvider"
portType="tns:Salutations"/>
+ </plnk:partnerLinkType>
+
+ <binding name="SalutationsBinding" type="tns:Salutations">
+ <soap:binding style="document"
+
transport="http://schemas.xmlsoap.org/soap/http" />
+ <operation name="salute">
+ <soap:operation
+
soapAction="http://www.jboss.org/bpel/examples/salute" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="SalutationsService">
+ <port name="SalutationsPort"
binding="tns:SalutationsBinding">
+ <soap:address location="http://localhost:8080/SalutationsProcess"
/>
+ </port>
+ </service>
+</definitions>
Added: trunk/samples/quickstart/salutations/bpelContent/bpel-deploy.xml
===================================================================
--- trunk/samples/quickstart/salutations/bpelContent/bpel-deploy.xml
(rev 0)
+++ trunk/samples/quickstart/salutations/bpelContent/bpel-deploy.xml 2010-05-12 14:25:59
UTC (rev 653)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:examples="http://www.jboss.org/bpel/examples">
+ <process name="examples:Salutations">
+ <active>true</active>
+ <retired>false</retired>
+ <process-events generate="all"/>
+ <provide partnerLink="client">
+ <service name="examples:SalutationsService"
port="SalutationsPort"/>
+ </provide>
+ </process>
+</deploy>
\ No newline at end of file
Added: trunk/samples/quickstart/salutations/build.xml
===================================================================
--- trunk/samples/quickstart/salutations/build.xml (rev 0)
+++ trunk/samples/quickstart/salutations/build.xml 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,86 @@
+<project name="salutations_process" 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="salute_morning">
+ <echo>Send test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg value="http://localhost:8080/SalutationsProcess"/>
+ <arg value="messages/salute_morning_request.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="salute_afternoon">
+ <echo>Send test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg value="http://localhost:8080/SalutationsProcess"/>
+ <arg value="messages/salute_afternoon_request.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="salute_evening">
+ <echo>Send test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg value="http://localhost:8080/SalutationsProcess"/>
+ <arg value="messages/salute_evening_request.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="salute_night">
+ <echo>Send test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg value="http://localhost:8080/SalutationsProcess"/>
+ <arg value="messages/salute_night_request.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+</project>
Added: trunk/samples/quickstart/salutations/messages/salute_afternoon.xml
===================================================================
--- trunk/samples/quickstart/salutations/messages/salute_afternoon.xml
(rev 0)
+++ trunk/samples/quickstart/salutations/messages/salute_afternoon.xml 2010-05-12 14:25:59
UTC (rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:SalutationsRequest>
+ <exam:name>John</exam:name>
+ <exam:hours>12</exam:hours>
+ <exam:minutes>0</exam:minutes>
+ </exam:SalutationsRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/salutations/messages/salute_evening.xml
===================================================================
--- trunk/samples/quickstart/salutations/messages/salute_evening.xml
(rev 0)
+++ trunk/samples/quickstart/salutations/messages/salute_evening.xml 2010-05-12 14:25:59
UTC (rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:SalutationsRequest>
+ <exam:name>John</exam:name>
+ <exam:hours>19</exam:hours>
+ <exam:minutes>30</exam:minutes>
+ </exam:SalutationsRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/salutations/messages/salute_morning.xml
===================================================================
--- trunk/samples/quickstart/salutations/messages/salute_morning.xml
(rev 0)
+++ trunk/samples/quickstart/salutations/messages/salute_morning.xml 2010-05-12 14:25:59
UTC (rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:SalutationsRequest>
+ <exam:name>John</exam:name>
+ <exam:hours>6</exam:hours>
+ <exam:minutes>30</exam:minutes>
+ </exam:SalutationsRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/salutations/messages/salute_night.xml
===================================================================
--- trunk/samples/quickstart/salutations/messages/salute_night.xml
(rev 0)
+++ trunk/samples/quickstart/salutations/messages/salute_night.xml 2010-05-12 14:25:59 UTC
(rev 653)
@@ -0,0 +1,10 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:SalutationsRequest>
+ <exam:name>John</exam:name>
+ <exam:hours>1</exam:hours>
+ <exam:minutes>15</exam:minutes>
+ </exam:SalutationsRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/salutations/readme.txt
===================================================================
--- trunk/samples/quickstart/salutations/readme.txt (rev 0)
+++ trunk/samples/quickstart/salutations/readme.txt 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,34 @@
+Quickstart Examples - Level 1 - Salutations
+============================================
+
+This example is based on the Say Hello example but has slightly more
+complicated functionality. Instead of just greeting with 'Hello', it
+discriminates between the given time of day and uses one od these:
+ 04:00 - 11:59 Good Morning
+ 12:00 - 16:59 Good Afternoon
+ 17:00 - 21:59 Good Evening
+ 22:00 - 03:59 Good Night
+
+To deploy the example, open a command line window in the example's folder,
+and simply type 'ant deploy'. To undeploy, use the command 'ant
undeploy'.
+
+To test the example, for example using the SOAPUI client, an example
+'salute' message can be found in the messages sub-folder, with the
+relevant WSDL being located in the bpel sub-folder.
+
+Alternatively, use one of these commands (from a command line window)
+to send the message:
+ ant salute_morning
+ ant salute_afternoon
+ ant salute_evening
+ ant salute_night
+
+NOTE: The "ant deploy" command will by default deploy version 1 of the
+example to the server. If you wish to change the example, and redeploy,
+then you will need to update the version number in the build.xml, or
+override the version property, e.g. "ant -Dversion=2 deploy" (and similarly
+when undeploying "ant -Dversion=2 undeploy").
+
+Some handy URLs:
+http://localhost:8080/bpel-console is the BPEL console
+http://localhost:8080/SalutationsProcess?wsdl is the URL to the BPEL process' WSDL
Added: trunk/samples/quickstart/say_hello/.project
===================================================================
--- trunk/samples/quickstart/say_hello/.project (rev 0)
+++ trunk/samples/quickstart/say_hello/.project 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>say_hello</name>
+ <comment></comment>
+ <projects>
+ <project>HelloWorld</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/say_hello/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/samples/quickstart/say_hello/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/samples/quickstart/say_hello/.settings/org.eclipse.wst.common.component 2010-05-12
14:25:59 UTC (rev 653)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="say_hello">
+ <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/say_hello/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/samples/quickstart/say_hello/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/samples/quickstart/say_hello/.settings/org.eclipse.wst.common.project.facet.core.xml 2010-05-12
14:25:59 UTC (rev 653)
@@ -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/say_hello/bpelContent/SayHello.bpel
===================================================================
--- trunk/samples/quickstart/say_hello/bpelContent/SayHello.bpel
(rev 0)
+++ trunk/samples/quickstart/say_hello/bpelContent/SayHello.bpel 2010-05-12 14:25:59 UTC
(rev 653)
@@ -0,0 +1,81 @@
+<!-- HelloWorld BPEL Process [Generated by the Eclipse BPEL Designer] -->
+<bpel:process name="HelloWorld"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+ suppressJoinFailure="yes"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+ >
+
+ <!-- Import the client WSDL -->
+ <bpel:import location="SayHelloArtifacts.wsdl"
namespace="http://www.jboss.org/bpel/examples"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <!-- ================================================================= -->
+ <!-- PARTNERLINKS -->
+ <!-- List of services participating in this BPEL process -->
+ <!-- ================================================================= -->
+ <bpel:partnerLinks>
+ <!-- The 'client' role represents the requester of this service.
-->
+ <bpel:partnerLink name="client"
+ partnerLinkType="tns:SayHello"
+ myRole="SayHelloProvider"
+ />
+ </bpel:partnerLinks>
+
+ <!-- ================================================================= -->
+ <!-- VARIABLES -->
+ <!-- List of messages and XML documents used within this BPEL process -->
+ <!-- ================================================================= -->
+ <bpel:variables>
+ <!-- Reference to the message passed as input during initiation -->
+ <bpel:variable name="ReceiveSayHelloVar"
+ messageType="tns:SayHelloRequestMessage"/>
+
+ <!--
+ Reference to the message that will be returned to the requester
+ -->
+ <bpel:variable name="ReplySayHelloVar"
+ messageType="tns:SayHelloResponseMessage"/>
+ </bpel:variables>
+
+ <!-- ================================================================= -->
+ <!-- ORCHESTRATION LOGIC -->
+ <!-- Set of activities coordinating the flow of messages across the -->
+ <!-- services integrated within this business process -->
+ <!-- ================================================================= -->
+ <bpel:sequence name="main">
+
+ <!-- Receive input from requester.
+ Note: This maps to operation defined in HelloWorld.wsdl
+ -->
+ <bpel:receive name="ReceiveSayHello" partnerLink="client"
+ portType="tns:SayHello"
+ operation="sayHello" variable="ReceiveSayHelloVar"
+ createInstance="yes"/>
+
+ <!-- Generate reply to synchronous request -->
+ <bpel:assign validate="no" name="AssignName">
+ <bpel:copy>
+ <bpel:from><bpel:literal><tns:HelloWorldResponse
xmlns:tns="http://www.jboss.org/bpel/examples"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:result></tns:result>
+</tns:HelloWorldResponse>
+</bpel:literal></bpel:from>
+ <bpel:to variable="ReplySayHelloVar"
part="parameters"></bpel:to>
+ </bpel:copy>
+ <bpel:copy>
+ <bpel:from>
+ <![CDATA[concat('Hello ',
$ReceiveSayHelloVar.parameters/tns:input)]]>
+ </bpel:from>
+ <bpel:to part="parameters"
variable="ReplySayHelloVar">
+ <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
+ </bpel:to>
+ </bpel:copy>
+ </bpel:assign>
+ <bpel:reply name="ReplySayHello"
+ partnerLink="client"
+ portType="tns:SayHello"
+ operation="sayHello"
+ variable="ReplySayHelloVar"
+ />
+ </bpel:sequence>
+</bpel:process>
\ No newline at end of file
Added: trunk/samples/quickstart/say_hello/bpelContent/SayHello.bpelex
===================================================================
--- trunk/samples/quickstart/say_hello/bpelContent/SayHello.bpelex
(rev 0)
+++ trunk/samples/quickstart/say_hello/bpelContent/SayHello.bpelex 2010-05-12 14:25:59 UTC
(rev 653)
@@ -0,0 +1,39 @@
+<?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="SayHello.bpel#//@variables/(a)children.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="SayHello.bpel#//@variables/(a)children.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:VariableExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="SayHello.bpel#//@activity"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="SayHello.bpel#//@activity/(a)activities.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="SayHello.bpel#//@activity/(a)activities.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="SayHello.bpel#//@activity/@activities.1/(a)copy.0"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject
href="SayHello.bpel#//@activity/@activities.1/(a)copy.1"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:CopyExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="SayHello.bpel#//@activity/(a)activities.2"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ActivityExtension"/>
+ </extensions>
+ <extensions>
+ <extendedObject href="SayHello.bpel#/"/>
+ <extensionObject
xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension"
modificationStamp="1273664549000"/>
+ </extensions>
+</extensionmodel:ExtensionMap>
Added: trunk/samples/quickstart/say_hello/bpelContent/SayHelloArtifacts.wsdl
===================================================================
--- trunk/samples/quickstart/say_hello/bpelContent/SayHelloArtifacts.wsdl
(rev 0)
+++ trunk/samples/quickstart/say_hello/bpelContent/SayHelloArtifacts.wsdl 2010-05-12
14:25:59 UTC (rev 653)
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<definitions name="SayHello"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ TYPE DEFINITION - List of types participating in this BPEL process
+ The BPEL Designer will generate default request and response types
+ but you can define or import any XML Schema type and use them as part
+ of the message types.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <types>
+ <schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://www.w3.org/2001/XMLSchema">
+
+ <element name="SayHelloRequest">
+ <complexType>
+ <sequence>
+ <element name="input" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+
+ <element name="SayHelloResponse">
+ <complexType>
+ <sequence>
+ <element name="result" type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </types>
+
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ MESSAGE TYPE DEFINITION - Definition of the message types used as
+ part of the port type defintions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <message name="SayHelloRequestMessage">
+ <part name="parameters"
element="tns:SayHelloRequest"/>
+ </message>
+ <message name="SayHelloResponseMessage">
+ <part name="parameters"
element="tns:SayHelloResponse"/>
+ </message>
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ PORT TYPE DEFINITION - A port type groups a set of operations into
+ a logical service unit.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+
+ <!-- portType implemented by the HelloWorld BPEL process -->
+ <portType name="SayHello">
+ <operation name="sayHello">
+ <input message="tns:SayHelloRequestMessage" />
+ <output message="tns:SayHelloResponseMessage"/>
+ </operation>
+ </portType>
+
+
+<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ PARTNER LINK TYPE DEFINITION
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
+ <plnk:partnerLinkType name="SayHello">
+ <plnk:role name="SayHelloProvider"
portType="tns:SayHello"/>
+ </plnk:partnerLinkType>
+
+ <binding name="SayHelloBinding" type="tns:SayHello">
+ <soap:binding style="document"
+
transport="http://schemas.xmlsoap.org/soap/http" />
+ <operation name="sayHello">
+ <soap:operation
+
soapAction="http://www.jboss.org/bpel/examples/sayHello" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="SayHelloService">
+ <port name="SayHelloPort" binding="tns:SayHelloBinding">
+ <soap:address location="http://localhost:8080/SayHelloProcess" />
+ </port>
+ </service>
+</definitions>
Added: trunk/samples/quickstart/say_hello/bpelContent/bpel-deploy.xml
===================================================================
--- trunk/samples/quickstart/say_hello/bpelContent/bpel-deploy.xml
(rev 0)
+++ trunk/samples/quickstart/say_hello/bpelContent/bpel-deploy.xml 2010-05-12 14:25:59 UTC
(rev 653)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:examples="http://www.jboss.org/bpel/examples">
+ <process name="examples:HelloWorld">
+ <active>true</active>
+ <retired>false</retired>
+ <process-events generate="all"/>
+ <provide partnerLink="client">
+ <service name="examples:SayHelloService"
port="SayHelloPort"/>
+ </provide>
+ </process>
+</deploy>
\ No newline at end of file
Added: trunk/samples/quickstart/say_hello/build.xml
===================================================================
--- trunk/samples/quickstart/say_hello/build.xml (rev 0)
+++ trunk/samples/quickstart/say_hello/build.xml 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,44 @@
+<project name="say_hello_process" 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="sayhello">
+ <echo>Send test message to: ${ant.project.name}</echo>
+ <java
classname="org.apache.ode.tools.sendsoap.cline.HttpSoapSender">
+ <arg value="http://localhost:8080/SayHelloProcess"/>
+ <arg value="messages/sayHello_request.xml"/>
+ <classpath>
+ <fileset dir="../../common/lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+
+</project>
Added: trunk/samples/quickstart/say_hello/messages/sayHello_request.xml
===================================================================
--- trunk/samples/quickstart/say_hello/messages/sayHello_request.xml
(rev 0)
+++ trunk/samples/quickstart/say_hello/messages/sayHello_request.xml 2010-05-12 14:25:59
UTC (rev 653)
@@ -0,0 +1,8 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:SayHelloRequest>
+ <exam:input>Dolly</exam:input>
+ </exam:SayHelloRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
Added: trunk/samples/quickstart/say_hello/readme.txt
===================================================================
--- trunk/samples/quickstart/say_hello/readme.txt (rev 0)
+++ trunk/samples/quickstart/say_hello/readme.txt 2010-05-12 14:25:59 UTC (rev 653)
@@ -0,0 +1,28 @@
+Quickstart Examples - Level 1 - Say Hello
+============================================
+
+This example is simmilar to Hello World examples but uses input data
+to influence the output.
+
+The user calls the sayHello operation and provides his name. The process
+replys with 'Hello <name>'.
+
+To deploy the example, open a command line window in the example's folder,
+and simply type 'ant deploy'. To undeploy, use the command 'ant
undeploy'.
+
+To test the example, for example using the SOAPUI client, an example
+'sayHello' message can be found in the messages sub-folder, with the
+relevant WSDL being located in the bpel sub-folder.
+
+Alternatively, use the 'ant sayhello' command (from a command line window)
+to send the message.
+
+NOTE: The "ant deploy" command will by default deploy version 1 of the
+example to the server. If you wish to change the example, and redeploy,
+then you will need to update the version number in the build.xml, or
+override the version property, e.g. "ant -Dversion=2 deploy" (and similarly
+when undeploying "ant -Dversion=2 undeploy").
+
+Some handy URLs:
+http://localhost:8080/bpel-console is the BPEL console
+http://localhost:8080/SayHelloProcess?wsdl is the URL to the BPEL process' WSDL