source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/NhincProxyBPEL/src/NhinProxyNotification.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: 12.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<process
3 name="NhinProxyNotification"
4 targetNamespace="urn:gov:hhs:fha:nhinc:gateway:nhincproxybpel:nhinproxynotification"
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:nhinproxynotification"
12 xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2"
13 xmlns:nccommonproxy="urn:gov:hhs:fha:nhinc:common:nhinccommonproxy"
14 xmlns:conninfo="urn:gov:hhs:fha:nhinc:common:connectionmanagerinfo"
15 xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
16 xmlns:nccommon="urn:gov:hhs:fha:nhinc:common:nhinccommon"
17 xmlns:addr="http://schemas.xmlsoap.org/ws/2004/08/addressing"
18 xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
19 xmlns:hiemauditlog="urn:gov:hhs:fha:nhinc:common:hiemauditlog"
20 xmlns:auditlog="urn:gov:hhs:fha:nhinc:common:auditlog"
21 xmlns:nccommonorch="urn:gov:hhs:fha:nhinc:common:nhinccommoninternalorch">
22 <import namespace="urn:gov:hhs:fha:nhinc:nhincproxynotificationconsumer" location="Interfaces/wsdl/NhincProxyNotificationConsumer.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
23 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" location="Interfaces/wsdl/NhincComponentInternalAuditRepository.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
24 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" location="Interfaces/wsdl/NhincComponentConnectionManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
25 <import namespace="http://enterprise.netbeans.org/bpel/NhinSubscriptionWrapper" location="NhinSubscriptionWrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
26 <import namespace="http://docs.oasis-open.org/wsn/bw-2" location="Interfaces/wsdl/NhinSubscription.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
27 <import namespace="http://docs.oasis-open.org/wsrf/rw-2" location="Interfaces/wsdl/rw-2.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
28 <partnerLinks>
29 <partnerLink name="NhincAuditRepositoryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" partnerLinkType="tns:NhincComponentInternalAuditRepository" partnerRole="NhincComponentInternalAuditRepositoryPortTypeRole"/>
30 <partnerLink name="ConnectionManagerPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" partnerLinkType="tns:NhincComponentConnectionManager" partnerRole="NhincComponentConnectionManagerPortTypeRole"/>
31 <partnerLink name="NhinNotifyPL" xmlns:tns="http://enterprise.netbeans.org/bpel/NhinSubscriptionWrapper" partnerLinkType="tns:NotificationLinkType" partnerRole="NotificationConsumerRole"/>
32 <partnerLink name="NhinProxyNotifyPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxynotificationconsumer" partnerLinkType="tns:NhincProxyNotificationConsumer" myRole="NhincProxyNotificationConsumerPortTypeRole"/>
33 </partnerLinks>
34 <variables>
35 <variable name="NhinNotifyIn" xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2" messageType="wsntw:Notify"/>
36 <variable name="GetConnectionInfoOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetResponseMessage"/>
37 <variable name="GetConnectionInfoIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" messageType="tns:GetConnectionInfoEndpontFromNhinTargetRequestMessage"/>
38 <variable name="NotifyIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxynotificationconsumer" messageType="tns:NotifyRequestMessage"/>
39 </variables>
40 <sequence>
41 <receive name="ReceiveProxyNotify" createInstance="yes" partnerLink="NhinProxyNotifyPL" operation="Notify" xmlns:tns="urn:gov:hhs:fha:nhinc:nhincproxynotificationconsumer" portType="tns:NhincProxyNotificationConsumerPortType" variable="NotifyIn"/>
42 <scope name="ProcessNotifyScope">
43 <variables>
44 <variable name="LogNhinNotifyRequestOut" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogEventResponseMessage"/>
45 <variable name="LogNhinNotifyRequestIn" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" messageType="tns:LogNhinNotifyRequestMessage"/>
46 </variables>
47 <sequence name="ProcessNotifySeq">
48 <assign name="AssignLogNhinNotify">
49 <copy>
50 <from>'Nhin'</from>
51 <to>$LogNhinNotifyRequestIn.LogNhinNotifyRequest/auditlog:interface</to>
52 </copy>
53 <copy>
54 <from>'Outbound'</from>
55 <to>$LogNhinNotifyRequestIn.LogNhinNotifyRequest/auditlog:direction</to>
56 </copy>
57 <copy>
58 <from>$NotifyIn.NotifyRequest/wsnt:Notify</from>
59 <to>$LogNhinNotifyRequestIn.LogNhinNotifyRequest/hiemauditlog:message/wsnt:Notify</to>
60 </copy>
61 <copy>
62 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion</from>
63 <to>$LogNhinNotifyRequestIn.LogNhinNotifyRequest/hiemauditlog:message/nccommonorch:assertion</to>
64 </copy>
65 </assign>
66 <invoke name="InvokeLogNhinNotify" partnerLink="NhincAuditRepositoryPL" operation="LogNhinNotifyRequest" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" portType="tns:NhincComponentInternalAuditRepositoryPortType" inputVariable="LogNhinNotifyRequestIn" outputVariable="LogNhinNotifyRequestOut"/>
67 <assign name="AssignEndpointLookup">
68 <copy>
69 <from>$NotifyIn.NotifyRequest/nccommonproxy:nhinTargetSystem</from>
70 <to>$GetConnectionInfoIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:NhinTargetSystem</to>
71 </copy>
72 <copy>
73 <from>'notificationconsumer'</from>
74 <to>$GetConnectionInfoIn.GetConnectionInfoEndpontFromNhinTargetRequest/conninfo:serviceName</to>
75 </copy>
76 </assign>
77 <invoke name="InvokeEndpointLookup" partnerLink="ConnectionManagerPL" operation="GetConnectionInfoEndpontFromNhinTarget" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentconnectionmanager" portType="tns:NhincComponentConnectionManagerPortType" inputVariable="GetConnectionInfoIn" outputVariable="GetConnectionInfoOut"/>
78 <assign name="AssignNhinNotify">
79 <copy>
80 <from>$NotifyIn.NotifyRequest/wsnt:Notify</from>
81 <to variable="NhinNotifyIn" part="Notify"/>
82 </copy>
83 <copy>
84 <from>'notify'</from>
85 <to variable="NhinNotifyIn" property="wsntw:action"/>
86 </copy>
87 <copy>
88 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:claimFormRaw</from>
89 <to variable="NhinNotifyIn" property="wsntw:content"/>
90 </copy>
91 <copy>
92 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:claimFormRef</from>
93 <to variable="NhinNotifyIn" property="wsntw:contentReference"/>
94 </copy>
95 <copy>
96 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:expirationDate</from>
97 <to variable="NhinNotifyIn" property="wsntw:expirationDate"/>
98 </copy>
99 <copy>
100 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:dateOfSignature</from>
101 <to variable="NhinNotifyIn" property="wsntw:signDate"/>
102 </copy>
103 <copy>
104 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:purposeOfDisclosureCoded/nccommon:code</from>
105 <to variable="NhinNotifyIn" property="wsntw:purposeForUseRoleCode"/>
106 </copy>
107 <copy>
108 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystem</from>
109 <to variable="NhinNotifyIn" property="wsntw:purposeForUseCodeSystem"/>
110 </copy>
111 <copy>
112 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:purposeOfDisclosureCoded/nccommon:codeSystemName</from>
113 <to variable="NhinNotifyIn" property="wsntw:purposeForUseCodeSystemName"/>
114 </copy>
115 <copy>
116 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:purposeOfDisclosureCoded/nccommon:displayName</from>
117 <to variable="NhinNotifyIn" property="wsntw:purposeForUseDisplayName"/>
118 </copy>
119 <copy>
120 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:code</from>
121 <to variable="NhinNotifyIn" property="wsntw:userRoleCode"/>
122 </copy>
123 <copy>
124 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystem</from>
125 <to variable="NhinNotifyIn" property="wsntw:userRoleCodeSystem"/>
126 </copy>
127 <copy>
128 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:displayName</from>
129 <to variable="NhinNotifyIn" property="wsntw:userRoleCodeDisplayName"/>
130 </copy>
131 <copy>
132 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:roleCoded/nccommon:codeSystemName</from>
133 <to variable="NhinNotifyIn" property="wsntw:userRoleCodeSystemName"/>
134 </copy>
135 <copy>
136 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:org/nccommon:name</from>
137 <to variable="NhinNotifyIn" property="wsntw:userOrganization"/>
138 </copy>
139 <copy>
140 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:userName</from>
141 <to variable="NhinNotifyIn" property="wsntw:userName"/>
142 </copy>
143 <copy>
144 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:personName/nccommon:familyName</from>
145 <to variable="NhinNotifyIn" property="wsntw:userLastName"/>
146 </copy>
147 <copy>
148 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:personName/nccommon:givenName</from>
149 <to variable="NhinNotifyIn" property="wsntw:userFirstName"/>
150 </copy>
151 <copy>
152 <from>$NotifyIn.NotifyRequest/nccommonproxy:assertion/nccommon:userInfo/nccommon:personName/nccommon:secondNameOrInitials</from>
153 <to variable="NhinNotifyIn" property="wsntw:userMiddleName"/>
154 </copy>
155 <copy>
156 <from>string($GetConnectionInfoOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference/addr:Address)</from>
157 <to variable="NhinNotifyIn" property="wsntw:resource"/>
158 </copy>
159 <copy>
160 <from>bpel:doXslTransform('urn:stylesheets:wrap2serviceref.xsl', $GetConnectionInfoOut.GetConnectionInfoEndpontFromNhinTargetResponse/nccommon:EndpointReference)</from>
161 <to partnerLink="NhinNotifyPL"/>
162 </copy>
163 </assign>
164 <invoke name="InvokeNhinNotify" partnerLink="NhinNotifyPL" operation="Notify" portType="wsntw:NotificationConsumer" inputVariable="NhinNotifyIn"/>
165 </sequence>
166 </scope>
167 </sequence>
168</process>
Note: See TracBrowser for help on using the repository browser.