| <?xml version="1.0" encoding="UTF-8"?> |
| <bpws:process exitOnStandardFault="yes" name="OnEventCorrelation" |
| suppressJoinFailure="yes" |
| targetNamespace="http://sample.bpel.org/bpel/sample" |
| xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable" |
| xmlns:ns="http://sample.bpel.org/bpel/sampleArtifacts" xmlns:tns="http://sample.bpel.org/bpel/sample"> |
| <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:import importType="http://www.w3.org/2001/XMLSchema" |
| location="OnEventCorrelation.xsd" namespace="http://sample.bpel.org/bpel/sample"/> |
| <bpws:partnerLinks> |
| <bpws:partnerLink myRole="OnEventCorrelationProvider" |
| name="client" partnerLinkType="tns:OnEventCorrelation"/> |
| </bpws:partnerLinks> |
| <bpws:variables> |
| <bpws:variable |
| messageType="tns:OnEventCorrelationRequestMessage" name="input"/> |
| </bpws:variables> |
| <bpws:correlationSets> |
| <bpws:correlationSet name="CorrelationSet" properties="ns:input"/> |
| </bpws:correlationSets> |
| <bpws:sequence name="main"> |
| <bpws:receive createInstance="yes" operation="initiate" |
| partnerLink="client" portType="tns:OnEventCorrelation" variable="input"> |
| <bpws:correlations> |
| <bpws:correlation initiate="yes" set="CorrelationSet"/> |
| </bpws:correlations> |
| </bpws:receive> |
| <bpws:scope> |
| <bpws:faultHandlers> |
| <bpws:catch faultName="Repeated"> |
| <bpws:empty/> |
| </bpws:catch> |
| </bpws:faultHandlers> |
| <bpws:scope> |
| <bpws:eventHandlers> |
| <bpws:onEvent operation="initiate" |
| partnerLink="client" |
| portType="tns:OnEventCorrelation" variable="input" messageType="tns:OnEventCorrelationRequestMessage"> |
| <bpws:correlations> |
| <bpws:correlation initiate="no" set="CorrelationSet"/> |
| </bpws:correlations> |
| <bpws:scope> |
| <bpws:sequence> |
| <bpws:throw faultName="Repeated"/> |
| </bpws:sequence> |
| </bpws:scope> |
| </bpws:onEvent> |
| </bpws:eventHandlers> |
| <bpws:wait> |
| <bpws:for><![CDATA['PT4S']]></bpws:for> |
| </bpws:wait> |
| </bpws:scope> |
| </bpws:scope> |
| <bpws:receive operation="initiate" partnerLink="client" |
| portType="tns:OnEventCorrelation" variable="input"> |
| <bpws:correlations> |
| <bpws:correlation initiate="no" set="CorrelationSet"/> |
| </bpws:correlations> |
| </bpws:receive> |
| </bpws:sequence> |
| </bpws:process> |