source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/EntityBPEL/src/EntityDocRetrieve.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: 30.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<process
3 name="EntityDocRetrieve"
4 targetNamespace="urn:gov:hhs:fha:nhinc:gateway:entitybpel:entitydocretrieve"
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:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment"
10 xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
11 xmlns:tns="urn:gov:hhs:fha:nhinc:gateway:entitybpel:entitydocretrieve" xmlns:ns0="urn:ihe:iti:xds-b:2007" xmlns:ns1="urn:gov:hhs:fha:nhinc:gateway:aggregator" xmlns:ns2="urn:gov:hhs:fha:nhinc:common:entitycommoninternalorch" xmlns:ns3="urn:gov:hhs:fha:nhinc:common:nhinccommonentity" xmlns:ns4="urn:gov:hhs:fha:nhinc:common:nhinccommon" xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:ns6="urn:gov:hhs:fha:nhinc:common:nhinccommonadapter" xmlns:ns7="urn:gov:hhs:fha:nhinc:common:auditlog">
12 <import namespace="urn:gov:hhs:fha:nhinc:entitydocretrieve" location="Interfaces/wsdl/EntityDocRetrieve.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
13 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" location="Interfaces/wsdl/NhincComponentAggregator.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
14 <import namespace="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" location="Interfaces/wsdl/EntityComponentInternalDocRetrieveOrch.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
15 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" location="Interfaces/wsdl/NhincComponentInternalAuditRepository.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
16 <partnerLinks>
17 <partnerLink name="AggregatorPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" partnerLinkType="tns:NhincComponentAggregator" partnerRole="NhincComponentAggregatorPortTypeRole"/>
18 <partnerLink name="EntityCompIntDocRetrieveOrchPL" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" partnerLinkType="tns:EntityComponentInternalDocRetrieveOrch" partnerRole="EntityComponentInternalDocRetrieveOrchPortTypeRole"/>
19 <partnerLink name="AuditRepositoryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" partnerLinkType="tns:NhincComponentInternalAuditRepository" partnerRole="NhincComponentInternalAuditRepositoryPortTypeRole"/>
20 <partnerLink name="EntityDocRetrievePL" xmlns:tns="urn:gov:hhs:fha:nhinc:entitydocretrieve" partnerLinkType="tns:EntityDocRetrieve" myRole="EntityDocRetrievePortTypeRole"/>
21 </partnerLinks>
22 <variables>
23 <variable name="LogDocRetrieveResultOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
24 <variable name="LogDocRetrieveResultIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogDocRetrieveResultRequestMessage"/>
25 <variable name="LogDocRetrieveOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
26 <variable name="LogDocRetrieveIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogDocRetrieveRequestMessage"/>
27 <variable name="RespondingGateway_CrossGatewayRetrieveOut" xmlns:tns="urn:gov:hhs:fha:nhinc:entitydocretrieve" messageType="tns:RespondingGateway_CrossGatewayRetrieveResponseMessage"/>
28 <variable name="RespondingGateway_CrossGatewayRetrieveIn" xmlns:tns="urn:gov:hhs:fha:nhinc:entitydocretrieve" messageType="tns:RespondingGateway_CrossGatewayRetrieveRequestMessage"/>
29 </variables>
30 <sequence>
31 <receive name="ReceiveEntityDocRetrieve" createInstance="yes" partnerLink="EntityDocRetrievePL" operation="RespondingGateway_CrossGatewayRetrieve" xmlns:tns="urn:gov:hhs:fha:nhinc:entitydocretrieve" portType="tns:EntityDocRetrievePortType" variable="RespondingGateway_CrossGatewayRetrieveIn"/>
32 <assign name="AssignAuditReposDRReq">
33 <sxt:trace>
34 <sxt:log level="info" location="onStart">
35 <from>'Begin Adhoc Query - input message is:'</from>
36 </sxt:log>
37 <sxt:log level="info" location="onStart">
38 <from variable="RespondingGateway_CrossGatewayRetrieveIn"/>
39 </sxt:log>
40 </sxt:trace>
41 <copy>
42 <from>$RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns0:RetrieveDocumentSetRequest</from>
43 <to>$LogDocRetrieveIn.LogDocRetrieveRequest/ns7:message/ns0:RetrieveDocumentSetRequest</to>
44 </copy>
45 <copy>
46 <from>$RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns3:assertion</from>
47 <to>$LogDocRetrieveIn.LogDocRetrieveRequest/ns7:message/ns7:assertion</to>
48 </copy>
49 <copy>
50 <from>'Inbound'</from>
51 <to>$LogDocRetrieveIn.LogDocRetrieveRequest/ns7:direction</to>
52 </copy>
53 <copy>
54 <from>'Entity'</from>
55 <to>$LogDocRetrieveIn.LogDocRetrieveRequest/ns7:interface</to>
56 </copy>
57 </assign>
58 <invoke name="InvokeAuditDRReq" partnerLink="AuditRepositoryPL" operation="LogDocRetrieve" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogDocRetrieveIn" outputVariable="LogDocRetrieveOut">
59 <sxt:trace>
60 <sxt:log level="info" location="onStart">
61 <from>'Invoking Audit Repository Service for Entity Doc Retrieve Request'</from>
62 </sxt:log>
63 </sxt:trace>
64 </invoke>
65 <scope name="EntityDocRetrieveScope">
66 <variables>
67 <variable name="DocCount" type="xsd:integer"/>
68 <variable name="StartTransactionDocRetrieveOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" messageType="tns:StartTransactionDocRetrieveResponseMessage"/>
69 <variable name="StartTransactionDocRetrieveIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" messageType="tns:StartTransactionDocRetrieveRequestMessage"/>
70 </variables>
71 <faultHandlers>
72 <catch faultName="sxeh:systemFault" faultVariable="systemFaultVar" faultMessageType="sxeh:faultMessage">
73 <sequence name="SystemFaultSeq">
74 <assign name="AssignErrorFromFault">
75 <sxt:trace>
76 <sxt:log level="info" location="onStart">
77 <from>'EntityDocRetrieve BPEL - A system fault was encountered processing a doc retrieve message. Fault details follow...'</from>
78 </sxt:log>
79 <sxt:log level="warning" location="onStart">
80 <from variable="systemFaultVar"/>
81 </sxt:log>
82 </sxt:trace>
83 <copy>
84 <from>'XDSRepositoryError'</from>
85 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/ns5:RegistryErrorList/ns5:RegistryError/@errorCode</to>
86 </copy>
87 <copy>
88 <from>'urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure'</from>
89 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/@status</to>
90 </copy>
91 <copy>
92 <from>'Error'</from>
93 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/ns5:RegistryErrorList/ns5:RegistryError/@severity</to>
94 </copy>
95 <copy>
96 <from>'Fault encountered processing internal document retrieve'</from>
97 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/ns5:RegistryErrorList/ns5:RegistryError/@codeContext</to>
98 </copy>
99 </assign>
100 </sequence>
101 </catch>
102 </faultHandlers>
103 <sequence name="EntityDocRetrieveSequence">
104 <assign name="AssignAggregatorStart">
105 <copy>
106 <from>$RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns0:RetrieveDocumentSetRequest</from>
107 <to>$StartTransactionDocRetrieveIn.StartTransactionDocRetrieveRequest/ns1:retrieveDocumentSetRequest</to>
108 </copy>
109 </assign>
110 <invoke name="InvokeAggregatorStart" partnerLink="AggregatorPL" operation="StartTransactionDocRetrieve" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" portType="tns:NhincComponentAggregatorPortType" inputVariable="StartTransactionDocRetrieveIn" outputVariable="StartTransactionDocRetrieveOut">
111 <sxt:trace>
112 <sxt:log level="warning" location="onStart">
113 <from>'EntityDocRetrieve.bpel: Starting Transaction'</from>
114 </sxt:log>
115 </sxt:trace>
116 </invoke>
117 <assign name="AssignDocCount">
118 <sxt:trace>
119 <sxt:log level="warning" location="onStart">
120 <from>concat('Reply: Document Retrieve - Aggregator.StartTransaction - TransactionId: ', $StartTransactionDocRetrieveOut.StartTransactionDocRetrieveResponse/ns1:transactionId)</from>
121 </sxt:log>
122 </sxt:trace>
123 <copy>
124 <from>count($RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns0:RetrieveDocumentSetRequest/ns0:DocumentRequest)</from>
125 <to variable="DocCount"/>
126 </copy>
127 </assign>
128 <forEach name="ForEachDocumentRequest" parallel="no" counterName="DocRequestCounter">
129 <sxt:trace>
130 <sxt:log level="warning" location="onStart">
131 <from>'Loop - For Each Document Request'</from>
132 </sxt:log>
133 </sxt:trace>
134 <startCounterValue>1</startCounterValue>
135 <finalCounterValue>$DocCount</finalCounterValue>
136 <scope name="DocRetrieveScope">
137 <variables>
138 <variable name="SendRetrieveDocumentSetRequestOut" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" messageType="tns:SendRetrieveDocumentSetRequestResponseMessage"/>
139 <variable name="SendRetrieveDocumentSetRequestIn" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" messageType="tns:SendRetrieveDocumentSetRequestMessage"/>
140 </variables>
141 <sequence name="Sequence1">
142 <assign name="AssignInternalDocRetrieve">
143 <copy>
144 <from>$StartTransactionDocRetrieveOut.StartTransactionDocRetrieveResponse/ns1:transactionId</from>
145 <to>$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns2:TransactionId</to>
146 </copy>
147 <copy>
148 <from>$RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns3:assertion</from>
149 <to>$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns4:Assertion</to>
150 </copy>
151 <copy>
152 <from>$RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns0:RetrieveDocumentSetRequest/ns0:DocumentRequest[$DocRequestCounter]</from>
153 <to>$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns0:RetrieveDocumentSetRequest/ns0:DocumentRequest</to>
154 </copy>
155 </assign>
156 <invoke name="InvokeInternalDocRetrieveOrch" partnerLink="EntityCompIntDocRetrieveOrchPL" operation="SendRetrieveDocumentSetRequest" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" portType="tns:EntityComponentInternalDocRetrieveOrchPortType" inputVariable="SendRetrieveDocumentSetRequestIn" outputVariable="SendRetrieveDocumentSetRequestOut">
157 <sxt:trace>
158 <sxt:log level="warning" location="onComplete">
159 <from>'Status from call to Internal Document Retrieve Orchestration'</from>
160 </sxt:log>
161 <sxt:log level="info" location="onComplete">
162 <from variable="SendRetrieveDocumentSetRequestOut"/>
163 </sxt:log>
164 <sxt:log level="warning" location="onStart">
165 <from>'Calling Internal Document Retrieve:'</from>
166 </sxt:log>
167 <sxt:log level="info" location="onStart">
168 <from variable="SendRetrieveDocumentSetRequestIn"/>
169 </sxt:log>
170 </sxt:trace>
171 </invoke>
172 </sequence>
173 </scope>
174 </forEach>
175 <scope name="PollForResultsScope">
176 <variables>
177 <variable name="HasError" type="xsd:boolean"/>
178 <variable name="AggregatorCompleted" type="xsd:boolean"/>
179 <variable name="GetAggResultsDocRetrieveOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" messageType="tns:GetAggResultsDocRetrieveResponseMessage"/>
180 <variable name="GetAggResultsDocRetrieveIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" messageType="tns:GetAggResultsDocRetrieveRequestMessage"/>
181 <variable name="TimedOut" type="xsd:boolean"/>
182 </variables>
183 <eventHandlers>
184 <onAlarm>
185 <for>'P0Y0M0DT0H0M40.0S'</for>
186 <scope name="TimedOutScope">
187 <variables>
188 <variable name="TimedOutResultsComplete" type="xsd:boolean"/>
189 <variable name="GetAggResultsDocRetrieveOutTimedOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" messageType="tns:GetAggResultsDocRetrieveResponseMessage"/>
190 <variable name="GetAggResultsDocRetrieveInTimedOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" messageType="tns:GetAggResultsDocRetrieveRequestMessage"/>
191 </variables>
192 <sequence name="TimedOutSeq">
193 <assign name="AssignTimedOut">
194 <sxt:trace>
195 <sxt:log level="warning" location="onStart">
196 <from>'Doc Retrieve Timed Out'</from>
197 </sxt:log>
198 </sxt:trace>
199 <copy>
200 <from>true()</from>
201 <to variable="TimedOut"/>
202 </copy>
203 <copy>
204 <from>$StartTransactionDocRetrieveOut.StartTransactionDocRetrieveResponse/ns1:transactionId</from>
205 <to>$GetAggResultsDocRetrieveInTimedOut.GetAggResultsDocRetrieveRequest/ns1:transactionId</to>
206 </copy>
207 <copy>
208 <from>true()</from>
209 <to>$GetAggResultsDocRetrieveInTimedOut.GetAggResultsDocRetrieveRequest/ns1:timedOut</to>
210 </copy>
211 </assign>
212 <invoke name="InvokeGetAggResultsTimedOut" partnerLink="AggregatorPL" operation="GetAggResultsDocRetrieve" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" portType="tns:NhincComponentAggregatorPortType" inputVariable="GetAggResultsDocRetrieveInTimedOut" outputVariable="GetAggResultsDocRetrieveOutTimedOut"/>
213 <assign name="AssignTimedOutResultsComplete">
214 <copy>
215 <from>$GetAggResultsDocRetrieveOutTimedOut.GetAggResultsDocRetrieveResponse/ns1:status = 'COMPLETE'</from>
216 <to variable="TimedOutResultsComplete"/>
217 </copy>
218 </assign>
219 <if name="IfTimedOutResultsComplete">
220 <condition>$TimedOutResultsComplete</condition>
221 <assign name="AssignTimedOutResults">
222 <copy>
223 <from>$GetAggResultsDocRetrieveOutTimedOut.GetAggResultsDocRetrieveResponse/ns1:retrieveDocumentSetResponse</from>
224 <to variable="RespondingGateway_CrossGatewayRetrieveOut" part="RespondingGateway_CrossGatewayRetrieveResponse"/>
225 </copy>
226 </assign>
227 <else>
228 <assign name="AssignTimedOutError">
229 <copy>
230 <from>'XDSRepositoryError'</from>
231 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/ns5:RegistryErrorList/ns5:RegistryError/@errorCode</to>
232 </copy>
233 <copy>
234 <from>'urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure'</from>
235 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/@status</to>
236 </copy>
237 <copy>
238 <from>'Error'</from>
239 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/ns5:RegistryErrorList/ns5:RegistryError/@severity</to>
240 </copy>
241 <copy>
242 <from>'Processing internal document retrieve - failure in timeout'</from>
243 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/ns5:RegistryErrorList/ns5:RegistryError/@codeContext</to>
244 </copy>
245 </assign>
246 </else>
247 </if>
248 </sequence>
249 </scope>
250 </onAlarm>
251 </eventHandlers>
252 <sequence name="PollForResultsSequence">
253 <assign name="AssignInitialAggregatorCompleted">
254 <copy>
255 <from>false()</from>
256 <to variable="AggregatorCompleted"/>
257 </copy>
258 <copy>
259 <from>false()</from>
260 <to variable="HasError"/>
261 </copy>
262 <copy>
263 <from>false()</from>
264 <to variable="TimedOut"/>
265 </copy>
266 </assign>
267 <repeatUntil name="RepeatUntilHaveResultsOrTimedOut">
268 <sxt:trace>
269 <sxt:log level="warning" location="onStart">
270 <from>'Loop: Repeat until Timed Out or all Results are in...'</from>
271 </sxt:log>
272 </sxt:trace>
273 <sequence name="RepeatUntilCompletedOrTimedOutSequence">
274 <assign name="AssignAggResultsIn">
275 <copy>
276 <from>$StartTransactionDocRetrieveOut.StartTransactionDocRetrieveResponse/ns1:transactionId</from>
277 <to>$GetAggResultsDocRetrieveIn.GetAggResultsDocRetrieveRequest/ns1:transactionId</to>
278 </copy>
279 <copy>
280 <from>false()</from>
281 <to>$GetAggResultsDocRetrieveIn.GetAggResultsDocRetrieveRequest/ns1:timedOut</to>
282 </copy>
283 </assign>
284 <invoke name="InvokeGetAggResults" partnerLink="AggregatorPL" operation="GetAggResultsDocRetrieve" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" portType="tns:NhincComponentAggregatorPortType" inputVariable="GetAggResultsDocRetrieveIn" outputVariable="GetAggResultsDocRetrieveOut">
285 <sxt:trace>
286 <sxt:log level="warning" location="onStart">
287 <from>'Calling GetAggResultsDocRetrieve'</from>
288 </sxt:log>
289 <sxt:log level="info" location="onStart">
290 <from variable="GetAggResultsDocRetrieveIn"/>
291 </sxt:log>
292 <sxt:log level="warning" location="onComplete">
293 <from>'Results of calling GetAggResultsDocRetrieve'</from>
294 </sxt:log>
295 <sxt:log level="info" location="onComplete">
296 <from variable="GetAggResultsDocRetrieveOut"/>
297 </sxt:log>
298 </sxt:trace>
299 </invoke>
300 <assign name="AssignCompleted">
301 <copy>
302 <from>$GetAggResultsDocRetrieveOut.GetAggResultsDocRetrieveResponse/ns1:status = 'COMPLETE'</from>
303 <to variable="AggregatorCompleted"/>
304 </copy>
305 <copy>
306 <from>$GetAggResultsDocRetrieveOut.GetAggResultsDocRetrieveResponse/ns1:status = 'FAIL'</from>
307 <to variable="HasError"/>
308 </copy>
309 </assign>
310 <if name="IfResultsComplete">
311 <condition>$AggregatorCompleted</condition>
312 <assign name="AssignAggResponse">
313 <copy>
314 <from>$GetAggResultsDocRetrieveOut.GetAggResultsDocRetrieveResponse/ns1:retrieveDocumentSetResponse</from>
315 <to variable="RespondingGateway_CrossGatewayRetrieveOut" part="RespondingGateway_CrossGatewayRetrieveResponse"/>
316 </copy>
317 </assign>
318 <elseif>
319 <condition>$HasError</condition>
320 <assign name="AssignError">
321 <copy>
322 <from>'XDSRepositoryError'</from>
323 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/ns5:RegistryErrorList/ns5:RegistryError/@errorCode</to>
324 </copy>
325 <copy>
326 <from>'urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure'</from>
327 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/@status</to>
328 </copy>
329 <copy>
330 <from>'Error'</from>
331 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/ns5:RegistryErrorList/ns5:RegistryError/@severity</to>
332 </copy>
333 <copy>
334 <from>'Processing internal document retrieve'</from>
335 <to>$RespondingGateway_CrossGatewayRetrieveOut.RespondingGateway_CrossGatewayRetrieveResponse/ns5:RegistryResponse/ns5:RegistryErrorList/ns5:RegistryError/@codeContext</to>
336 </copy>
337 </assign>
338 </elseif>
339 <else>
340 <wait name="WaitForResults">
341 <for>'P0Y0M0DT0H0M1.0S'</for>
342 </wait>
343 </else>
344 </if>
345 </sequence>
346 <condition>$AggregatorCompleted or $TimedOut or $HasError</condition>
347 </repeatUntil>
348 </sequence>
349 </scope>
350 </sequence>
351 </scope>
352 <assign name="AssignAuditReposDRResp">
353 <copy>
354 <from>$RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns3:assertion</from>
355 <to>$LogDocRetrieveResultIn.LogDocRetrieveResultRequest/ns7:message/ns7:assertion</to>
356 </copy>
357 <copy>
358 <from variable="RespondingGateway_CrossGatewayRetrieveOut" part="RespondingGateway_CrossGatewayRetrieveResponse"/>
359 <to>$LogDocRetrieveResultIn.LogDocRetrieveResultRequest/ns7:message/ns0:RetrieveDocumentSetResponse</to>
360 </copy>
361 <copy>
362 <from>'Inbound'</from>
363 <to>$LogDocRetrieveResultIn.LogDocRetrieveResultRequest/ns7:direction</to>
364 </copy>
365 <copy>
366 <from>'Entity'</from>
367 <to>$LogDocRetrieveResultIn.LogDocRetrieveResultRequest/ns7:interface</to>
368 </copy>
369 </assign>
370 <invoke name="InvokeAuditReposDRRes" partnerLink="AuditRepositoryPL" operation="LogDocRetrieveResult" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogDocRetrieveResultIn" outputVariable="LogDocRetrieveResultOut">
371 <sxt:trace>
372 <sxt:log level="info" location="onStart">
373 <from>'Invoking Audit Repository Service for Entity Doc Retrieve Response'</from>
374 </sxt:log>
375 </sxt:trace>
376 </invoke>
377 <reply name="ReplyEntityDocRetrieve" partnerLink="EntityDocRetrievePL" operation="RespondingGateway_CrossGatewayRetrieve" xmlns:tns="urn:gov:hhs:fha:nhinc:entitydocretrieve" portType="tns:EntityDocRetrievePortType" variable="RespondingGateway_CrossGatewayRetrieveOut">
378 <sxt:trace>
379 <sxt:log level="warning" location="onStart">
380 <from>'Reply from EntityDocRetrieve:'</from>
381 </sxt:log>
382 <sxt:log level="info" location="onStart">
383 <from variable="RespondingGateway_CrossGatewayRetrieveOut"/>
384 </sxt:log>
385 </sxt:trace>
386 </reply>
387 </sequence>
388</process>
Note: See TracBrowser for help on using the repository browser.