source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Gateway/EntityBPEL/src/EntitySubscription.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: 10.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<process
3 name="EntitySubscription"
4 targetNamespace="urn:gov:hhs:fha:nhinc:gateway:entitybpel:entitysubscription"
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:entitysubscription"
12 xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions"
13 xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
14 <import namespace="urn:gov:hhs:fha:nhinc:entitysubscriptionmanagement" location="Interfaces/wsdl/EntitySubscriptionManagement.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
15 <import namespace="http://docs.oasis-open.org/wsrf/rw-2" location="Interfaces/wsdl/rw-2.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
16 <import namespace="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" location="Interfaces/wsdl/NhincComponentInternalAuditRepository.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
17 <import namespace="urn:gov:hhs:fha:nhinc:entitycomponentinternalsubscribeorch" location="Interfaces/wsdl/EntityComponentInternalSubscribeOrch.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
18 <import namespace="urn:gov:hhs:fha:nhinc:entitycomponentinternalcdcsubscribeorch" location="Interfaces/wsdl/EntityComponentInternalCdcSubscribeOrch.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
19 <partnerLinks>
20 <partnerLink name="AuditRepositoryPL" xmlns:tns="urn:gov:hhs:fha:nhinc:nhinccomponentinternalauditrepository" partnerLinkType="tns:NhincComponentInternalAuditRepository" partnerRole="NhincComponentInternalAuditRepositoryPortTypeRole"/>
21 <partnerLink name="EntityInternalSubscribePL" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternalsubscribeorch" partnerLinkType="tns:EntityComponentInternalSubscribeOrch" partnerRole="EntityComponentInternalSubscribeOrchPortTypeRole"/>
22 <partnerLink name="EntityInternalCdcSubscribePL" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternalcdcsubscribeorch" partnerLinkType="tns:EntityComponentInternalCdcSubscribeOrch" partnerRole="EntityComponentInternalCdcSubscribeOrchPortTypeRole"/>
23 <partnerLink name="EntitySubscriptionPL" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubscriptionmanagement" partnerLinkType="tns:EntityNotificationProducer" myRole="EntityNotificationProducerPortTypeRole"/>
24 </partnerLinks>
25 <variables>
26 <variable name="SubscribeCdcBioPackageIn" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubscriptionmanagement" messageType="tns:SubscribeCdcBioPackageRequestMessage"/>
27 <variable name="SubscribeDocumentIn" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubscriptionmanagement" messageType="tns:SubscribeDocumentRequestMessage"/>
28 </variables>
29 <sequence>
30 <pick name="PickSubscriptionMessages" createInstance="yes">
31 <onMessage partnerLink="EntitySubscriptionPL" operation="SubscribeDocument" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubscriptionmanagement" portType="tns:EntityNotificationProducerPortType" variable="SubscribeDocumentIn">
32 <scope name="ProcessSubscribeScope">
33 <variables>
34 <variable name="EntityInternalSubscribeOut" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternalsubscribeorch" messageType="tns:SubscribeDocumentResponseMessage"/>
35 <variable name="EntityInternalSubscribeIn" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternalsubscribeorch" messageType="tns:SubscribeDocumentRequestMessage"/>
36 <variable name="SubscribeDocumentOut" messageType="tns:SubscribeDocumentResponseMessage"/>
37 </variables>
38 <faultHandlers>
39 <catch>
40 <sequence name="SubscriptionFaultSeq">
41 <assign name="AssignSubscriptionFault">
42 <copy>
43 <from>sxxf:current-dateTime()</from>
44 <to>$SubscribeDocumentOut.SubscribeDocumentResponse/wsnt:SubscribeResponse/wsnt:CurrentTime</to>
45 </copy>
46 <copy>
47 <from>sxxf:current-dateTime()</from>
48 <to>$SubscribeDocumentOut.SubscribeDocumentResponse/wsnt:SubscribeResponse/wsnt:TerminationTime</to>
49 </copy>
50 </assign>
51 <reply name="ReplySubscriptionFault" partnerLink="EntitySubscriptionPL" operation="SubscribeDocument" portType="tns:EntityNotificationProducerPortType" variable="SubscribeDocumentOut"/>
52 </sequence>
53 </catch>
54 </faultHandlers>
55 <sequence name="ProcessSubscribeSeq">
56 <empty name="Placeholder_Auidt_Request"/>
57 <assign name="AssignEntityInternalSubscribe">
58 <copy>
59 <from variable="SubscribeDocumentIn" part="SubscribeDocumentRequest"/>
60 <to variable="EntityInternalSubscribeIn" part="SubscribeDocumentRequest"/>
61 </copy>
62 </assign>
63 <invoke name="InvokeEntityInternalSubscribe" partnerLink="EntityInternalSubscribePL" operation="SubscribeDocument" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternalsubscribeorch" portType="tns:EntityComponentInternalSubscribeOrchPortType" inputVariable="EntityInternalSubscribeIn" outputVariable="EntityInternalSubscribeOut"/>
64 <assign name="AssignReply">
65 <copy>
66 <from>$EntityInternalSubscribeOut.SubscribeDocumentResponse/wsnt:SubscribeResponse</from>
67 <to>$SubscribeDocumentOut.SubscribeDocumentResponse/wsnt:SubscribeResponse</to>
68 </copy>
69 </assign>
70 <empty name="Placeholder_Audit_Response"/>
71 <reply name="ReplySubscription" partnerLink="EntitySubscriptionPL" operation="SubscribeDocument" portType="tns:EntityNotificationProducerPortType" variable="SubscribeDocumentOut"/>
72 </sequence>
73 </scope>
74 </onMessage>
75 <onMessage partnerLink="EntitySubscriptionPL" operation="SubscribeCdcBioPackage" xmlns:tns="urn:gov:hhs:fha:nhinc:entitysubscriptionmanagement" portType="tns:EntityNotificationProducerPortType" variable="SubscribeCdcBioPackageIn">
76 <scope name="ProcessCdcSubscribeScope">
77 <variables>
78 <variable name="EntityInternalCdcSubscribeOut" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternalcdcsubscribeorch" messageType="tns:CdcSubscribeDocumentResponseMessage"/>
79 <variable name="EntityInternalCdcSubscribeIn" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternalcdcsubscribeorch" messageType="tns:CdcSubscribeDocumentRequestMessage"/>
80 <variable name="SubscribeCdcBioPackageOut" messageType="tns:SubscribeCdcBioPackageResponseMessage"/>
81 </variables>
82 <faultHandlers>
83 <catch>
84 <sequence name="CdcSubscriptionFaultSeq">
85 <assign name="AssignCdcSubscriptionFault">
86 <copy>
87 <from>sxxf:current-dateTime()</from>
88 <to>$SubscribeCdcBioPackageOut.SubscribeCdcBioPackageResponse/wsnt:SubscribeResponse/wsnt:CurrentTime</to>
89 </copy>
90 <copy>
91 <from>sxxf:current-dateTime()</from>
92 <to>$SubscribeCdcBioPackageOut.SubscribeCdcBioPackageResponse/wsnt:SubscribeResponse/wsnt:TerminationTime</to>
93 </copy>
94 </assign>
95 <reply name="ReplyCdcSubscriptionFault" partnerLink="EntitySubscriptionPL" operation="SubscribeCdcBioPackage" portType="tns:EntityNotificationProducerPortType" variable="SubscribeCdcBioPackageOut"/>
96 </sequence>
97 </catch>
98 </faultHandlers>
99 <sequence name="ProcessCdcSubscribeSeq">
100 <empty name="Placeholder_Audit_Request"/>
101 <assign name="AssignEntityInternalCdcSubscribe">
102 <copy>
103 <from variable="SubscribeCdcBioPackageIn" part="SubscribeCdcBioPackageRequest"/>
104 <to variable="EntityInternalCdcSubscribeIn" part="CdcSubscribeDocumentRequest"/>
105 </copy>
106 </assign>
107 <invoke name="InvokeEntityInternalCdcSubscribe" partnerLink="EntityInternalCdcSubscribePL" operation="CdcSubscribeDocument" xmlns:tns="urn:gov:hhs:fha:nhinc:entitycomponentinternalcdcsubscribeorch" portType="tns:EntityComponentInternalCdcSubscribeOrchPortType" inputVariable="EntityInternalCdcSubscribeIn" outputVariable="EntityInternalCdcSubscribeOut"/>
108 <assign name="AssignCdcSubscription">
109 <copy>
110 <from>$EntityInternalCdcSubscribeOut.CdcSubscribeDocumentResponse/wsnt:SubscribeResponse</from>
111 <to>$SubscribeCdcBioPackageOut.SubscribeCdcBioPackageResponse/wsnt:SubscribeResponse</to>
112 </copy>
113 </assign>
114 <empty name="Placeholder_Audit_Response"/>
115 <reply name="ReplyCdcSubscription" partnerLink="EntitySubscriptionPL" operation="SubscribeCdcBioPackage" portType="tns:EntityNotificationProducerPortType" variable="SubscribeCdcBioPackageOut"/>
116 </sequence>
117 </scope>
118 </onMessage>
119 </pick>
120 </sequence>
121</process>
Note: See TracBrowser for help on using the repository browser.