You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2009/07/02 01:58:41 UTC

svn commit: r790425 - /tuscany/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel

Author: rfeng
Date: Wed Jul  1 23:58:41 2009
New Revision: 790425

URL: http://svn.apache.org/viewvc?rev=790425&view=rev
Log:
Update the bpel

Modified:
    tuscany/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel

Modified: tuscany/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel?rev=790425&r1=790424&r2=790425&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel (original)
+++ tuscany/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel Wed Jul  1 23:58:41 2009
@@ -20,7 +20,7 @@
     targetNamespace="http://tuscany.apache.org/implementation/bpel/example/helloworld"
     xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
     xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
-    xmlns:tns="http://tuscany.apache.org/implementation/bpel/example/helloworld"    
+    xmlns:tns="http://tuscany.apache.org/implementation/bpel/example/helloworld"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:test="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"
     queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
@@ -32,7 +32,7 @@
    <partnerLinks>
       <partnerLink name="helloPartnerLink" partnerLinkType="test:HelloPartnerLinkType" myRole="me" />
    </partnerLinks>
-    
+
    <variables>
      <variable name="helloMessage" messageType="test:HelloMessage"/>
      <variable name="tmpVar" type="xsd:string"/>
@@ -47,19 +47,34 @@
           variable="helloMessage"
           createInstance="yes"/>
 
+   <variables>
+     <variable name="myVar" messageType="test:HelloMessage"/>
+     <variable name="tmpVar" type="xsd:string"/>
+   </variables>
+
+   <sequence>
+       <receive
+          name="start"
+          partnerLink="helloPartnerLink"
+          portType="test:HelloPortType"
+          operation="hello"
+          variable="myVar"
+          createInstance="yes"/>
+
       <assign name="assign1">
           <copy>
-              <from variable="helloMessage" part="TestPart"/>
+              <from>concat($myVar.TestPart/test:message/text(), ' World')</from>
               <to variable="tmpVar"/>
           </copy>
           <copy>
-              <from>concat($tmpVar,' World')</from>
-              <to variable="helloMessage" part="TestPart"/>
+              <from>$tmpVar</from>
+              <to>$myVar.TestPart/test:message</to>
           </copy>
       </assign>
-       <reply name="end"  
+
+       <reply name="end"
               partnerLink="helloPartnerLink"
-              portType="test:HelloPortType" 
+              portType="test:HelloPortType"
               operation="hello"
               variable="helloMessage"/>
    </sequence>