1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <process
|
---|
3 | name="EntityComponentInternalDocRetrieveOrch"
|
---|
4 | targetNamespace="urn:gov:hhs:fha:nhinc:gateway:entityinternalorchbpel:entitycomponentinternaldocretrieveorch"
|
---|
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:entityinternalorchbpel:entitycomponentinternaldocretrieveorch" xmlns:ns0="urn:ihe:iti:xds-b:2007" xmlns:ns1="urn:gov:hhs:fha:nhinc:common:connectionmanagerinfo" xmlns:ns2="urn:gov:hhs:fha:nhinc:common:nhinccommon" xmlns:ns3="urn:gov:hhs:fha:nhinc:common:nhinccommonproxy" xmlns:ns4="urn:gov:hhs:fha:nhinc:common:entitycommoninternalorch" xmlns:ns5="urn:gov:hhs:fha:nhinc:gateway:aggregator">
|
---|
12 | <import namespace="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" location="Interfaces/wsdl/EntityComponentInternalDocRetrieveOrch.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
13 | <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" location="Interfaces/wsdl/NhincComponentConnectionManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
14 | <import namespace="urn:gov:hhs:fha:nhinc:nhincproxydocretrieve" location="Interfaces/wsdl/NhincProxyDocRetrieve.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
15 | <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" location="Interfaces/wsdl/NhincComponentAggregator.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
16 | <partnerLinks>
|
---|
17 | <partnerLink name="DocRetrieveProxyPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxydocretrieve" partnerLinkType="tns:NhincProxyDocRetrieve" partnerRole="NhincProxyDocRetrievePortTypeRole"/>
|
---|
18 | <partnerLink name="AggregatorPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" partnerLinkType="tns:NhincComponentAggregator" partnerRole="NhincComponentAggregatorPortTypeRole"/>
|
---|
19 | <partnerLink name="EntityCompIntDocRetrieveOrchPL" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" partnerLinkType="tns:EntityComponentInternalDocRetrieveOrch" myRole="EntityComponentInternalDocRetrieveOrchPortTypeRole"/>
|
---|
20 | </partnerLinks>
|
---|
21 | <variables>
|
---|
22 | <variable name="SendRetrieveDocumentSetRequestOut" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" messageType="tns:SendRetrieveDocumentSetRequestResponseMessage"/>
|
---|
23 | <variable name="SendRetrieveDocumentSetRequestIn" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" messageType="tns:SendRetrieveDocumentSetRequestMessage"/>
|
---|
24 | </variables>
|
---|
25 | <sequence>
|
---|
26 | <receive name="ReceiveEntCompIntDocRetrieveOrch" createInstance="yes" partnerLink="EntityCompIntDocRetrieveOrchPL" operation="SendRetrieveDocumentSetRequest" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" portType="tns:EntityComponentInternalDocRetrieveOrchPortType" variable="SendRetrieveDocumentSetRequestIn">
|
---|
27 | <sxt:trace>
|
---|
28 | <sxt:log level="warning" location="onStart">
|
---|
29 | <from>'Entering: EntityComponentInternalDocRetrieveOrch.bpel'</from>
|
---|
30 | </sxt:log>
|
---|
31 | <sxt:log level="info" location="onStart">
|
---|
32 | <from variable="SendRetrieveDocumentSetRequestIn"/>
|
---|
33 | </sxt:log>
|
---|
34 | </sxt:trace>
|
---|
35 | </receive>
|
---|
36 | <scope name="InternalDocRetrieveScope">
|
---|
37 | <variables>
|
---|
38 | <variable name="DocumentId" type="xsd:string"/>
|
---|
39 | <variable name="RepositoryId" type="xsd:string"/>
|
---|
40 | <variable name="HomeCommunityId" type="xsd:string"/>
|
---|
41 | <variable name="SetResponseMsgDocRetrieveOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" messageType="tns:SetResponseMsgDocRetrieveResponseMessage"/>
|
---|
42 | <variable name="SetResponseMsgDocRetrieveIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" messageType="tns:SetResponseMsgDocRetrieveRequestMessage"/>
|
---|
43 | <variable name="RespondingGateway_CrossGatewayRetrieveOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxydocretrieve" messageType="tns:RespondingGateway_CrossGatewayRetrieveResponseMessage"/>
|
---|
44 | <variable name="RespondingGateway_CrossGatewayRetrieveIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxydocretrieve" messageType="tns:RespondingGateway_CrossGatewayRetrieveRequestMessage"/>
|
---|
45 | </variables>
|
---|
46 | <faultHandlers>
|
---|
47 | <catch faultName="sxeh:systemFault" faultVariable="systemFaultVar" faultMessageType="sxeh:faultMessage">
|
---|
48 | <sequence name="SystemFaultSeq">
|
---|
49 | <assign name="AssignErrorMessage">
|
---|
50 | <sxt:trace>
|
---|
51 | <sxt:log level="info" location="onStart">
|
---|
52 | <from>'EntityComponentInternalDocRetrieveOrch.bpel - A system fault occured sending an individual document retrieve message. Fault detials follow...'</from>
|
---|
53 | </sxt:log>
|
---|
54 | <sxt:log level="warning" location="onStart">
|
---|
55 | <from variable="systemFaultVar"/>
|
---|
56 | </sxt:log>
|
---|
57 | </sxt:trace>
|
---|
58 | <copy>
|
---|
59 | <from>'ERROR'</from>
|
---|
60 | <to>$SendRetrieveDocumentSetRequestOut.SendRetrieveDocumentSetRequestResponse/ns4:status</to>
|
---|
61 | </copy>
|
---|
62 | </assign>
|
---|
63 | </sequence>
|
---|
64 | </catch>
|
---|
65 | </faultHandlers>
|
---|
66 | <sequence name="InternalDocRetrieveSequence">
|
---|
67 | <assign name="AssignDocRetrieveProxy">
|
---|
68 | <copy>
|
---|
69 | <from>$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns2:Assertion</from>
|
---|
70 | <to>$RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns3:assertion</to>
|
---|
71 | </copy>
|
---|
72 | <copy>
|
---|
73 | <from>$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns0:RetrieveDocumentSetRequest</from>
|
---|
74 | <to>$RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns0:RetrieveDocumentSetRequest</to>
|
---|
75 | </copy>
|
---|
76 | <copy>
|
---|
77 | <from>$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns0:RetrieveDocumentSetRequest/ns0:DocumentRequest[1]/ns0:HomeCommunityId</from>
|
---|
78 | <to variable="HomeCommunityId"/>
|
---|
79 | </copy>
|
---|
80 | <copy>
|
---|
81 | <from>$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns0:RetrieveDocumentSetRequest/ns0:DocumentRequest[1]/ns0:RepositoryUniqueId</from>
|
---|
82 | <to variable="RepositoryId"/>
|
---|
83 | </copy>
|
---|
84 | <copy>
|
---|
85 | <from>$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns0:RetrieveDocumentSetRequest/ns0:DocumentRequest[1]/ns0:DocumentUniqueId</from>
|
---|
86 | <to variable="DocumentId"/>
|
---|
87 | </copy>
|
---|
88 | <copy>
|
---|
89 | <from>substring-after($SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns0:RetrieveDocumentSetRequest/ns0:DocumentRequest[1]/ns0:HomeCommunityId, 'urn:oid:')
|
---|
90 | <sxed:editor>
|
---|
91 | <sxed:predicate path="$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns0:RetrieveDocumentSetRequest/ns0:DocumentRequest[1]" source="from"/>
|
---|
92 | </sxed:editor>
|
---|
93 | </from>
|
---|
94 | <to>$RespondingGateway_CrossGatewayRetrieveIn.RespondingGateway_CrossGatewayRetrieveRequest/ns3:nhinTargetSystem/ns2:homeCommunity/ns2:homeCommunityId</to>
|
---|
95 | </copy>
|
---|
96 | </assign>
|
---|
97 | <invoke name="InvokeNhincDocRetrieveProxy" partnerLink="DocRetrieveProxyPL" operation="RespondingGateway_CrossGatewayRetrieve" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxydocretrieve" portType="tns:NhincProxyDocRetrievePortType" inputVariable="RespondingGateway_CrossGatewayRetrieveIn" outputVariable="RespondingGateway_CrossGatewayRetrieveOut">
|
---|
98 | <sxt:trace>
|
---|
99 | <sxt:log level="warning" location="onStart">
|
---|
100 | <from>'Invoking: NHIN Proxy Doc Retrieve'</from>
|
---|
101 | </sxt:log>
|
---|
102 | <sxt:log level="info" location="onStart">
|
---|
103 | <from variable="RespondingGateway_CrossGatewayRetrieveIn"/>
|
---|
104 | </sxt:log>
|
---|
105 | <sxt:log level="warning" location="onComplete">
|
---|
106 | <from>'NHINC Proxy Doc Retrieve call:'</from>
|
---|
107 | </sxt:log>
|
---|
108 | <sxt:log level="info" location="onComplete">
|
---|
109 | <from variable="RespondingGateway_CrossGatewayRetrieveOut"/>
|
---|
110 | </sxt:log>
|
---|
111 | </sxt:trace>
|
---|
112 | </invoke>
|
---|
113 | <assign name="AssignDocRetrieveResponse">
|
---|
114 | <copy>
|
---|
115 | <from>$SendRetrieveDocumentSetRequestIn.SendRetrieveDocumentSetRequest/ns4:TransactionId</from>
|
---|
116 | <to>$SetResponseMsgDocRetrieveIn.SetResponseMsgDocRetrieveRequest/ns5:transactionId</to>
|
---|
117 | </copy>
|
---|
118 | <copy>
|
---|
119 | <from variable="HomeCommunityId"/>
|
---|
120 | <to>$SetResponseMsgDocRetrieveIn.SetResponseMsgDocRetrieveRequest/ns5:homeCommunityId</to>
|
---|
121 | </copy>
|
---|
122 | <copy>
|
---|
123 | <from variable="RepositoryId"/>
|
---|
124 | <to>$SetResponseMsgDocRetrieveIn.SetResponseMsgDocRetrieveRequest/ns5:repositoryUniqueId</to>
|
---|
125 | </copy>
|
---|
126 | <copy>
|
---|
127 | <from variable="DocumentId"/>
|
---|
128 | <to>$SetResponseMsgDocRetrieveIn.SetResponseMsgDocRetrieveRequest/ns5:documentUniqueId</to>
|
---|
129 | </copy>
|
---|
130 | <copy>
|
---|
131 | <from variable="RespondingGateway_CrossGatewayRetrieveOut" part="RespondingGateway_CrossGatewayRetrieveResponse"/>
|
---|
132 | <to>$SetResponseMsgDocRetrieveIn.SetResponseMsgDocRetrieveRequest/ns5:retrieveDocumentSetResponse</to>
|
---|
133 | </copy>
|
---|
134 | </assign>
|
---|
135 | <invoke name="InvokeAggSetResponse" partnerLink="AggregatorPL" operation="SetResponseMsgDocRetrieve" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentaggregator" portType="tns:NhincComponentAggregatorPortType" inputVariable="SetResponseMsgDocRetrieveIn" outputVariable="SetResponseMsgDocRetrieveOut"/>
|
---|
136 | <assign name="AssignAggregatorReply">
|
---|
137 | <sxt:trace>
|
---|
138 | <sxt:log level="warning" location="onStart">
|
---|
139 | <from>'Response from call to Aggregator.SetResponseMsgDocRetreveOut'</from>
|
---|
140 | </sxt:log>
|
---|
141 | <sxt:log level="info" location="onStart">
|
---|
142 | <from variable="SetResponseMsgDocRetrieveOut"/>
|
---|
143 | </sxt:log>
|
---|
144 | </sxt:trace>
|
---|
145 | <copy>
|
---|
146 | <from>$SetResponseMsgDocRetrieveOut.SetResponseMsgDocRetrieveResponse/ns5:status</from>
|
---|
147 | <to>$SendRetrieveDocumentSetRequestOut.SendRetrieveDocumentSetRequestResponse/ns4:status</to>
|
---|
148 | </copy>
|
---|
149 | </assign>
|
---|
150 | </sequence>
|
---|
151 | </scope>
|
---|
152 | <reply name="ReplyEntCompInDocRetrieveOrch" partnerLink="EntityCompIntDocRetrieveOrchPL" operation="SendRetrieveDocumentSetRequest" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternaldocretrieveorch" portType="tns:EntityComponentInternalDocRetrieveOrchPortType" variable="SendRetrieveDocumentSetRequestOut"/>
|
---|
153 | </sequence>
|
---|
154 | </process>
|
---|