blob: d01b5fc2e8ae287b4db1ccb0ac59a6687aadee36 [file]
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<bpws:process xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://sample.bpel.org/bpel/sampleArtifacts" xmlns:tns="http://sample.bpel.org/bpel/sample" exitOnStandardFault="yes" name="OnEventCorrelation000" suppressJoinFailure="yes" targetNamespace="http://sample.bpel.org/bpel/sample" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="OnEventCorrelation.wsdl" namespace="http://sample.bpel.org/bpel/sample"/>
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="OnEventCorrelationArtifacts.wsdl" namespace="http://sample.bpel.org/bpel/sampleArtifacts"/>
<bpws:partnerLinks>
<bpws:partnerLink myRole="OnEventCorrelationProvider" partnerRole="OnEventCorrelationProvider" name="client" partnerLinkType="tns:OnEventCorrelation"/>
</bpws:partnerLinks>
<bpws:variables>
<bpws:variable messageType="tns:OnEventCorrelationMessage" name="input"/>
<bpws:variable messageType="tns:OnEventCorrelationMessage" name="output"/>
<bpws:variable type="xsd:string" name="s"/>
</bpws:variables>
<bpws:correlationSets>
<bpws:correlationSet name="CorrelationSet" properties="ns:input"/>
</bpws:correlationSets>
<bpws:sequence name="main">
<bpws:receive createInstance="yes" operation="opInOut" partnerLink="client" portType="tns:OnEventCorrelation" variable="input" messageExchange="mex1">
<bpws:correlations>
<bpws:correlation initiate="yes" set="CorrelationSet"/>
</bpws:correlations>
</bpws:receive>
<bpws:assign>
<bpws:copy>
<bpws:from>concat($input.payload, '-b')</bpws:from>
<bpws:to>$input.payload</bpws:to>
</bpws:copy>
<bpws:copy>
<bpws:from>'tIn1'</bpws:from>
<bpws:to>$input.data</bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:invoke partnerLink="client" operation="opIn" inputVariable="input"/>
<bpws:assign>
<bpws:copy>
<bpws:from>'tIn2'</bpws:from>
<bpws:to>$input.data</bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:wait><bpws:for>'PT2S'</bpws:for></bpws:wait>
<bpws:invoke partnerLink="client" operation="opIn" inputVariable="input"/>
<bpws:assign>
<bpws:copy>
<bpws:from>'tInOut3'</bpws:from>
<bpws:to>$input.data</bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:wait><bpws:for>'PT2S'</bpws:for></bpws:wait>
<bpws:invoke partnerLink="client" operation="opInOut" outputVariable="output" inputVariable="input"/>
<bpws:assign>
<bpws:copy>
<bpws:from>$output.data</bpws:from>
<bpws:to>$s</bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:assign>
<bpws:copy>
<bpws:from>'tInOut4'</bpws:from>
<bpws:to>$input.data</bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:wait><bpws:for>'PT2S'</bpws:for></bpws:wait>
<bpws:invoke partnerLink="client" operation="opInOut" outputVariable="output" inputVariable="input"/>
<bpws:assign>
<bpws:copy>
<bpws:from>concat($s, $output.data)</bpws:from>
<bpws:to>$s</bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:assign>
<bpws:copy>
<bpws:from>concat('result-', $s)</bpws:from>
<bpws:to>$output.data</bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:reply operation="opInOut" partnerLink="client" variable="output" messageExchange="mex1"/>
</bpws:sequence>
</bpws:process>