summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/implementation-bpel-runtime/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/modules/implementation-bpel-runtime/src')
-rw-r--r--java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel29
1 files changed, 22 insertions, 7 deletions
diff --git a/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel b/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel
index 8cf91adc2c..1799a5ebd3 100644
--- a/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel
+++ b/java/sca/modules/implementation-bpel-runtime/src/test/resources/helloworld/helloworld.bpel
@@ -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>