-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathservice-scripts.xml
160 lines (160 loc) · 6.63 KB
/
service-scripts.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<es:transforms xmlns:es="urn:hpcc:esdl:script">
<es:transform name="GenericOutOfBand" target="soap:Body/{$query}">
<es:choose>
<es:when test="true()">
<es:set-value target="_ClientIP" value="$espUserPeer"/>
<es:set-value target="_DeliveryMethod" value="'XML'"/>
<es:set-value target="_ESPClientInterfaceVersion" value="$clientversion"/>
<es:set-value target="_ESPMethodName" value="$method"/>
<es:set-value target="_LoginId" value="$espUserName"/>
</es:when>
</es:choose>
</es:transform>
<es:transform name="UserOutOfBand" target="soap:Body/{$query}">
<es:choose>
<es:when test="true()">
<es:set-value target="_QueryId" value="//User/QueryId"/>
<es:set-value target="_ReferenceCode" value="//User/ReferenceCode"/>
</es:when>
</es:choose>
<es:choose>
<es:otherwise>
<es:choose>
<es:otherwise>
<es:append-to-value target="GLBPurpose" value="'0'"/>
</es:otherwise>
<es:when test="string-length(normalize-space(//User/GLBPurpose))=0"/>
</es:choose>
</es:otherwise>
<es:when test="contains($glbAllowed, concat(' ', string(number(//User/GLBPurpose)), ' '))">
<es:append-to-value target="GLBPurpose" value="string(number(//User/GLBPurpose))"/>
</es:when>
</es:choose>
<es:choose>
<es:otherwise>
<es:choose>
<es:otherwise>
<es:append-to-value target="DPPAPurpose" value="'0'"/>
</es:otherwise>
<es:when test="string-length(normalize-space(//User/DLPurpose))=0"/>
</es:choose>
</es:otherwise>
<es:when test="contains($dppaAllowed, concat(' ', string(number(//User/DLPurpose)), ' '))">
<es:append-to-value target="DPPAPurpose" value="string(number(//User/DLPurpose))"/>
</es:when>
</es:choose>
<es:choose>
<es:otherwise>
<es:set-value target="_CompanyId" value="''"/>
<es:set-value target="ExcludeDMVPII" value="'1'"/>
<es:choose>
<es:when test="string-length($SSNMask)>0">
<es:choose>
<es:otherwise>
<es:set-value target="SSNMask" value="$SSNMask"/>
</es:otherwise>
<es:when test="$fullssn=0">
<es:set-value target="SSNMask" value="'none'"/>
</es:when>
</es:choose>
</es:when>
</es:choose>
</es:otherwise>
<es:when test="$internal_user=1">
<es:set-value target="_CompanyId" value="//User/CompanyId"/>
<es:choose>
<es:when test="string-length(//User/DataPermissionMask)>0">
<es:set-value target="DataPermissionMask" value="//User/DataPermissionMask"/>
</es:when>
</es:choose>
<es:choose>
<es:when test="string-length(//User/DataRestrictionMask)>0">
<es:set-value target="DataRestrictionMask" value="//User/DataRestrictionMask"/>
</es:when>
</es:choose>
<es:choose>
<es:when test="string-length(//User/DeathMasterPurpose)>0">
<es:set-value target="DeathMasterPurpose" value="//User/DeathMasterPurpose"/>
</es:when>
</es:choose>
<es:choose>
<es:when test="string-length(//User/DLMask)>0">
<es:set-value target="DLMask" value="//User/DLMask"/>
</es:when>
</es:choose>
<es:choose>
<es:when test="string-length(//User/DOBMask)>0">
<es:set-value target="DOBMask" value="//User/DOBMask"/>
</es:when>
</es:choose>
<es:choose>
<es:when test="string-length(//User/ExcludeDMVPII)>0">
<es:set-value target="ExcludeDMVPII" value="//User/ExcludeDMVPII"/>
</es:when>
</es:choose>
<es:choose>
<es:when test="string-length(//User/IndustryClass)>0">
<es:set-value target="IndustryClass" value="//User/IndustryClass"/>
</es:when>
</es:choose>
<es:choose>
<es:when test="string-length(//User/SSNMask)>0">
<es:set-value target="SSNMask" value="//User/SSNMask"/>
</es:when>
</es:choose>
</es:when>
</es:choose>
</es:transform>
<es:transform name="UserInBand" target="soap:Body/{$query}/{$request}/Row/User">
<es:choose>
<es:otherwise>
<es:choose>
<es:otherwise>
<es:set-value target="GLBPurpose" value="'0'"/>
</es:otherwise>
<es:when test="string-length(normalize-space(//GLBPurpose))=0"/>
</es:choose>
</es:otherwise>
<es:when test="contains($glbAllowed, concat(' ', string(number(//GLBPurpose)), ' '))">
<es:set-value target="GLBPurpose" value="string(number(//GLBPurpose))"/>
</es:when>
</es:choose>
<es:choose>
<es:otherwise>
<es:choose>
<es:otherwise>
<es:set-value target="DLPurpose" value="'0'"/>
</es:otherwise>
<es:when test="string-length(normalize-space(//DLPurpose))=0"/>
</es:choose>
</es:otherwise>
<es:when test="contains($dppaAllowed, concat(' ', string(number(//DLPurpose)), ' '))">
<es:set-value target="DLPurpose" value="string(number(//DLPurpose))"/>
</es:when>
</es:choose>
</es:transform>
<es:transform name="BertErniePlatformOutOfBand" target="soap:Body/{$query}">
<es:choose>
<es:when test="true()">
<es:append-to-value target="LogInfo/ProductId" value="'7'"/>
<es:append-to-value target="LogInfo/SubProductId" value="'70014'"/>
</es:when>
</es:choose>
</es:transform>
<es:transform name="BertErniePlatformInBand" target="soap:Body/{$query}/{$request}/Row">
<es:choose>
<es:when required="false" test="$internal_user=1">
<es:choose>
<es:when required="false" test="string-length(ProductCode)=0">
<es:append-to-value name="prod_i" optional="false" target="BertErnieUser/ProductCode" value="'10'"/>
</es:when>
</es:choose>
</es:when>
<es:otherwise>
<es:append-to-value name="gcid_x" optional="false" target="BertErnieUser/GlobalCompanyId" value="$gc_id"/>
<es:append-to-value name="prod_x" optional="false" target="BertErnieUser/ProductCode" value="10"/>
<es:append-to-value name="industry_x" optional="false" target="BertErnieUser/IndustryTypeName" value="$BERTERNIE_API_PROGRAM"/>
</es:otherwise>
</es:choose>
</es:transform>
</es:transforms>