-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInline+Functions.doc
More file actions
381 lines (349 loc) · 14.4 KB
/
Inline+Functions.doc
File metadata and controls
381 lines (349 loc) · 14.4 KB
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
Message-ID: <67278646.16700.1540845984594.JavaMail.confluence@ps2pr028231.express-scripts.com>
Subject: Exported From Confluence
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_16699_174226914.1540845984594"
------=_Part_16699_174226914.1540845984594
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Location: file:///C:/exported.html
<html xmlns:o=3D'urn:schemas-microsoft-com:office:office'
xmlns:w=3D'urn:schemas-microsoft-com:office:word'
xmlns:v=3D'urn:schemas-microsoft-com:vml'
xmlns=3D'urn:w3-org-ns:HTML'>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8=
">
<title>Inline Functions</title>
<!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:TargetScreenSize>1024x640</o:TargetScreenSize>
<o:PixelsPerInch>72</o:PixelsPerInch>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>90</w:Zoom>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml>
<![endif]-->
<style>
<!--
@page Section1 {
size: 8.5in 11.0in;
margin: 1.0in;
mso-header-margin: .5in;
mso-footer-margin: .5in;
mso-paper-source: 0;
}
table {
border: solid 1px;
border-collapse: collapse;
}
table td, table th {
border: solid 1px;
padding: 5px;
}
td {
page-break-inside: avoid;
}
tr {
page-break-after: avoid;
}
div.Section1 {
page: Section1;
}
/* Confluence print stylesheet. Common to all themes for print medi=
a */
/* Full of !important until we improve batching for print CSS */
@media print {
#main {
padding-bottom: 1em !important; /* The default padding of 6em is to=
o much for printouts */
}
body {
font-family: Arial, Helvetica, FreeSans, sans-serif;
font-size: 10pt;
line-height: 1.2;
}
body, #full-height-container, #main, #page, #content, .has-personal-sid=
ebar #content {
background: #fff !important;
color: #000 !important;
border: 0 !important;
width: 100% !important;
height: auto !important;
min-height: auto !important;
margin: 0 !important;
padding: 0 !important;
display: block !important;
}
a, a:link, a:visited, a:focus, a:hover, a:active {
color: #000;
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
font-family: Arial, Helvetica, FreeSans, sans-serif;
page-break-after: avoid;
}
pre {
font-family: Monaco, "Courier New", monospace;
}
#header,
.aui-header-inner,
#navigation,
#sidebar,
.sidebar,
#personal-info-sidebar,
.ia-fixed-sidebar,
.page-actions,
.navmenu,
.ajs-menu-bar,
.noprint,
.inline-control-link,
.inline-control-link a,
a.show-labels-editor,
.global-comment-actions,
.comment-actions,
.quick-comment-container,
#addcomment {
display: none !important;
}
/* CONF-28544 cannot print multiple pages in IE */
#splitter-content {
position: relative !important;
}
.comment .date::before {
content: none !important; /* remove middot for print view */
}
h1.pagetitle img {
height: auto;
width: auto;
}
.print-only {
display: block;
}
#footer {
position: relative !important; /* CONF-17506 Place the footer at en=
d of the content */
margin: 0;
padding: 0;
background: none;
clear: both;
}
#poweredby {
border-top: none;
background: none;
}
#poweredby li.print-only {
display: list-item;
font-style: italic;
}
#poweredby li.noprint {
display: none;
}
/* no width controls in print */
.wiki-content .table-wrap,
.wiki-content p,
.panel .codeContent,
.panel .codeContent pre,
.image-wrap {
overflow: visible !important;
}
/* TODO - should this work? */
#children-section,
#comments-section .comment,
#comments-section .comment .comment-body,
#comments-section .comment .comment-content,
#comments-section .comment p {
page-break-inside: avoid;
}
#page-children a {
text-decoration: none;
}
/**
hide twixies
the specificity here is a hack because print styles
are getting loaded before the base styles. */
#comments-section.pageSection .section-header,
#comments-section.pageSection .section-title,
#children-section.pageSection .section-header,
#children-section.pageSection .section-title,
.children-show-hide {
padding-left: 0;
margin-left: 0;
}
.children-show-hide.icon {
display: none;
}
/* personal sidebar */
.has-personal-sidebar #content {
margin-right: 0px;
}
.has-personal-sidebar #content .pageSection {
margin-right: 0px;
}
.no-print, .no-print * {
display: none !important;
}
}
-->
</style>
</head>
<body>
<h1>Inline Functions</h1>
<div class=3D"Section1">
<p>Inline functions created:</p>
<ol>
<li><strong>uppercase</strong> =E2=80=93 converts the session variable to u=
ppercase</li>
<li><strong>lowercase</strong> =E2=80=93 converts the session variable to l=
owercase</li>
<li><strong>dateformat </strong>=E2=80=93 converts the date form=
at for the lookup value<br> syntax: $<inline function name>(${lookup =
date value},actual date format, expected date format)<br>Example: "$d=
ateformat(${Demo[0].E111-ELIG-FROM-DT},yyyyMMdd,MM/dd/yyyy)"</li>
<li><strong>currentdate</strong> =E2=80=93 converts the date format in a st=
ring to current date<br>Example:"$currentdate(Balance as of MM/dd/yyyy)"&nb=
sp; </li>
<li><strong>transform</strong>=E2=80=93check the possible values from looku=
p value<br>syntax: $<inline function name>(${lookup value}, actual lo=
okup value, expected value, actual lookup value, expected value)<br>Example=
: $transform(${Demo[0].E111-INTERNET-IND},1,Active,2,Deactive)"</li>
<li><strong>sum </strong>- adds numbers separated by comma. Also, considers=
numbers with '$' prefix <br>syntax: $sum(<numbers-separated-by-comma>=
;)<br>Ex: $sum(45.34,234,-90) (or) $sum($45.34,$234,$-90)</li>
<li><strong>concat</strong> - concats two strings<br>Example: $concat(test,=
case)</li>
<li><strong>datefTimeFormat </strong>=E2=80=93 converts the date=
time format for the lookup value syntax: $<inline function name>(${l=
ookup date time value},actual date time format, expected date tim=
e format)<br> Example: "$dateTimeformat(${dbresponse0=
.result[0].INSERT_TMS},yyyy-MM-dd HH:mm:ss.SSSSSS,yyyy-MM-dd-HH:mm:ss.SSSSS=
S)"</li>
<li><strong>substring </strong>-<strong> </strong>Returns substring b=
ased on the string, startIndex and endIndex. Index starts with zero by defa=
ult.<br> &=
nbsp;Example : <span style=3D"color: rgb(51,51,51);text-transform: none;tex=
t-indent: 0.0px;letter-spacing: normal;word-spacing: 0.0px;float: none;disp=
lay: inline;white-space: normal;font-size-adjust: none;font-stretch: normal=
;background-color: rgb(245,245,245);">$substring(${getClientSetupResponse.R=
esponse.ResPrescriptionList.ResPrescriptionDrugNdc}, 0, 6)</span><br> =
If we want string position need to start from the 1 then we need to use the=
below syntax.<br> &nb=
sp; Example : <span style=3D"color: rgb(51,51,51);">$substring(${getCl=
ientSetupResponse.Response.ResPrescriptionList.ResPrescriptionDrugNdc}, 0, =
6,1)</span></li>
<li><strong>and</strong> - Returns true only if all the values are true and=
return false if at least one value is false.<br>Example : $and($notequal($=
{StatusChangeTrigger.result[0].PROCESS_STATUS_CD},R),$notequal(${StatusCurr=
Part.result[0].PROCESS_STATUS_CD},C)).</li>
<li><strong>or</strong>- Returns false only if all the values are false and=
return true if at least one value is true.<br>Example : $or($notequal(${St=
atusChangeTrigger.result[0].PROCESS_STATUS_CD},R),$notequal(${StatusCurrPar=
t.result[0].PROCESS_STATUS_CD},C)).</li>
<li><strong>not</strong>- Returns true only if value is false and return fa=
lse if value is true.(should pass only one value)<br>Example : $not($notequ=
al(${StatusChangeTrigger.result[0].PROCESS_STATUS_CD},R)).</li>
<li><strong>division</strong> : provides the quotient in integer after divi=
ding the 2 arguments. e.g. $division(${selectedRow},3).</li>
<li><strong>datemodifier</strong> - Modifies the date, month or year of giv=
en date and return new date in same format as input.<br>Syntax : $datemodif=
ier(old date,format,modifier:count)<br>Modifier : to change day-> date, =
month-> month, year-> year.Count : count can be + or - integer (+1 or=
-1).<br>Example : $datemodifier(2018-01-03,yyyy-MM-dd,date:3)--->>20=
18-01-06</li>
<li><p><strong>emptyspacegenerator</strong>(base string,len) - modifies the=
<base string> to a string containing empty spaces at the end until i=
t reaches a length of <len> <br>It can be used in mainframe test=
cases to set the length of the field based on the available length in the =
rumba screen.</p></li>
<li><p><strong>split - </strong>Populate the data into session by splitting=
the data based on the delimiter provided.</p><p> Syntax : =
$split(content,|,response) =E2=86=92 content: flat String, | : any de=
limiter value, alias name to populate the data into session.</p></li>
<li><strong>noquotes</strong> - replaces the string with quotes to eit=
her a number or Boolean by removing the quotes around it. See below for usa=
ge and the difference with and without this inline function.<br>e.g - =
"age": "${DaaSResponse.results.animal.age}"&nbs=
p; =E2=86=92 "age" : "10"<br> =
"age": "$noquotes(${DaaSResponse.results.animal.age})"=
=E2=86=92 "age" : 10</li>
</ol>
<p> 18. <strong>encryptBase64</strong> - It will take th=
e plain text/content and return base 64 encrypted format as below.<br> =
; Ex:$encryptBase64(Inline =
functions created) and it will return the encrypted base 64 content as "SW5=
saW5lIGZ1bmN0aW9ucyBjcmVhdGVk"<br> 19. <strong>decryptBa=
se64</strong> - it will decrypt the base 64 encrypted content format and re=
turn the plain string.<br> =
Ex:$decryptBase64(SW5saW5lIGZ1bmN0aW9ucyBjcmVhdGVk) and it will retur=
n plain text like "Inline functions created"</p>
<p> 20. <strong>append</strong> - it will take list of strings=
as input(any number of) and it will append the strings one after another.<=
br> Ex : $append(abcd=
,efgh,!,@,%,^,&,*,{,},[,], ,(,;,:,$,%,`,>,<,sgdfhgdshfghks,$$$$,x=
yz.abcd)" and it will return "abcdefgh!@%^&*{}[] (;:$%`><sgdfhgds=
hfghks$$$$xyz.abcd"<br> &nb=
sp; it will not accept couple of special characters like <str=
ong>)</strong>,'<strong>,</strong>',<strong>"</strong>.</p>
<p> 21. <strong>index</strong> - This inline function wi=
ll take two input strings as parameters ,one is target string and second on=
e is char sequence(the one which we need the index for),it will return the =
first index(integer) of the char sequence in the target string.=
if that particular char sequence is in found in the target string it will r=
eturn -1.</p>
<p> Ex: $index(The following litera=
ls are added into session data,data),it will return integer 46<br> &n=
bsp; $index(The following literal=
s are added into session data,date),it will return integer -1</p>
<p><br><br></p>
<p><br></p>
<p><strong>Features</strong>:</p>
<ol>
<li>Inline functions can be used multiple times within a CopyBook request.<=
/li>
<li>Without an inline function, the session variable will be passed as it i=
s.</li>
</ol>
<p><strong>Format</strong> - $<inline function name>(${<session va=
riable>})</p>
<p><strong>Sample JSON:</strong></p>
<p>"testSteps": [{</p>
<p> "input": {</p>
<p> "mqendPointName":=
"E110",</p>
<p> "configName": "MQ=
",</p>
<p> "E110-SEARCH-IND"=
: "M",</p>
<p> "E110-MEMBER" : "=
$uppercase(${memberNumber})",</p>
<p> "E110-GROUP": "$l=
owercase(${memberGroup})",</p>
<p> }</p>
<p>}]</p>
<p><strong>Sample JSON:</strong></p>
<p>{<br> "select": {<br> "label": "$<strong>emptyspacegenerator</strong>(${=
tdmResponse2[0].groupId},17)COPAY GROUP CARD ${tdmResponse2[0].possibleStar=
tDate} PROD EH8481 ${tdmResponse2[0].possibleEndDate}",<br> "value": "s",<b=
r> "position": "before"<br> }<br> },</p>
<p>Feature :Inline function arguments with special charcter.</p>
<p>Enhanced inline function capability by allowing special character as a a=
rguments. Below valid format</p>
<p>Format : 1. $inlineFunctionName('agr1,arg2,arg3')</p>
<p>2. $inlineFunctionName('agr1,arg2,$subInlineFun('agr1,arg2')')</p>
<p>3. $inlineFunctionName('agr1','arg2','arg3')</p>
<p>4. $inlineFunctionName('agr1','arg2','$subInlineFun('agr1','arg2')')</p>
<p><br></p>
<p><br></p>
</div>
</body>
</html>
------=_Part_16699_174226914.1540845984594--