1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <process
|
---|
3 | name="NhinDocQuery"
|
---|
4 | targetNamespace="urn:gov:hhs:fha:nhinc:gateway:nhinbpel:nhindocquery"
|
---|
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:gateway:nhinbpel:nhindocquery"
|
---|
11 | xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0"
|
---|
12 | xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
|
---|
13 | xmlns:propacc="urn:gov:hhs:fha:nhinc:common:propertyaccess"
|
---|
14 | xmlns:nccommon="urn:gov:hhs:fha:nhinc:common:nhinccommon"
|
---|
15 | xmlns:ncadapter="urn:gov:hhs:fha:nhinc:common:nhinccommonadapter"
|
---|
16 | xmlns:conninfo="urn:gov:hhs:fha:nhinc:common:connectionmanagerinfo"
|
---|
17 | xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
|
---|
18 | xmlns:nhinccommonintorch="urn:gov:hhs:fha:nhinc:common:nhinccommoninternalorch"
|
---|
19 | xmlns:nhincdocquery="urn:gov:hhs:fha:nhinc:nhincdocquery"
|
---|
20 | xmlns:auditlog="urn:gov:hhs:fha:nhinc:common:auditlog" xmlns:ihe="urn:ihe:iti:xds-b:2007">
|
---|
21 | <import namespace="urn:gov:hhs:fha:nhinc:adapterdocquery" location="Interfaces/wsdl/AdapterDocQuery.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
22 | <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" location="Interfaces/wsdl/NhincComponentPropAccessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
23 | <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" location="Interfaces/wsdl/NhincComponentConnectionManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
24 | <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" location="Interfaces/wsdl/NhincComponentInternalDocQueryOrch.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
25 | <import namespace="urn:gov:hhs:fha:nhinc:nhincdocquery" location="Interfaces/wsdl/NhincDocQuery.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
26 | <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" location="Interfaces/wsdl/NhincComponentInternalAuditRepository.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
27 | <partnerLinks>
|
---|
28 | <partnerLink name="PropAccessorPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" partnerLinkType="tns:NhincComponentPropAccessor" partnerRole="NhincComponentPropAccessorPortTypeRole"/>
|
---|
29 | <partnerLink name="ConnectionMgrPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" partnerLinkType="tns:NhincComponentConnectionManager" partnerRole="NhincComponentConnectionManagerPortTypeRole"/>
|
---|
30 | <partnerLink name="AdapterDocQueryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" partnerLinkType="tns:AdapterDocQuery" partnerRole="AdapterDocQueryPortTypeRole"/>
|
---|
31 | <partnerLink name="NhincComponentInternalDocQueryOrchPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" partnerLinkType="tns:NhincComponentInternalDocQueryOrch" partnerRole="NhincComponentInternalDocQueryOrchPortTypeRole"/>
|
---|
32 | <partnerLink name="NhincDocQueryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincdocquery" partnerLinkType="tns:NhincDocQuery" myRole="NhincDocQueryPortTypeRole"/>
|
---|
33 | <partnerLink name="AuditLogRepositoryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" partnerLinkType="tns:NhincComponentInternalAuditRepository" partnerRole="NhincComponentInternalAuditRepositoryPortTypeRole"/>
|
---|
34 | </partnerLinks>
|
---|
35 | <variables>
|
---|
36 | <variable name="LogAdhocQueryOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
|
---|
37 | <variable name="LogAdhocQueryIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogAdhocQueryRequestMessage"/>
|
---|
38 | <variable name="Nhinc_CrossGatewayQueryIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincdocquery" messageType="tns:RespondingGateway_CrossGatewayQueryRequest"/>
|
---|
39 | <variable name="Nhinc_CrossGatewayQueryOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincdocquery" messageType="tns:RespondingGateway_CrossGatewayQueryResponse"/>
|
---|
40 | </variables>
|
---|
41 | <sequence>
|
---|
42 | <receive name="ReceiveNhinDocQuery" createInstance="yes" partnerLink="NhincDocQueryPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:ihe="urn:ihe:iti:xds-b:2007" portType="tns:NhincDocQueryPortType" variable="Nhinc_CrossGatewayQueryIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincdocquery"/>
|
---|
43 | <assign name="AssignAuditReposDQReq">
|
---|
44 | <sxt:trace>
|
---|
45 | <sxt:log level="info" location="onStart">
|
---|
46 | <from>'Begin NhinDocQuery - Input Message is:'</from>
|
---|
47 | </sxt:log>
|
---|
48 | <sxt:log level="info" location="onStart">
|
---|
49 | <from variable="Nhinc_CrossGatewayQueryIn"/>
|
---|
50 | </sxt:log>
|
---|
51 | </sxt:trace>
|
---|
52 | <copy>
|
---|
53 | <from>$Nhinc_CrossGatewayQueryIn.CrossGatewayQueryRequest/nhinccommonintorch:assertion</from>
|
---|
54 | <to>$LogAdhocQueryIn.LogAdhocQueryRequest/auditlog:message/auditlog:assertion</to>
|
---|
55 | </copy>
|
---|
56 | <copy>
|
---|
57 | <from>$Nhinc_CrossGatewayQueryIn.CrossGatewayQueryRequest/query:AdhocQueryRequest</from>
|
---|
58 | <to>$LogAdhocQueryIn.LogAdhocQueryRequest/auditlog:message/query:AdhocQueryRequest</to>
|
---|
59 | </copy>
|
---|
60 | <copy>
|
---|
61 | <from>'Inbound'</from>
|
---|
62 | <to>$LogAdhocQueryIn.LogAdhocQueryRequest/auditlog:direction</to>
|
---|
63 | </copy>
|
---|
64 | <copy>
|
---|
65 | <from>'Nhin'</from>
|
---|
66 | <to>$LogAdhocQueryIn.LogAdhocQueryRequest/auditlog:interface</to>
|
---|
67 | </copy>
|
---|
68 | </assign>
|
---|
69 | <invoke name="InvokeAuditReposDQReq" partnerLink="AuditLogRepositoryPL" operation="LogAdhocQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogAdhocQueryIn" outputVariable="LogAdhocQueryOut"/>
|
---|
70 | <scope name="NhinDocQueryScope">
|
---|
71 | <variables>
|
---|
72 | <variable name="LogAdhocQueryResultOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
|
---|
73 | <variable name="LogAdhocQueryResultIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogAdhocQueryResultRequestMessage"/>
|
---|
74 | <variable name="InternalDocQueryOrchOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" messageType="tns:RespondingGateway_CrossGatewayQueryResponseMessage"/>
|
---|
75 | <variable name="InternalDocQueryOrchIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" messageType="tns:RespondingGateway_CrossGatewayQueryRequestMessage"/>
|
---|
76 | <variable name="GetConnectionInfoEndpointByServiceNameOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpointByServiceNameResponseMessage"/>
|
---|
77 | <variable name="GetConnectionInfoEndpointByServiceNameIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpointByServiceNameRequestMessage"/>
|
---|
78 | <variable name="Adapter_CrossGatewayQueryOut" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" messageType="tns:RespondingGateway_CrossGatewayQueryResponseMessage"/>
|
---|
79 | <variable name="Adapter_CrossGatewayQueryIn" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" messageType="tns:RespondingGateway_CrossGatewayQueryRequestMessage"/>
|
---|
80 | <variable name="GetPropertyOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" messageType="tns:GetPropertyResponseMessage"/>
|
---|
81 | <variable name="GetPropertyIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" messageType="tns:GetPropertyRequestMessage"/>
|
---|
82 | <variable name="DocQueryPassthrough" type="xsd:boolean"/>
|
---|
83 | <variable name="DocQueryEnabled" type="xsd:boolean"/>
|
---|
84 | </variables>
|
---|
85 | <faultHandlers>
|
---|
86 | <catch faultName="sxeh:systemFault" faultVariable="systemFaultVar" faultMessageType="sxeh:faultMessage">
|
---|
87 | <sequence name="SystemFaultSeq">
|
---|
88 | <assign name="AssignFaultInfo">
|
---|
89 | <sxt:trace>
|
---|
90 | <sxt:log level="info" location="onStart">
|
---|
91 | <bpel:from>'NhinDocQuery.bpel - System fault encountered processing an AdhocQuery request. Fault detail follows...'</bpel:from>
|
---|
92 | </sxt:log>
|
---|
93 | <sxt:log level="warning" location="onStart">
|
---|
94 | <bpel:from variable="systemFaultVar"/>
|
---|
95 | </sxt:log>
|
---|
96 | </sxt:trace>
|
---|
97 | <copy>
|
---|
98 | <from>'urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure'</from>
|
---|
99 | <to>$Nhinc_CrossGatewayQueryOut.CrossGatewayQueryResponse/@status</to>
|
---|
100 | </copy>
|
---|
101 | <copy>
|
---|
102 | <from>'Internal Document Query Processing'</from>
|
---|
103 | <to>$Nhinc_CrossGatewayQueryOut.CrossGatewayQueryResponse/rs:RegistryErrorList/rs:RegistryError/@codeContext</to>
|
---|
104 | </copy>
|
---|
105 | <copy>
|
---|
106 | <from>'XDSRegistryError'</from>
|
---|
107 | <to>$Nhinc_CrossGatewayQueryOut.CrossGatewayQueryResponse/rs:RegistryErrorList/rs:RegistryError/@errorCode</to>
|
---|
108 | </copy>
|
---|
109 | <copy>
|
---|
110 | <from>'Error'</from>
|
---|
111 | <to>$Nhinc_CrossGatewayQueryOut.CrossGatewayQueryResponse/rs:RegistryErrorList/rs:RegistryError/@severity</to>
|
---|
112 | </copy>
|
---|
113 | <copy>
|
---|
114 | <from>0</from>
|
---|
115 | <to>$Nhinc_CrossGatewayQueryOut.CrossGatewayQueryResponse/@totalResultCount</to>
|
---|
116 | </copy>
|
---|
117 | </assign>
|
---|
118 | <reply name="ReplyNhinDocQueryFault" partnerLink="NhincDocQueryPL" operation="RespondingGateway_CrossGatewayQuery" portType="nhincdocquery:NhincDocQueryPortType" variable="Nhinc_CrossGatewayQueryOut"/>
|
---|
119 | <exit name="ExitAfterFaultReturn"/>
|
---|
120 | </sequence>
|
---|
121 | </catch>
|
---|
122 | </faultHandlers>
|
---|
123 | <sequence name="NhinDocQuerySeq">
|
---|
124 | <assign name="AssignServiceDocQueryPropInput">
|
---|
125 | <sxt:trace>
|
---|
126 | <sxt:log level="warning" location="onStart">
|
---|
127 | <bpel:from>'### NhinDocQuery BPEL Message received...'</bpel:from>
|
---|
128 | </sxt:log>
|
---|
129 | <sxt:log level="info" location="onStart">
|
---|
130 | <bpel:from variable="Nhinc_CrossGatewayQueryIn"/>
|
---|
131 | </sxt:log>
|
---|
132 | </sxt:trace>
|
---|
133 | <copy>
|
---|
134 | <from>'gateway'</from>
|
---|
135 | <to>$GetPropertyIn.GetPropertyRequest/propacc:propertyFile</to>
|
---|
136 | </copy>
|
---|
137 | <copy>
|
---|
138 | <from>'serviceDocumentQuery'</from>
|
---|
139 | <to>$GetPropertyIn.GetPropertyRequest/propacc:propertyName</to>
|
---|
140 | </copy>
|
---|
141 | </assign>
|
---|
142 | <invoke name="InvokeDocQueryEnabledProp" partnerLink="PropAccessorPL" operation="GetProperty" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" portType="tns:NhincComponentPropAccessorPortType" inputVariable="GetPropertyIn" outputVariable="GetPropertyOut"/>
|
---|
143 | <assign name="AssignProcessFlag">
|
---|
144 | <copy>
|
---|
145 | <from>'true' = $GetPropertyOut.GetPropertyResponse/propacc:propertyValue</from>
|
---|
146 | <to variable="DocQueryEnabled"/>
|
---|
147 | </copy>
|
---|
148 | </assign>
|
---|
149 | <if name="IfDocQueryEnabled">
|
---|
150 | <condition>$DocQueryEnabled</condition>
|
---|
151 | <sequence name="DocQueryEnabledSeq">
|
---|
152 | <assign name="AssignDocQueryPassthroughPropInput">
|
---|
153 | <copy>
|
---|
154 | <from>'gateway'</from>
|
---|
155 | <to>$GetPropertyIn.GetPropertyRequest/propacc:propertyFile</to>
|
---|
156 | </copy>
|
---|
157 | <copy>
|
---|
158 | <from>'documentQueryPassthrough'</from>
|
---|
159 | <to>$GetPropertyIn.GetPropertyRequest/propacc:propertyName</to>
|
---|
160 | </copy>
|
---|
161 | </assign>
|
---|
162 | <invoke name="InvokeCheckDocQueryPassthrough" partnerLink="PropAccessorPL" operation="GetProperty" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" portType="tns:NhincComponentPropAccessorPortType" inputVariable="GetPropertyIn" outputVariable="GetPropertyOut"/>
|
---|
163 | <assign name="AssignDocQueryPassthroughFlag">
|
---|
164 | <copy>
|
---|
165 | <from>'true' = $GetPropertyOut.GetPropertyResponse/propacc:propertyValue</from>
|
---|
166 | <to variable="DocQueryPassthrough"/>
|
---|
167 | </copy>
|
---|
168 | </assign>
|
---|
169 | <if name="IfPassthrough">
|
---|
170 | <condition>$DocQueryPassthrough</condition>
|
---|
171 | <sequence name="PassthroughSeq">
|
---|
172 | <assign name="AssignGetHomeCommunityInput">
|
---|
173 | <sxt:trace>
|
---|
174 | <sxt:log level="info" location="onStart">
|
---|
175 | <bpel:from>'Passthrough mode was enabled'</bpel:from>
|
---|
176 | </sxt:log>
|
---|
177 | </sxt:trace>
|
---|
178 | <copy>
|
---|
179 | <from>'gateway'</from>
|
---|
180 | <to>$GetPropertyIn.GetPropertyRequest/propacc:propertyFile</to>
|
---|
181 | </copy>
|
---|
182 | <copy>
|
---|
183 | <from>'localHomeCommunityId'</from>
|
---|
184 | <to>$GetPropertyIn.GetPropertyRequest/propacc:propertyName</to>
|
---|
185 | </copy>
|
---|
186 | </assign>
|
---|
187 | <invoke name="InvokeGetHomeCommunityId" partnerLink="PropAccessorPL" operation="GetProperty" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" portType="tns:NhincComponentPropAccessorPortType" inputVariable="GetPropertyIn" outputVariable="GetPropertyOut"/>
|
---|
188 | <assign name="AssignConnectionLookupInput">
|
---|
189 | <copy>
|
---|
190 | <from>'adapterdocquerypassthrough'</from>
|
---|
191 | <to>$GetConnectionInfoEndpointByServiceNameIn.GetConnectionInfoEndpointByServiceNameRequest/conninfo:homeCommunityWithServiceName/conninfo:serviceName</to>
|
---|
192 | </copy>
|
---|
193 | <copy>
|
---|
194 | <from>$GetPropertyOut.GetPropertyResponse/propacc:propertyValue</from>
|
---|
195 | <to>$GetConnectionInfoEndpointByServiceNameIn.GetConnectionInfoEndpointByServiceNameRequest/conninfo:homeCommunityWithServiceName/conninfo:homeCommunity/nccommon:homeCommunityId</to>
|
---|
196 | </copy>
|
---|
197 | </assign>
|
---|
198 | <invoke name="InvokePassthroughConnLookup" partnerLink="ConnectionMgrPL" operation="GetConnectionInfoEndpointByServiceName" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetConnectionInfoEndpointByServiceNameIn" outputVariable="GetConnectionInfoEndpointByServiceNameOut"/>
|
---|
199 | <assign name="AssignAdapterDocQueryInput">
|
---|
200 | <copy>
|
---|
201 | <from>bpel:doXslTransform('urn:stylesheets:wrap2serviceref.xsl', $GetConnectionInfoEndpointByServiceNameOut.ConnectionInfoEndpoint/conninfo:serviceConnectionInfoEndpoints/conninfo:serviceConnectionInfoEndpoint/nccommon:EPR/nccommon:EndpointReference)</from>
|
---|
202 | <to partnerLink="AdapterDocQueryPL"/>
|
---|
203 | </copy>
|
---|
204 | <copy>
|
---|
205 | <from>$Nhinc_CrossGatewayQueryIn.CrossGatewayQueryRequest/query:AdhocQueryRequest</from>
|
---|
206 | <to>$Adapter_CrossGatewayQueryIn.RespondingGateway_CrossGatewayQueryRequest/query:AdhocQueryRequest</to>
|
---|
207 | </copy>
|
---|
208 | <copy>
|
---|
209 | <from>$Nhinc_CrossGatewayQueryIn.CrossGatewayQueryRequest/nhinccommonintorch:assertion</from>
|
---|
210 | <to>$Adapter_CrossGatewayQueryIn.RespondingGateway_CrossGatewayQueryRequest/ncadapter:assertion</to>
|
---|
211 | </copy>
|
---|
212 | </assign>
|
---|
213 | <invoke name="InvokeAdapterDocQuery" partnerLink="AdapterDocQueryPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" portType="tns:AdapterDocQueryPortType" inputVariable="Adapter_CrossGatewayQueryIn" outputVariable="Adapter_CrossGatewayQueryOut"/>
|
---|
214 | <assign name="AssignAdapterDocQueryOutput">
|
---|
215 | <copy>
|
---|
216 | <from variable="Adapter_CrossGatewayQueryOut" part="RespondingGateway_CrossGatewayQueryResponse"/>
|
---|
217 | <to variable="Nhinc_CrossGatewayQueryOut" part="CrossGatewayQueryResponse"/>
|
---|
218 | </copy>
|
---|
219 | </assign>
|
---|
220 | </sequence>
|
---|
221 | <else>
|
---|
222 | <sequence name="NotPassthroughSeq">
|
---|
223 | <assign name="AssignNhincComponentInternalDocQueryOrchIn">
|
---|
224 | <copy>
|
---|
225 | <from>$Nhinc_CrossGatewayQueryIn.CrossGatewayQueryRequest/query:AdhocQueryRequest</from>
|
---|
226 | <to>$InternalDocQueryOrchIn.RespondingGateway_CrossGatewayQueryRequest/query:AdhocQueryRequest</to>
|
---|
227 | </copy>
|
---|
228 | <copy>
|
---|
229 | <from>$Nhinc_CrossGatewayQueryIn.CrossGatewayQueryRequest/nhinccommonintorch:assertion</from>
|
---|
230 | <to>$InternalDocQueryOrchIn.RespondingGateway_CrossGatewayQueryRequest/nhinccommonintorch:assertion</to>
|
---|
231 | </copy>
|
---|
232 | </assign>
|
---|
233 | <invoke name="InvokeNhincComponentInternalDocQueryOrch" partnerLink="NhincComponentInternalDocQueryOrchPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" portType="tns:NhincComponentInternalDocQueryOrchPortType" inputVariable="InternalDocQueryOrchIn" outputVariable="InternalDocQueryOrchOut">
|
---|
234 | <sxt:trace>
|
---|
235 | <sxt:log level="warning" location="onStart">
|
---|
236 | <bpel:from>'### Invoking NhincComponentInternalDocQueryOrch ...'</bpel:from>
|
---|
237 | </sxt:log>
|
---|
238 | <sxt:log level="info" location="onStart">
|
---|
239 | <bpel:from variable="InternalDocQueryOrchIn"/>
|
---|
240 | </sxt:log>
|
---|
241 | <sxt:log level="warning" location="onComplete">
|
---|
242 | <bpel:from>'### Reply from invoking NhincComponentInternalDocQueryOrch ...'</bpel:from>
|
---|
243 | </sxt:log>
|
---|
244 | <sxt:log level="info" location="onComplete">
|
---|
245 | <bpel:from variable="InternalDocQueryOrchOut"/>
|
---|
246 | </sxt:log>
|
---|
247 | </sxt:trace>
|
---|
248 | </invoke>
|
---|
249 | <assign name="AssignNhincComponentInternalDocQueryOrchOut">
|
---|
250 | <copy>
|
---|
251 | <from variable="InternalDocQueryOrchOut" part="RespondingGateway_CrossGatewayQueryResponse"/>
|
---|
252 | <to variable="Nhinc_CrossGatewayQueryOut" part="CrossGatewayQueryResponse"/>
|
---|
253 | </copy>
|
---|
254 | </assign>
|
---|
255 | </sequence>
|
---|
256 | </else>
|
---|
257 | </if>
|
---|
258 | </sequence>
|
---|
259 | <else>
|
---|
260 | <sequence name="DocQueryNotEnabledSeq">
|
---|
261 | <assign name="AssignEmptyResponse">
|
---|
262 | <sxt:trace>
|
---|
263 | <sxt:log level="info" location="onStart">
|
---|
264 | <bpel:from>'Document query was not enabled. Returning an empty response.'</bpel:from>
|
---|
265 | </sxt:log>
|
---|
266 | </sxt:trace>
|
---|
267 | <copy>
|
---|
268 | <from>0</from>
|
---|
269 | <to>$Nhinc_CrossGatewayQueryOut.CrossGatewayQueryResponse/@totalResultCount</to>
|
---|
270 | </copy>
|
---|
271 | <copy>
|
---|
272 | <from>'urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success'</from>
|
---|
273 | <to>$Nhinc_CrossGatewayQueryOut.CrossGatewayQueryResponse/@status</to>
|
---|
274 | </copy>
|
---|
275 | </assign>
|
---|
276 | </sequence>
|
---|
277 | </else>
|
---|
278 | </if>
|
---|
279 | <assign name="AssignAuditReposDQRes">
|
---|
280 | <copy>
|
---|
281 | <from>$Nhinc_CrossGatewayQueryIn.CrossGatewayQueryRequest/nhinccommonintorch:assertion</from>
|
---|
282 | <to>$LogAdhocQueryResultIn.LogAdhocQueryResultRequest/auditlog:message/auditlog:assertion</to>
|
---|
283 | </copy>
|
---|
284 | <copy>
|
---|
285 | <from variable="Nhinc_CrossGatewayQueryOut" part="CrossGatewayQueryResponse"/>
|
---|
286 | <to>$LogAdhocQueryResultIn.LogAdhocQueryResultRequest/auditlog:message/query:AdhocQueryResponse</to>
|
---|
287 | </copy>
|
---|
288 | <copy>
|
---|
289 | <from>'Outbound'</from>
|
---|
290 | <to>$LogAdhocQueryResultIn.LogAdhocQueryResultRequest/auditlog:direction</to>
|
---|
291 | </copy>
|
---|
292 | <copy>
|
---|
293 | <from>'Nhin'</from>
|
---|
294 | <to>$LogAdhocQueryResultIn.LogAdhocQueryResultRequest/auditlog:interface</to>
|
---|
295 | </copy>
|
---|
296 | </assign>
|
---|
297 | <invoke name="InvokeAuditReposDQRes" partnerLink="AuditLogRepositoryPL" operation="LogAdhocQueryResult" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogAdhocQueryResultIn" outputVariable="LogAdhocQueryResultOut"/>
|
---|
298 | <reply name="ReplyNhinDocQuery" partnerLink="NhincDocQueryPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:ihe="urn:ihe:iti:xds-b:2007" portType="tns:NhincDocQueryPortType" variable="Nhinc_CrossGatewayQueryOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincdocquery">
|
---|
299 | <sxt:trace>
|
---|
300 | <sxt:log level="info" location="onStart">
|
---|
301 | <from>'End NhinDocQuery - Response Message is:'</from>
|
---|
302 | </sxt:log>
|
---|
303 | <sxt:log level="info" location="onStart">
|
---|
304 | <from variable="Nhinc_CrossGatewayQueryOut"/>
|
---|
305 | </sxt:log>
|
---|
306 | </sxt:trace>
|
---|
307 | </reply>
|
---|
308 | </sequence>
|
---|
309 | </scope>
|
---|
310 | </sequence>
|
---|
311 | </process>
|
---|