source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Adapters/General/AdapterBPEL/src/AdapterDocQuery.bpel@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 8.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<process
3 name="AdapterDocQuery"
4 targetNamespace="urn:gov:hhs:fha:nhinc:adapters:general:adapterbpel:adapterdocquery"
5 xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
6 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
7 xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
8 xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
9 xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
10 xmlns:tns="urn:gov:hhs:fha:nhinc:adapters:general:adapterbpel:adapterdocquery"
11 xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0" xmlns:ns0="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0">
12 <import namespace="urn:gov:hhs:fha:nhinc:adapterdocquery" location="Interfaces/wsdl/AdapterDocQuery.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
13 <import namespace="http://enterprise.netbeans.org/bpel/AdapterComponentDocRegistryWrapper" location="AdapterComponentDocRegistryWrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
14 <import namespace="urn:ihe:iti:xds-b:2007" location="Interfaces/wsdl/AdapterComponentDocRegistry.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
15 <partnerLinks>
16 <partnerLink name="AdapterComponentDocQueryPL" xmlns:tns="http://enterprise.netbeans.org/bpel/AdapterComponentDocRegistryWrapper" partnerLinkType="tns:DocumentRegistry_LinkType" partnerRole="DocumentRegistry_Role"/>
17 <partnerLink name="AdapterDocQueryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" partnerLinkType="tns:AdapterDocQuery" myRole="AdapterDocQueryPortTypeRole"/>
18 </partnerLinks>
19 <variables>
20 <variable name="RespondingGateway_CrossGatewayQueryIn" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" messageType="tns:RespondingGateway_CrossGatewayQueryRequestMessage"/>
21 <variable name="RespondingGateway_CrossGatewayQueryOut" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" messageType="tns:RespondingGateway_CrossGatewayQueryResponseMessage"/>
22 <variable name="DocumentRegistry_RegistryStoredQueryIn" xmlns:ihe="urn:ihe:iti:xds-b:2007" messageType="ihe:RegistryStoredQuery_Message"/>
23 <variable name="DocumentRegistry_RegistryStoredQueryOut" xmlns:ihe="urn:ihe:iti:xds-b:2007" messageType="ihe:RegistryStoredQueryResponse_Message"/>
24 </variables>
25 <sequence>
26 <receive name="ReceiveDocQuery" createInstance="yes" partnerLink="AdapterDocQueryPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" portType="tns:AdapterDocQueryPortType" variable="RespondingGateway_CrossGatewayQueryIn"/>
27 <scope name="AdapterDocQueryScope">
28 <faultHandlers>
29 <catch faultName="sxeh:systemFault" faultVariable="systemFaultVar" faultMessageType="sxeh:faultMessage">
30 <sequence name="Sequence1">
31 <assign name="AssignErrors">
32 <sxt:trace>
33 <sxt:log level="info" location="onStart">
34 <from>'AdapterDocQuery.bpel - System fault encountered processing an AdhocQuery request. Fault details follow...'</from>
35 </sxt:log>
36 <sxt:log level="warning" location="onStart">
37 <from variable="systemFaultVar"/>
38 </sxt:log>
39 </sxt:trace>
40 <copy>
41 <from>'urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure'</from>
42 <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/@status</to>
43 </copy>
44 <copy>
45 <from>0</from>
46 <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/@totalResultCount</to>
47 </copy>
48 <copy>
49 <from>'XDSRegistryError'</from>
50 <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/ns0:RegistryErrorList/ns0:RegistryError/@errorCode</to>
51 </copy>
52 <copy>
53 <from>'Error'</from>
54 <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/ns0:RegistryErrorList/ns0:RegistryError/@severity</to>
55 </copy>
56 <copy>
57 <from>'Error calling document registry'</from>
58 <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/ns0:RegistryErrorList/ns0:RegistryError/@codeContext</to>
59 </copy>
60 </assign>
61 <reply name="ReplyFromFault" partnerLink="AdapterDocQueryPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" portType="tns:AdapterDocQueryPortType" variable="RespondingGateway_CrossGatewayQueryOut"/>
62 <exit name="ExitAfterFault"/>
63 </sequence>
64 </catch>
65 </faultHandlers>
66 <sequence name="AdapterDocQuerySeq">
67 <assign name="AssignRegistryQueryInput">
68 <sxt:trace>
69 <sxt:log level="info" location="onStart">
70 <from variable="RespondingGateway_CrossGatewayQueryIn"/>
71 </sxt:log>
72 <sxt:log level="warning" location="onStart">
73 <from>'Received document query...'</from>
74 </sxt:log>
75 </sxt:trace>
76 <copy>
77 <from>$RespondingGateway_CrossGatewayQueryIn.RespondingGateway_CrossGatewayQueryRequest/query:AdhocQueryRequest</from>
78 <to variable="DocumentRegistry_RegistryStoredQueryIn" part="body"/>
79 </copy>
80 </assign>
81 <invoke name="InvokeRegistryStoredQuery" partnerLink="AdapterComponentDocQueryPL" operation="DocumentRegistry_RegistryStoredQuery" xmlns:ihe="urn:ihe:iti:xds-b:2007" portType="ihe:DocumentRegistry_PortType" inputVariable="DocumentRegistry_RegistryStoredQueryIn" outputVariable="DocumentRegistry_RegistryStoredQueryOut"/>
82 <assign name="AssignRegistryStoredQueryOutput">
83 <copy>
84 <from variable="DocumentRegistry_RegistryStoredQueryOut" part="body"/>
85 <to variable="RespondingGateway_CrossGatewayQueryOut" part="RespondingGateway_CrossGatewayQueryResponse"/>
86 </copy>
87 <copy>
88 <from>'urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success'</from>
89 <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/@status</to>
90 </copy>
91 </assign>
92 <reply name="ReplyDocQuery" partnerLink="AdapterDocQueryPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" portType="tns:AdapterDocQueryPortType" variable="RespondingGateway_CrossGatewayQueryOut">
93 <sxt:trace>
94 <sxt:log level="info" location="onStart">
95 <from>'End AdapterDocQuery - Response Message is:'</from>
96 </sxt:log>
97 <sxt:log level="info" location="onStart">
98 <from variable="RespondingGateway_CrossGatewayQueryOut"/>
99 </sxt:log>
100 </sxt:trace>
101 </reply>
102 </sequence>
103 </scope>
104 </sequence>
105</process>
Note: See TracBrowser for help on using the repository browser.