| <!-- |
| ~ 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. |
| --> |
| <process xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://docs.oasis-open.org/wsbpel/2.0/process/executable ../../../../../../../bpel-schemas/src/main/resources/wsbpel_executable.xsd" |
| xmlns:tns="http://ode/bpel/unit-test/TestInsertMissingData" |
| xmlns:prb="http://ode/bpel/unit-test/ProbeService.wsdl" |
| xmlns:types="http://ode/bpel/unit-test/TestInsertMissingData.wsdl.types" |
| xmlns:foo="http://ode/bpel/unit-test/TestInsertMissingData.wsdl.types" |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| xmlns:wns="http://ode/bpel/unit-test/TestInsertMissingData.wsdl" |
| xmlns:ode="http://www.apache.org/ode/type/extension" |
| xmlns:fn="http://www.w3.org/2005/xpath-functions" |
| xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" |
| targetNamespace="http://ode/bpel/unit-test/TestInsertMissingData" |
| name="TestInsertMissingData" |
| queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" |
| expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" |
| suppressJoinFailure="yes"> |
| |
| <import location="TestInsertMissingData.wsdl" |
| namespace="http://ode/bpel/unit-test/TestInsertMissingData.wsdl" |
| importType="http://schemas.xmlsoap.org/wsdl/" /> |
| <import location="../ProbeService/probeService.wsdl" |
| namespace="http://ode/bpel/unit-test/ProbeService.wsdl" |
| importType="http://schemas.xmlsoap.org/wsdl/"/> |
| |
| <partnerLinks> |
| <partnerLink name="request" partnerLinkType="wns:TestInsertMissingDataRequest" myRole="TestInsertMissingDataService"/> |
| </partnerLinks> |
| <variables> |
| <variable name="request" messageType="wns:requestMessage"/> |
| <variable name="testType" element="types:aTestMessage"/> |
| <variable name="reply" messageType="wns:replyMessage"/> |
| </variables> |
| <sequence> |
| <receive name="receive1" partnerLink="request" portType="wns:TestInsertMissingDataPT" operation="request" variable="request" createInstance="yes"/> |
| |
| <!-- test cases for ignore missing to data --> |
| <assign name="assign1"> |
| <copy insertMissingToData="yes"> |
| <from>$request.requestMessageData/typeIndicators/types:indicatorTwo</from> |
| <to>$testType/@xsi:nil</to> |
| </copy> |
| <copy insertMissingToData="yes"> |
| <from>$request.requestMessageData/typeIndicators/types:indicatorTwo</from> |
| <to>$testType/typeIndicators/types:indicatorTwo</to> |
| </copy> |
| <copy> |
| <from>ode:delete($testType/typeIndicators)</from> |
| <to>$testType</to> |
| </copy> |
| <copy insertMissingToData="yes"> |
| <from>$request.requestMessageData/typeIndicators/types:indicatorTwo</from> |
| <to>$testType/child::typeIndicators/types:indicatorTwo</to> |
| </copy> |
| <copy> |
| <from>ode:delete($testType/typeIndicators)</from> |
| <to>$testType</to> |
| </copy> |
| <copy insertMissingToData="yes"> |
| <from>$request.requestMessageData/typeIndicators/types:indicatorTwo</from> |
| <to>$testType/child::typeIndicators/child::types:indicatorTwo</to> |
| </copy> |
| <copy> |
| <from>ode:delete($testType/typeIndicators)</from> |
| <to>$testType</to> |
| </copy> |
| <copy insertMissingToData="yes"> |
| <from>$request.requestMessageData/typeIndicators/types:indicatorTwo</from> |
| <to variable="testType">/typeIndicators/child::types:indicatorTwo</to> |
| </copy> |
| </assign> |
| |
| <assign name="assign3"> |
| <copy> |
| <from>$request.requestMessageData/requestID</from> |
| <to variable="reply" part="replyID"/> |
| </copy> |
| <copy> |
| <from> |
| <literal><![CDATA[pass]]></literal> |
| </from> |
| <to>$reply.replyText</to> |
| </copy> |
| </assign> |
| |
| <scope> |
| <faultHandlers> |
| <catchAll> |
| <empty/> |
| </catchAll> |
| </faultHandlers> |
| <assign name="assign4"> |
| <copy insertMissingToData="yes"> |
| <from>$request.requestMessageData/typeIndicators/types:indicatorTwo</from> |
| <to>$testType/child::typeIndicators[15]</to> |
| </copy> |
| </assign> |
| </scope> |
| |
| <reply name="reply" partnerLink="request" portType="wns:TestInsertMissingDataPT" operation="request" variable="reply"/> |
| </sequence> |
| </process> |