1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <process
|
---|
3 | name="NhincComponentInternalDocQueryOrch"
|
---|
4 | targetNamespace="urn:gov:hhs:fha:nhinc:gateway:nhincinternalorchbpel:nhinccomponentinternaldocqueryorch"
|
---|
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:nhincinternalorchbpel:nhinccomponentinternaldocqueryorch" xmlns:ns0="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:ns1="urn:gov:hhs:fha:nhinc:common:propertyaccess" xmlns:ns2="urn:gov:hhs:fha:nhinc:common:connectionmanagerinfo" xmlns:ns3="urn:gov:hhs:fha:nhinc:common:nhinccommon" xmlns:ns4="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns5="urn:gov:hhs:fha:nhinc:common:eventcommon" xmlns:ns6="urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0" xmlns:ns7="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" xmlns:ns8="urn:gov:hhs:fha:nhinc:common:policyenginedte" xmlns:ns9="urn:oasis:names:tc:xacml:2.0:context:schema:os" xmlns:ns10="urn:gov:hhs:fha:nhinc:common:nhinccommonadapter" xmlns:ns11="urn:gov:hhs:fha:nhinc:common:nhinccommoninternalorch">
|
---|
11 | <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" location="Interfaces/wsdl/NhincComponentInternalDocQueryOrch.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
12 | <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" location="Interfaces/wsdl/NhincComponentPropAccessor.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:adapterdocquery" location="Interfaces/wsdl/AdapterDocQuery.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
15 | <import namespace="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" location="Interfaces/wsdl/NhincComponentInternalPolicyEngineFacade.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
16 | <partnerLinks>
|
---|
17 | <partnerLink name="PolicyEngineFacadePL" xmlns:tns="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" partnerLinkType="tns:NhincComponentInternalPolicyEngineFacade" partnerRole="NhincComponentInternalPolicyEngineFacadePortTypeRole"/>
|
---|
18 | <partnerLink name="NhincComponentPropAccessorPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" partnerLinkType="tns:NhincComponentPropAccessor" partnerRole="NhincComponentPropAccessorPortTypeRole"/>
|
---|
19 | <partnerLink name="NhincComponentConnectionManagerPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" partnerLinkType="tns:NhincComponentConnectionManager" partnerRole="NhincComponentConnectionManagerPortTypeRole"/>
|
---|
20 | <partnerLink name="AdapterDocQueryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" partnerLinkType="tns:AdapterDocQuery" partnerRole="AdapterDocQueryPortTypeRole"/>
|
---|
21 | <partnerLink name="NhincComponentInternalDocQueryOrchPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" partnerLinkType="tns:NhincComponentInternalDocQueryOrch" myRole="NhincComponentInternalDocQueryOrchPortTypeRole"/>
|
---|
22 | </partnerLinks>
|
---|
23 | <variables>
|
---|
24 | <variable name="RespondingGateway_CrossGatewayQueryOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" messageType="tns:RespondingGateway_CrossGatewayQueryResponseMessage"/>
|
---|
25 | <variable name="RespondingGateway_CrossGatewayQueryIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" messageType="tns:RespondingGateway_CrossGatewayQueryRequestMessage"/>
|
---|
26 | </variables>
|
---|
27 | <sequence>
|
---|
28 | <receive name="ReceiveNhincComponentInternalDocQueryOrch" createInstance="yes" partnerLink="NhincComponentInternalDocQueryOrchPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" portType="tns:NhincComponentInternalDocQueryOrchPortType" variable="RespondingGateway_CrossGatewayQueryIn"/>
|
---|
29 | <scope name="NhincComponentInternalDocQueryOrchScope">
|
---|
30 | <variables>
|
---|
31 | <variable name="CheckPolicyAdhocQueryOut" xmlns:tns="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" messageType="tns:CheckPolicyResponseMessage"/>
|
---|
32 | <variable name="CheckPolicyAdhocQueryIn" xmlns:tns="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" messageType="tns:CheckPolicyAdhocQueryRequestMessage"/>
|
---|
33 | <variable name="AdapterDocQueryOut" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" messageType="tns:RespondingGateway_CrossGatewayQueryResponseMessage"/>
|
---|
34 | <variable name="AdapterDocQueryIn" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" messageType="tns:RespondingGateway_CrossGatewayQueryRequestMessage"/>
|
---|
35 | <variable name="GetAdapterQueryEndpointOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpointByServiceNameResponseMessage"/>
|
---|
36 | <variable name="GetAdapterQueryEndpointIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpointByServiceNameRequestMessage"/>
|
---|
37 | <variable name="GetPropertyHomeCommunityIdOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" messageType="tns:GetPropertyResponseMessage"/>
|
---|
38 | <variable name="GetPropertyHomeCommunityIdIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" messageType="tns:GetPropertyRequestMessage"/>
|
---|
39 | </variables>
|
---|
40 | <faultHandlers>
|
---|
41 | <catch faultName="sxeh:systemFault" faultVariable="systemFaultVar" faultMessageType="sxeh:faultMessage">
|
---|
42 | <sequence name="SystemFaultSeq">
|
---|
43 | <assign name="AssignFaultInfo">
|
---|
44 | <sxt:trace>
|
---|
45 | <sxt:log level="info" location="onStart">
|
---|
46 | <ns4:from>'NhincComponentInternalDocQueryOrch.bpel - System fault encountered processing an AdhocQuery request. Fault detials follow...'</ns4:from>
|
---|
47 | </sxt:log>
|
---|
48 | <sxt:log level="warning" location="onStart">
|
---|
49 | <ns4:from variable="systemFaultVar"/>
|
---|
50 | </sxt:log>
|
---|
51 | </sxt:trace>
|
---|
52 | <copy>
|
---|
53 | <from>'Nhinc Component Internal Doc Query Orch Processing'</from>
|
---|
54 | <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/ns0:RegistryErrorList/ns0:RegistryError/@codeContext</to>
|
---|
55 | </copy>
|
---|
56 | <copy>
|
---|
57 | <from>'XDSRegistryError'</from>
|
---|
58 | <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/ns0:RegistryErrorList/ns0:RegistryError/@errorCode</to>
|
---|
59 | </copy>
|
---|
60 | <copy>
|
---|
61 | <from>'Error'</from>
|
---|
62 | <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/ns0:RegistryErrorList/ns0:RegistryError/@severity</to>
|
---|
63 | </copy>
|
---|
64 | <copy>
|
---|
65 | <from>'urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure'</from>
|
---|
66 | <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/@status</to>
|
---|
67 | </copy>
|
---|
68 | <copy>
|
---|
69 | <from>0</from>
|
---|
70 | <to>$RespondingGateway_CrossGatewayQueryOut.RespondingGateway_CrossGatewayQueryResponse/@totalResultCount</to>
|
---|
71 | </copy>
|
---|
72 | </assign>
|
---|
73 | <reply name="ReplyNhincComponentInternalDocQueryOrchFault" partnerLink="NhincComponentInternalDocQueryOrchPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" portType="tns:NhincComponentInternalDocQueryOrchPortType" variable="RespondingGateway_CrossGatewayQueryOut"/>
|
---|
74 | <exit name="ExitAfterFaultReturn"/>
|
---|
75 | </sequence>
|
---|
76 | </catch>
|
---|
77 | </faultHandlers>
|
---|
78 | <sequence name="NhincComponentInternalDocQueryOrchSequence">
|
---|
79 | <assign name="AssignPolicyEngineInput">
|
---|
80 | <copy>
|
---|
81 | <from>'Inbound'</from>
|
---|
82 | <to>$CheckPolicyAdhocQueryIn.CheckPolicyAdhocQueryRequest/ns5:direction</to>
|
---|
83 | </copy>
|
---|
84 | <copy>
|
---|
85 | <from>$RespondingGateway_CrossGatewayQueryIn.RespondingGateway_CrossGatewayQueryRequest/ns6:AdhocQueryRequest/ns7:AdhocQuery/@id</from>
|
---|
86 | <to>$CheckPolicyAdhocQueryIn.CheckPolicyAdhocQueryRequest/ns5:sendingHomeCommunity/ns3:homeCommunityId</to>
|
---|
87 | </copy>
|
---|
88 | <copy>
|
---|
89 | <from>$RespondingGateway_CrossGatewayQueryIn.RespondingGateway_CrossGatewayQueryRequest/ns6:AdhocQueryRequest</from>
|
---|
90 | <to>$CheckPolicyAdhocQueryIn.CheckPolicyAdhocQueryRequest/ns5:message/ns6:AdhocQueryRequest</to>
|
---|
91 | </copy>
|
---|
92 | <copy>
|
---|
93 | <from>$RespondingGateway_CrossGatewayQueryIn.RespondingGateway_CrossGatewayQueryRequest/ns11:assertion</from>
|
---|
94 | <to>$CheckPolicyAdhocQueryIn.CheckPolicyAdhocQueryRequest/ns5:message/ns5:assertion</to>
|
---|
95 | </copy>
|
---|
96 | </assign>
|
---|
97 | <invoke name="InvokePolicyEngine" partnerLink="PolicyEngineFacadePL" operation="CheckPolicyAdhocQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:NhincComponentInternalPolicyEngineFacade" portType="tns:NhincComponentInternalPolicyEngineFacadePortType" inputVariable="CheckPolicyAdhocQueryIn" outputVariable="CheckPolicyAdhocQueryOut"/>
|
---|
98 | <if name="IfCheckPolicy">
|
---|
99 | <condition>'Permit' = $CheckPolicyAdhocQueryOut.CheckPolicyResponse/ns10:response/ns9:Result/ns9:Decision</condition>
|
---|
100 | <sequence name="CheckPolicytrueSequence">
|
---|
101 | <assign name="AssignGetPropHomeCommunityId">
|
---|
102 | <copy>
|
---|
103 | <from>'gateway'</from>
|
---|
104 | <to>$GetPropertyHomeCommunityIdIn.GetPropertyRequest/ns1:propertyFile</to>
|
---|
105 | </copy>
|
---|
106 | <copy>
|
---|
107 | <from>'localHomeCommunityId'</from>
|
---|
108 | <to>$GetPropertyHomeCommunityIdIn.GetPropertyRequest/ns1:propertyName</to>
|
---|
109 | </copy>
|
---|
110 | </assign>
|
---|
111 | <invoke name="InvokeGetHomeCommunityId" partnerLink="NhincComponentPropAccessorPL" operation="GetProperty" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentpropaccessor" portType="tns:NhincComponentPropAccessorPortType" inputVariable="GetPropertyHomeCommunityIdIn" outputVariable="GetPropertyHomeCommunityIdOut"/>
|
---|
112 | <assign name="AssignGetConnectionDocQueryEndpoint">
|
---|
113 | <copy>
|
---|
114 | <from>$GetPropertyHomeCommunityIdOut.GetPropertyResponse/ns1:propertyValue</from>
|
---|
115 | <to>$GetAdapterQueryEndpointIn.GetConnectionInfoEndpointByServiceNameRequest/ns2:homeCommunityWithServiceName/ns2:homeCommunity/ns3:homeCommunityId</to>
|
---|
116 | </copy>
|
---|
117 | <copy>
|
---|
118 | <from>'adapterdocquery'</from>
|
---|
119 | <to>$GetAdapterQueryEndpointIn.GetConnectionInfoEndpointByServiceNameRequest/ns2:homeCommunityWithServiceName/ns2:serviceName</to>
|
---|
120 | </copy>
|
---|
121 | </assign>
|
---|
122 | <invoke name="InvokeGetConnectionAdapterDocQuery" partnerLink="NhincComponentConnectionManagerPL" operation="GetConnectionInfoEndpointByServiceName" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetAdapterQueryEndpointIn" outputVariable="GetAdapterQueryEndpointOut"/>
|
---|
123 | <assign name="AssignAdapterDocQueryInput">
|
---|
124 | <copy>
|
---|
125 | <from variable="RespondingGateway_CrossGatewayQueryIn" part="RespondingGateway_CrossGatewayQueryRequest"/>
|
---|
126 | <to variable="AdapterDocQueryIn" part="RespondingGateway_CrossGatewayQueryRequest"/>
|
---|
127 | </copy>
|
---|
128 | <copy>
|
---|
129 | <from>ns4:doXslTransform('urn:stylesheets:wrap2serviceref.xsl', $GetAdapterQueryEndpointOut.ConnectionInfoEndpoint/ns2:serviceConnectionInfoEndpoints/ns2:serviceConnectionInfoEndpoint/ns3:EPR/ns3:EndpointReference)</from>
|
---|
130 | <to partnerLink="AdapterDocQueryPL"/>
|
---|
131 | </copy>
|
---|
132 | </assign>
|
---|
133 | <invoke name="InvokeAdapterDocQuery" partnerLink="AdapterDocQueryPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:adapterdocquery" portType="tns:AdapterDocQueryPortType" inputVariable="AdapterDocQueryIn" outputVariable="AdapterDocQueryOut"/>
|
---|
134 | <assign name="AssignAdapterQueryOutput">
|
---|
135 | <copy>
|
---|
136 | <from variable="AdapterDocQueryOut" part="RespondingGateway_CrossGatewayQueryResponse"/>
|
---|
137 | <to variable="RespondingGateway_CrossGatewayQueryOut" part="RespondingGateway_CrossGatewayQueryResponse"/>
|
---|
138 | </copy>
|
---|
139 | </assign>
|
---|
140 | </sequence>
|
---|
141 | </if>
|
---|
142 | </sequence>
|
---|
143 | </scope>
|
---|
144 | <reply name="ReplyNhincComponentInternalDocQueryOrch" partnerLink="NhincComponentInternalDocQueryOrchPL" operation="RespondingGateway_CrossGatewayQuery" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternaldocqueryorch" portType="tns:NhincComponentInternalDocQueryOrchPortType" variable="RespondingGateway_CrossGatewayQueryOut">
|
---|
145 | <sxt:trace>
|
---|
146 | <sxt:log level="info" location="onStart">
|
---|
147 | <ns4:from variable="RespondingGateway_CrossGatewayQueryOut"/>
|
---|
148 | </sxt:log>
|
---|
149 | <sxt:log level="warning" location="onStart">
|
---|
150 | <ns4:from>'### Reply from NhincComponentInternalDocQueryOrch BPEL ...'</ns4:from>
|
---|
151 | </sxt:log>
|
---|
152 | </sxt:trace>
|
---|
153 | </reply>
|
---|
154 | </sequence>
|
---|
155 | </process>
|
---|