| <?xml version="1.0" encoding="UTF-8"?> |
| <bpel:process name="ExtVar-GenKey" targetNamespace="http://example.com/process/ExtVar/GenKey" |
| xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" |
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop" |
| xmlns:pnlk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" |
| xmlns:this="http://example.com/process/ExtVar/GenKey" |
| xmlns:xvar="http://ode.apache.org/externalVariables" |
| queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" |
| expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" > |
| |
| <bpel:import namespace="http://example.com/process/ExtVar/GenKey" location="ExtVar-GenKey.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> |
| |
| <bpel:partnerLinks> |
| <bpel:partnerLink name="client" partnerLinkType="this:TestPLT" myRole="process"/> |
| </bpel:partnerLinks> |
| |
| <bpel:variables> |
| <bpel:variable name="StartRequest" messageType="this:StartRequest"/> |
| <bpel:variable name="keys" element="this:keys"/> |
| <bpel:variable name="extvar" element="this:extvar" xvar:id="extvar" xvar:relates-to="keys"/> |
| </bpel:variables> |
| |
| <bpel:sequence> |
| <bpel:receive partnerLink="client" |
| portType="this:Test" |
| operation="Start" |
| variable="StartRequest" |
| createInstance="yes" /> |
| <bpel:assign name="init-variables-GenKey"> |
| <bpel:copy> |
| <bpel:from> |
| <bpel:literal><this:keys><this:keyString/></this:keys></bpel:literal> |
| </bpel:from> |
| <bpel:to>$keys</bpel:to> |
| </bpel:copy> |
| </bpel:assign> |
| |
| <bpel:assign> |
| <bpel:copy> |
| <bpel:from>'foo'</bpel:from> |
| <bpel:to>$extvar/this:stringCol</bpel:to> |
| </bpel:copy> |
| </bpel:assign> |
| |
| <!-- Build response --> |
| <bpel:assign> |
| <bpel:copy> |
| <bpel:from> |
| <bpel:literal><this:StartRequest><this:keyString/><this:stringCol/></this:StartRequest></bpel:literal> |
| </bpel:from> |
| <bpel:to>$StartRequest.body</bpel:to> |
| </bpel:copy> |
| <bpel:copy> |
| <bpel:from>$keys/this:keyString</bpel:from> |
| <bpel:to>$StartRequest.body/this:keyString</bpel:to> |
| </bpel:copy> |
| <bpel:copy> |
| <bpel:from>$extvar/this:stringCol</bpel:from> |
| <bpel:to>$StartRequest.body/this:stringCol</bpel:to> |
| </bpel:copy> |
| </bpel:assign> |
| |
| <bpel:reply partnerLink="client" |
| portType="this:Test" |
| operation="Start" |
| variable="StartRequest" /> |
| </bpel:sequence> |
| </bpel:process> |