1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <process
|
---|
3 | name="NhincProxyAuditQuery"
|
---|
4 | targetNamespace="urn:gov:hhs:fha:nhinc:gateway:nhincproxybpel:nhincproxyauditquery"
|
---|
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:nhincproxybpel:nhincproxyauditquery"
|
---|
12 | xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
|
---|
13 | xmlns:nccommon="urn:gov:hhs:fha:nhinc:common:nhinccommon"
|
---|
14 | xmlns:nccommonproxy="urn:gov:hhs:fha:nhinc:common:nhinccommonproxy"
|
---|
15 | xmlns:conninfo="urn:gov:hhs:fha:nhinc:common:connectionmanagerinfo"
|
---|
16 | xmlns:auditquery="http://services.nhin.com/wsdl/auditlogquery"
|
---|
17 | xmlns:soapaddr04="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
---|
18 | xmlns:audit="http://nhinc.services.com/schema/auditmessage"
|
---|
19 | xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions"
|
---|
20 | xmlns:auditlog="urn:gov:hhs:fha:nhinc:common:auditlog">
|
---|
21 | <import namespace="urn:gov:hhs:fha:nhinc:nhincproxyauditlogquery" location="Interfaces/wsdl/NhincProxyAuditLogQuery.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
22 | <import namespace="http://services.nhin.com/wsdl/auditlogquery" location="Interfaces/wsdl/NhinAuditLogQuery.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:nhinccomponentinternalauditrepository" location="Interfaces/wsdl/NhincComponentInternalAuditRepository.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
|
---|
25 | <partnerLinks>
|
---|
26 | <partnerLink name="ConnectionManagerPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" partnerLinkType="tns:NhincComponentConnectionManager" partnerRole="NhincComponentConnectionManagerPortTypeRole"/>
|
---|
27 | <partnerLink name="NhincAuditRepositoryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" partnerLinkType="tns:NhincComponentInternalAuditRepository" partnerRole="NhincComponentInternalAuditRepositoryPortTypeRole"/>
|
---|
28 | <partnerLink name="NhinAuditQueryPL" xmlns:tns="http://services.nhin.com/wsdl/auditlogquery" partnerLinkType="tns:auditlogquery" partnerRole="AuditLogQueryRole"/>
|
---|
29 | <partnerLink name="NhincProxyAuditQueryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxyauditlogquery" partnerLinkType="tns:NhincProxyAuditLogQuery" myRole="NhincProxyAuditLogQueryPortTypeRole"/>
|
---|
30 | </partnerLinks>
|
---|
31 | <variables>
|
---|
32 | <variable name="NhinAuditQueryOut" xmlns:tns="http://services.nhin.com/wsdl/auditlogquery" messageType="tns:FindAuditEventsResponseMessage"/>
|
---|
33 | <variable name="NhinAuditQueryIn" xmlns:tns="http://services.nhin.com/wsdl/auditlogquery" messageType="tns:FindAuditEventsRequestMessage"/>
|
---|
34 | <variable name="NhincProxyAuditQueryOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxyauditlogquery" messageType="tns:findAuditEventsResponseMessage"/>
|
---|
35 | <variable name="NhincProxyAuditQueryIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxyauditlogquery" messageType="tns:findAuditEventsRequestMessage"/>
|
---|
36 | </variables>
|
---|
37 | <sequence>
|
---|
38 | <scope name="NhinProxyAuditQueryScope">
|
---|
39 | <variables>
|
---|
40 | <variable name="LogFindAuditEventsOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
|
---|
41 | <variable name="LogFindAuditEventsIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogFindAuditEventsRequestMessage"/>
|
---|
42 | <variable name="GetConnectionInfoOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetResponseMessage"/>
|
---|
43 | <variable name="GetConnectionInfoIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetRequestMessage"/>
|
---|
44 | </variables>
|
---|
45 | <faultHandlers>
|
---|
46 | <catch faultName="sxeh:systemFault" faultVariable="systemFaultVar" faultMessageType="sxeh:faultMessage">
|
---|
47 | <sequence name="SystemFaultSeq">
|
---|
48 | <assign name="AssignFault">
|
---|
49 | <sxt:trace>
|
---|
50 | <sxt:log level="info" location="onStart">
|
---|
51 | <bpel:from>'NhincProxyAuditQuery.bpel - A system fault was encountered. Fault details follow...'</bpel:from>
|
---|
52 | </sxt:log>
|
---|
53 | <sxt:log level="warning" location="onStart">
|
---|
54 | <bpel:from variable="systemFaultVar"/>
|
---|
55 | </sxt:log>
|
---|
56 | </sxt:trace>
|
---|
57 | <copy>
|
---|
58 | <from>sxxf:current-dateTime()</from>
|
---|
59 | <to>$NhincProxyAuditQueryOut.FindAuditEventsResponse/audit:findAuditEventsReturn/audit:EventIdentification/@EventDateTime</to>
|
---|
60 | </copy>
|
---|
61 | </assign>
|
---|
62 | <reply name="ReplyFault" partnerLink="NhincProxyAuditQueryPL" operation="findAuditEvents" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxyauditlogquery" portType="tns:NhincProxyAuditLogQueryPortType" variable="NhincProxyAuditQueryOut"/>
|
---|
63 | </sequence>
|
---|
64 | </catch>
|
---|
65 | </faultHandlers>
|
---|
66 | <sequence name="NhinProxyAuditQuerySeq">
|
---|
67 | <receive name="ReceiveNhinAuditQuery" createInstance="yes" partnerLink="NhincProxyAuditQueryPL" operation="findAuditEvents" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxyauditlogquery" portType="tns:NhincProxyAuditLogQueryPortType" variable="NhincProxyAuditQueryIn"/>
|
---|
68 | <assign name="AssignEndpointLookup">
|
---|
69 | <copy>
|
---|
70 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:nhinTargetSystem</from>
|
---|
71 | <to>$GetConnectionInfoIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:NhinTargetSystem</to>
|
---|
72 | </copy>
|
---|
73 | <copy>
|
---|
74 | <from>'auditquery'</from>
|
---|
75 | <to>$GetConnectionInfoIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:serviceName</to>
|
---|
76 | </copy>
|
---|
77 | </assign>
|
---|
78 | <invoke name="InvokeEndpointLookup" partnerLink="ConnectionManagerPL" operation="GetConnectionInfoEndpontFromNhinTarget" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetConnectionInfoIn" outputVariable="GetConnectionInfoOut"/>
|
---|
79 | <assign name="AssignAuditQueryRequest">
|
---|
80 | <copy>
|
---|
81 | <from>bpel:doXslTransform('urn:stylesheets:wrap2serviceref.xsl', $GetConnectionInfoOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference)</from>
|
---|
82 | <to partnerLink="NhinAuditQueryPL"/>
|
---|
83 | </copy>
|
---|
84 | <copy>
|
---|
85 | <from>'queryAuditLog'</from>
|
---|
86 | <to variable="NhinAuditQueryIn" property="auditquery:action"/>
|
---|
87 | </copy>
|
---|
88 | <copy>
|
---|
89 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:expirationDate</from>
|
---|
90 | <to variable="NhinAuditQueryIn" property="auditquery:expirationDate"/>
|
---|
91 | </copy>
|
---|
92 | <copy>
|
---|
93 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:dateOfSignature</from>
|
---|
94 | <to variable="NhinAuditQueryIn" property="auditquery:signDate"/>
|
---|
95 | </copy>
|
---|
96 | <copy>
|
---|
97 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:personName/nccommon:familyName</from>
|
---|
98 | <to variable="NhinAuditQueryIn" property="auditquery:userLastName"/>
|
---|
99 | </copy>
|
---|
100 | <copy>
|
---|
101 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:personName/nccommon:givenName</from>
|
---|
102 | <to variable="NhinAuditQueryIn" property="auditquery:userFirstName"/>
|
---|
103 | </copy>
|
---|
104 | <copy>
|
---|
105 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:personName/nccommon:secondNameOrInitials</from>
|
---|
106 | <to variable="NhinAuditQueryIn" property="auditquery:userMiddleName"/>
|
---|
107 | </copy>
|
---|
108 | <copy>
|
---|
109 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:userName</from>
|
---|
110 | <to variable="NhinAuditQueryIn" property="auditquery:userName"/>
|
---|
111 | </copy>
|
---|
112 | <copy>
|
---|
113 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:org/nccommon:name</from>
|
---|
114 | <to variable="NhinAuditQueryIn" property="auditquery:userOrganization"/>
|
---|
115 | </copy>
|
---|
116 | <copy>
|
---|
117 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:code</from>
|
---|
118 | <to variable="NhinAuditQueryIn" property="auditquery:userRoleCode"/>
|
---|
119 | </copy>
|
---|
120 | <copy>
|
---|
121 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystemName</from>
|
---|
122 | <to variable="NhinAuditQueryIn" property="auditquery:userRoleCodeSystemName"/>
|
---|
123 | </copy>
|
---|
124 | <copy>
|
---|
125 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystem</from>
|
---|
126 | <to variable="NhinAuditQueryIn" property="auditquery:userRoleCodeSystem"/>
|
---|
127 | </copy>
|
---|
128 | <copy>
|
---|
129 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:displayName</from>
|
---|
130 | <to variable="NhinAuditQueryIn" property="auditquery:userRoleCodeDisplayName"/>
|
---|
131 | </copy>
|
---|
132 | <copy>
|
---|
133 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:claimFormRef</from>
|
---|
134 | <to variable="NhinAuditQueryIn" property="auditquery:contentReference"/>
|
---|
135 | </copy>
|
---|
136 | <copy>
|
---|
137 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:claimFormRaw</from>
|
---|
138 | <to variable="NhinAuditQueryIn" property="auditquery:content"/>
|
---|
139 | </copy>
|
---|
140 | <copy>
|
---|
141 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:purposeOfDisclosureCoded/nccommon:code</from>
|
---|
142 | <to variable="NhinAuditQueryIn" property="auditquery:purposeForUseRoleCode"/>
|
---|
143 | </copy>
|
---|
144 | <copy>
|
---|
145 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystem</from>
|
---|
146 | <to variable="NhinAuditQueryIn" property="auditquery:purposeForUseCodeSystem"/>
|
---|
147 | </copy>
|
---|
148 | <copy>
|
---|
149 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystemName</from>
|
---|
150 | <to variable="NhinAuditQueryIn" property="auditquery:purposeForUseCodeSystemName"/>
|
---|
151 | </copy>
|
---|
152 | <copy>
|
---|
153 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion/nccommon:purposeOfDisclosureCoded/nccommon:displayName</from>
|
---|
154 | <to variable="NhinAuditQueryIn" property="auditquery:purposeForUseDisplayName"/>
|
---|
155 | </copy>
|
---|
156 | <copy>
|
---|
157 | <from>string($GetConnectionInfoOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference/soapaddr04:Address)</from>
|
---|
158 | <to variable="NhinAuditQueryIn" property="auditquery:resource"/>
|
---|
159 | </copy>
|
---|
160 | <copy>
|
---|
161 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/audit:FindAuditEvents</from>
|
---|
162 | <to variable="NhinAuditQueryIn" part="FindAuditEventsRequest"/>
|
---|
163 | </copy>
|
---|
164 | <copy>
|
---|
165 | <from variable="NhinAuditQueryIn" part="FindAuditEventsRequest"/>
|
---|
166 | <to>$LogFindAuditEventsIn.LogFindAuditEventsRequest/auditlog:message/audit:FindAuditEvents</to>
|
---|
167 | </copy>
|
---|
168 | <copy>
|
---|
169 | <from>$NhincProxyAuditQueryIn.FindAuditEventsRequest/nccommonproxy:assertion</from>
|
---|
170 | <to>$LogFindAuditEventsIn.LogFindAuditEventsRequest/auditlog:message/auditlog:assertion</to>
|
---|
171 | </copy>
|
---|
172 | </assign>
|
---|
173 | <invoke name="InvokeLogAuditQuery" partnerLink="NhincAuditRepositoryPL" operation="LogFindAuditEvents" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogFindAuditEventsIn" outputVariable="LogFindAuditEventsOut"/>
|
---|
174 | <invoke name="InvokeNhinAuditQuery" partnerLink="NhinAuditQueryPL" operation="FindAuditEvents" xmlns:tns="http://services.nhin.com/wsdl/auditlogquery" portType="tns:AuditLogQuery" inputVariable="NhinAuditQueryIn" outputVariable="NhinAuditQueryOut"/>
|
---|
175 | <assign name="AssignAuditQueryResults">
|
---|
176 | <copy>
|
---|
177 | <from variable="NhinAuditQueryOut" part="FindAuditEventsResponse"/>
|
---|
178 | <to variable="NhincProxyAuditQueryOut" part="FindAuditEventsResponse"/>
|
---|
179 | </copy>
|
---|
180 | </assign>
|
---|
181 | <reply name="ReplyNhinProxyAuditQuery" partnerLink="NhincProxyAuditQueryPL" operation="findAuditEvents" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxyauditlogquery" portType="tns:NhincProxyAuditLogQueryPortType" variable="NhincProxyAuditQueryOut"/>
|
---|
182 | </sequence>
|
---|
183 | </scope>
|
---|
184 | </sequence>
|
---|
185 | </process>
|
---|