/
GenericProcessSample11.json
339 lines (339 loc) · 12.7 KB
/
GenericProcessSample11.json
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
{
"name": "WebSphere - Example 11 - Discover & Templatize Cluster Configuration Data",
"description": "Sample process to pull Cluster configuration data from a WAS instance and turn that data into a template.",
"rootActivity": {
"edges": [
{
"to": "Clean working directory",
"type": "ALWAYS",
"value": ""
},
{
"to": "Create Cluster Component",
"from": "Switch",
"type": "VALUE",
"value": "false"
},
{
"to": "WebSphere - Templatize Cluster Configuration Data",
"from": "WebSphere Configuration Discovery",
"type": "SUCCESS",
"value": ""
},
{
"to": "Create component version",
"from": "Switch",
"type": "VALUE",
"value": "true"
},
{
"to": "Check If Cluster Component exists",
"from": "GetInfo",
"type": "SUCCESS",
"value": ""
},
{
"to": "WebSphere Configuration Discovery",
"from": "Clean working directory",
"type": "SUCCESS",
"value": ""
},
{
"to": "Switch",
"from": "Check If Cluster Component exists",
"type": "ALWAYS",
"value": ""
},
{
"to": "Create component version",
"from": "Create Cluster Component",
"type": "SUCCESS",
"value": ""
},
{
"to": "GetInfo",
"from": "WebSphere - Templatize Cluster Configuration Data",
"type": "SUCCESS",
"value": ""
},
{
"to": "79e6d743a67d8e918c55849d1a18f1",
"from": "Create component version",
"type": "SUCCESS",
"value": ""
}
],
"offsets": [
{
"name": "Create Cluster Component",
"x": 305.5,
"y": 499,
"h": 50,
"w": 360
},
{
"name": "Switch",
"x": -160,
"y": 486,
"h": 50,
"w": 400
},
{
"name": "Check If Cluster Component exists",
"x": -180,
"y": 418,
"h": 50,
"w": 440
},
{
"name": "GetInfo",
"x": -85,
"y": 340,
"h": 50,
"w": 250
},
{
"name": "Clean working directory",
"x": -155,
"y": 73.66666666666669,
"h": 50,
"w": 390
},
{
"name": "WebSphere Configuration Discovery",
"x": -210,
"y": 149.99999999999997,
"h": 50,
"w": 500
},
{
"name": "Create component version",
"x": -125,
"y": 575,
"h": 50,
"w": 330
},
{
"name": "79e6d743a67d8e918c55849d1a18f1",
"x": -5,
"y": 655,
"h": 50,
"w": 90
},
{
"name": "WebSphere - Templatize Cluster Configuration Data",
"x": -285,
"y": 240,
"h": 50,
"w": 650
}
],
"type": "graph",
"name": "cfdcd8f6-9ec1-4a44-959d-eb4eb00923f3",
"children": [
{
"type": "finish",
"name": "79e6d743a67d8e918c55849d1a18f1",
"children": []
},
{
"allowFailure": false,
"useImpersonation": false,
"showHidden": true,
"impersonationUseSudo": false,
"commandName": "WebSphere Configuration Discovery",
"pluginName": "WAS - Configure",
"pluginVersion": 33,
"properties": {
"profilePath": "${p?:resource\/websphere.profilePath}",
"commandPath": "${p?:resource\/websphere.commandPath}",
"wasuser": "${p?:resource\/websphere.user}",
"waspassword": "${p?:resource\/websphere.password}",
"host": "${p?:resource\/websphere.host}",
"port": "${p?:resource\/websphere.port}",
"connType": "SOAP",
"resourcePath": "${p?:resource.path}",
"limitDiscovery": "None",
"configurationTypes": "${p?:websphere.cell.configurationtypes}",
"configurationOutputFile": "${p:configurationFile}",
"wasAdminMaxHeap": "-Xmx512m",
"logLevel": "3"
},
"type": "plugin",
"name": "WebSphere Configuration Discovery",
"children": []
},
{
"allowFailure": false,
"useImpersonation": false,
"showHidden": false,
"impersonationUseSudo": false,
"commandName": "Run Groovy Script",
"pluginName": "Groovy",
"pluginVersion": 6,
"properties": {
"groovyHome": "${GROOVY_HOME}",
"scriptBody": "import java.text.SimpleDateFormat\n\n\/\/ Get date and time\ndef today = new Date()\ndef formattedDateTime = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\").format(today)\noutProps.put(\"datetime\",formattedDateTime)\n\n\/\/ Get absolute path to outputDirectory\noutputDirString = \"${p:outputDirectory}\"\noutputDirString = outputDirString.trim()\noutputDirAbs = new File(outputDirString).getAbsolutePath()\noutProps.put(\"outputDirAbs\", outputDirAbs)"
},
"type": "plugin",
"name": "GetInfo",
"children": []
},
{
"allowFailure": false,
"useImpersonation": false,
"showHidden": false,
"impersonationUseSudo": false,
"workingDir": "${p:GetInfo\/outputDirAbs}",
"commandName": "Create Version",
"pluginName": "UrbanCode Deploy Versions",
"pluginVersion": 66,
"properties": {
"componentName": "Cluster - ${p?:resource\/websphere.cluster}",
"versionName": "${p:GetInfo\/datetime}",
"uploadFiles": "true",
"includes": "**\/*",
"excludes": "",
"saveFileExecuteBits": "false"
},
"type": "plugin",
"name": "Create component version",
"children": []
},
{
"allowFailure": false,
"useImpersonation": false,
"showHidden": false,
"impersonationUseSudo": false,
"commandName": "Delete Files and Directories",
"pluginName": "File Utils",
"pluginVersion": 41,
"properties": {
"baseDir": ".",
"includes": "**\/*\n*",
"excludes": "",
"followSymlinks": "false",
"caseSensitive": "true"
},
"type": "plugin",
"name": "Clean working directory",
"children": []
},
{
"allowFailure": false,
"useImpersonation": false,
"showHidden": false,
"impersonationUseSudo": false,
"postProcessingScript": {
"id": "63436523-0f95-46aa-933f-a993c08cd8a6",
"name": "customScript",
"description": "",
"body": "\r\n properties.put('Status', 'Success');\r\n scanner.register(\"OUTPUT: \", function(lineNumber, line){\r\n var outputString=line.replace(\"OUTPUT: \",\"\")\r\n properties.put('Output',outputString)\r\n });\r\n scanner.scan()"
},
"commandName": "Check If Component Exists",
"pluginName": "UrbanCode Deploy Components",
"pluginVersion": 72,
"properties": {"component": "Cluster - ${p?:resource\/websphere.cluster}"},
"type": "plugin",
"name": "Check If Cluster Component exists",
"children": []
},
{
"allowFailure": false,
"useImpersonation": false,
"showHidden": false,
"impersonationUseSudo": false,
"commandName": "Create Component",
"pluginName": "UrbanCode Deploy Components",
"pluginVersion": 72,
"properties": {
"component": "Cluster - ${p?:resource\/websphere.cluster}",
"description": "",
"template": "WebSphere - Config",
"templateVersion": "",
"sourceConfig": "None",
"defaultVersionType": "Full",
"importAutomatically": "false",
"useVfs": "false",
"sourceConfigProps": ""
},
"type": "plugin",
"name": "Create Cluster Component",
"children": []
},
{
"allowFailure": false,
"useImpersonation": false,
"showHidden": false,
"impersonationUseSudo": false,
"commandName": "WebSphere - Templatize Cluster Configuration Data",
"pluginName": "WAS - Configure",
"pluginVersion": 33,
"properties": {
"clusterName": "${p?:resource\/websphere.cluster}",
"outputDir": "${p:outputDirectory}",
"useMultiplicity": "false",
"userDefinedTokenization": "${p:userDefinedTokenization}",
"discoveryRunOnCluster": "true",
"configFile": "${p:configurationFile}",
"cellName": "${p?:resource\/websphere.cell}"
},
"type": "plugin",
"name": "WebSphere - Templatize Cluster Configuration Data",
"children": []
},
{
"propertyName": "${p:Check If Cluster Component exists\/exists}",
"type": "switch",
"name": "Switch",
"children": []
}
]
},
"properties": [
{
"name": "contextType",
"value": "Resource",
"description": "",
"secure": false
},
{
"name": "workingDir",
"value": "${p:resource\/work.dir}\/${p:process.name}",
"description": "",
"secure": false
}
],
"propDefs": [
{
"name": "configurationFile",
"label": "Config File",
"pattern": "",
"type": "TEXT",
"value": "discovered_configuration.txt",
"required": true,
"description": "Location and name of the discovered configuration file",
"placeholder": ""
},
{
"name": "outputDirectory",
"label": "Output Directory",
"pattern": "",
"type": "TEXT",
"value": "TemplatizedOutput",
"required": true,
"description": "Location where the templatized data will be placed",
"placeholder": ""
},
{
"name": "userDefinedTokenization",
"label": "User Defined Tokenization",
"pattern": "",
"type": "TEXTAREA",
"required": false,
"description": "To tokenize or change values in the configuration data, specify a new line separated list of values in the format stringToReplace->newValue. For example, entering the value abcd1234->@NewToken@ will replace every occurrence of abcd1234 in your configuration file with @NewToken@.",
"placeholder": ""
}
],
"teamMappings": []
}