@camunda/connectors-element-templates 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/package.json +1 -1
  2. package/src/connectors.js +24 -0
  3. package/src/element-templates/agenticai-adhoctoolsschema-outbound-connector.json +32 -31
  4. package/src/element-templates/agenticai-aiagent-job-worker.json +1655 -7
  5. package/src/element-templates/agenticai-aiagent-outbound-connector.json +2906 -1291
  6. package/src/element-templates/agenticai-mcp-client-outbound-connector.json +1 -1
  7. package/src/element-templates/agenticai-mcp-remote-client-outbound-connector.json +1 -1
  8. package/src/element-templates/asana-connector.json +8 -8
  9. package/src/element-templates/automation-anywhere-outbound-connector.json +619 -619
  10. package/src/element-templates/aws-bedrock-outbound-connector.json +30 -30
  11. package/src/element-templates/aws-dynamodb-outbound-connector.json +1325 -1325
  12. package/src/element-templates/aws-eventbridge-connector-intermediate.json +38 -38
  13. package/src/element-templates/aws-eventbridge-connector-message-start.json +10 -10
  14. package/src/element-templates/aws-eventbridge-connector-receive.json +356 -0
  15. package/src/element-templates/aws-eventbridge-outbound-connector.json +10 -10
  16. package/src/element-templates/aws-lambda-outbound-connector.json +256 -256
  17. package/src/element-templates/aws-s3-outbound-connector.json +30 -30
  18. package/src/element-templates/aws-sagemaker-outbound-connector.json +50 -50
  19. package/src/element-templates/aws-sns-inbound-boundary.json +311 -311
  20. package/src/element-templates/aws-sns-inbound-intermediate.json +328 -328
  21. package/src/element-templates/aws-sns-inbound-message-start.json +343 -343
  22. package/src/element-templates/aws-sns-inbound-receive.json +304 -0
  23. package/src/element-templates/aws-sns-inbound-start-event.json +131 -131
  24. package/src/element-templates/aws-sns-outbound-connector.json +424 -424
  25. package/src/element-templates/aws-sqs-boundary-connector.json +305 -305
  26. package/src/element-templates/aws-sqs-inbound-intermediate-connector.json +918 -918
  27. package/src/element-templates/aws-sqs-outbound-connector.json +743 -743
  28. package/src/element-templates/aws-sqs-receive-connector.json +418 -0
  29. package/src/element-templates/aws-sqs-start-event-connector.json +369 -369
  30. package/src/element-templates/aws-sqs-start-message.json +914 -914
  31. package/src/element-templates/blue-prism-connector.json +50 -50
  32. package/src/element-templates/csv-outbound-connector.json +26 -26
  33. package/src/element-templates/easy-post-connector.json +271 -271
  34. package/src/element-templates/email-inbound-connector-boundary.json +19 -19
  35. package/src/element-templates/email-inbound-connector-intermediate.json +19 -19
  36. package/src/element-templates/email-message-start-event-connector.json +19 -19
  37. package/src/element-templates/embeddings-vector-database-outbound-connector.json +503 -503
  38. package/src/element-templates/github-connector.json +2723 -2723
  39. package/src/element-templates/github-webhook-connector-intermediate.json +42 -42
  40. package/src/element-templates/github-webhook-connector-receive.json +202 -0
  41. package/src/element-templates/github-webhook-connector-start-event.json +32 -32
  42. package/src/element-templates/gitlab-connector.json +160 -160
  43. package/src/element-templates/google-drive-outbound-connector.json +438 -438
  44. package/src/element-templates/google-gemini-outbound-connector.json +32 -32
  45. package/src/element-templates/google-maps-platform-connector.json +16 -16
  46. package/src/element-templates/google-sheets-outbound-connector.json +1059 -1059
  47. package/src/element-templates/graphql-outbound-connector.json +1179 -1179
  48. package/src/element-templates/http-json-connector.json +2662 -2057
  49. package/src/element-templates/http-polling-boundary-catch-event-connector.json +635 -6
  50. package/src/element-templates/http-polling-connector.json +631 -2
  51. package/src/element-templates/hugging-face-connector.json +34 -34
  52. package/src/element-templates/jdbc-outbound-connector.json +41 -41
  53. package/src/element-templates/kafka-inbound-connector-boundary.json +958 -958
  54. package/src/element-templates/kafka-inbound-connector-intermediate.json +681 -681
  55. package/src/element-templates/kafka-inbound-connector-receive.json +498 -0
  56. package/src/element-templates/kafka-inbound-connector.json +240 -240
  57. package/src/element-templates/kafka-outbound-connector.json +356 -356
  58. package/src/element-templates/microsoft-office365-mail-connector.json +32 -32
  59. package/src/element-templates/microsoft-teams-outbound-connector.json +4188 -4188
  60. package/src/element-templates/openai-connector.json +78 -78
  61. package/src/element-templates/operate-connector.json +79 -79
  62. package/src/element-templates/power-automate-connector.json +12 -12
  63. package/src/element-templates/rabbitmq-inbound-connector-boundary.json +747 -747
  64. package/src/element-templates/rabbitmq-inbound-connector-intermediate.json +463 -463
  65. package/src/element-templates/rabbitmq-inbound-connector-message-start.json +11 -11
  66. package/src/element-templates/rabbitmq-inbound-connector-receive.json +461 -0
  67. package/src/element-templates/rabbitmq-inbound-connector-start-event.json +681 -681
  68. package/src/element-templates/rabbitmq-outbound-connector.json +670 -670
  69. package/src/element-templates/salesforce-connector.json +38 -38
  70. package/src/element-templates/sendgrid-outbound-connector.json +397 -397
  71. package/src/element-templates/servicenow-connector.json +942 -0
  72. package/src/element-templates/servicenow-flow-starter-connector.json +643 -0
  73. package/src/element-templates/servicenow-incident-connector.json +969 -0
  74. package/src/element-templates/slack-inbound-boundary.json +173 -173
  75. package/src/element-templates/slack-inbound-intermediate.json +232 -232
  76. package/src/element-templates/slack-inbound-message-start.json +209 -209
  77. package/src/element-templates/slack-inbound-receive.json +290 -0
  78. package/src/element-templates/slack-inbound-start-event.json +218 -218
  79. package/src/element-templates/slack-outbound-connector.json +955 -955
  80. package/src/element-templates/twilio-connector.json +87 -87
  81. package/src/element-templates/twilio-webhook-boundary-connector.json +26 -26
  82. package/src/element-templates/twilio-webhook-connector.json +20 -20
  83. package/src/element-templates/twilio-webhook-intermediate-connector.json +50 -50
  84. package/src/element-templates/twilio-webhook-message-start-connector.json +8 -8
  85. package/src/element-templates/twilio-webhook-receive-connector.json +262 -0
  86. package/src/element-templates/uipath-connector.json +41 -41
  87. package/src/element-templates/webhook-connector-boundary.json +1050 -1050
  88. package/src/element-templates/webhook-connector-intermediate.json +1356 -1356
  89. package/src/element-templates/webhook-connector-receive.json +609 -0
  90. package/src/element-templates/webhook-connector-start-event.json +2280 -2280
  91. package/src/element-templates/webhook-connector-start-message.json +1205 -1205
  92. package/src/element-templates/whatsapp-connector.json +42 -42
@@ -0,0 +1,969 @@
1
+ [
2
+ {
3
+ "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
4
+ "name": "ServiceNow Incident Handler",
5
+ "id": "io.camunda.connectors.ServiceNowIncident.v1",
6
+ "version": 1,
7
+ "description": "Create and manage incidents in ServiceNow directly from a Camunda process",
8
+ "metadata": {
9
+ "keywords": []
10
+ },
11
+ "documentationRef": "https://docs.camunda.io/docs/components/camunda-integrations/overview/",
12
+ "category": {
13
+ "id": "connectors",
14
+ "name": "Connectors"
15
+ },
16
+ "appliesTo": ["bpmn:Task"],
17
+ "elementType": {
18
+ "value": "bpmn:ServiceTask"
19
+ },
20
+ "groups": [
21
+ {
22
+ "id": "sn",
23
+ "label": "ServiceNow"
24
+ },
25
+ {
26
+ "id": "input",
27
+ "label": "Input"
28
+ },
29
+ {
30
+ "id": "authentication",
31
+ "label": "Authentication"
32
+ },
33
+ {
34
+ "id": "endpoint",
35
+ "label": "HTTP endpoint"
36
+ },
37
+ {
38
+ "id": "timeout",
39
+ "label": "Connection timeout"
40
+ },
41
+ {
42
+ "id": "payload",
43
+ "label": "Payload"
44
+ },
45
+ {
46
+ "id": "output",
47
+ "label": "Output mapping"
48
+ },
49
+ {
50
+ "id": "error",
51
+ "label": "Error handling"
52
+ },
53
+ {
54
+ "id": "retries",
55
+ "label": "Retries"
56
+ }
57
+ ],
58
+ "properties": [
59
+ {
60
+ "value": "io.camunda:http-json:1",
61
+ "binding": {
62
+ "property": "type",
63
+ "type": "zeebe:taskDefinition"
64
+ },
65
+ "type": "Hidden"
66
+ },
67
+ {
68
+ "id": "snInstance",
69
+ "label": "Instance name",
70
+ "description": "Enter only the instance name from your ServiceNow URL",
71
+ "optional": false,
72
+ "feel": "optional",
73
+ "group": "sn",
74
+ "binding": {
75
+ "name": "snInstance",
76
+ "type": "zeebe:input"
77
+ },
78
+ "constraints": {
79
+ "notEmpty": true
80
+ },
81
+ "type": "String"
82
+ },
83
+ {
84
+ "id": "operationGroup",
85
+ "label": "Operation",
86
+ "group": "sn",
87
+ "description": "Choose operation type",
88
+ "type": "Dropdown",
89
+ "value": "create",
90
+ "choices": [
91
+ {
92
+ "name": "Create",
93
+ "value": "create"
94
+ },
95
+ {
96
+ "name": "Read",
97
+ "value": "read"
98
+ },
99
+ {
100
+ "name": "Update",
101
+ "value": "update"
102
+ },
103
+ {
104
+ "name": "Delete",
105
+ "value": "delete"
106
+ }
107
+ ],
108
+ "binding": {
109
+ "type": "zeebe:input",
110
+ "name": "operationGroup"
111
+ }
112
+ },
113
+ {
114
+ "id": "targetTable",
115
+ "label": "Target table",
116
+ "description": "Choose a table for the record operation",
117
+ "group": "sn",
118
+ "type": "Hidden",
119
+ "value": "incident",
120
+ "choices": [
121
+ {
122
+ "name": "Requested Item [sc_req_item]",
123
+ "value": "sc_req_item"
124
+ },
125
+ {
126
+ "name": "Change Request [change_request]",
127
+ "value": "change_request"
128
+ },
129
+ {
130
+ "name": "Change Task [change_task]",
131
+ "value": "change_task"
132
+ },
133
+ {
134
+ "name": "Service Catalog Request [sc_request]",
135
+ "value": "sc_request"
136
+ },
137
+ {
138
+ "name": "Service Catalog Task [sc_task]",
139
+ "value": "sc_task"
140
+ },
141
+ {
142
+ "name": "Incident [incident]",
143
+ "value": "incident"
144
+ },
145
+ {
146
+ "name": "Other - type a table name",
147
+ "value": "__custom"
148
+ }
149
+ ],
150
+ "binding": {
151
+ "type": "zeebe:input",
152
+ "name": "targetTable"
153
+ }
154
+ },
155
+ {
156
+ "//": "used for all operation types",
157
+ "id": "customRequestTarget",
158
+ "label": "Enter table name",
159
+ "description": "Type the exact ServiceNow table name (case-sensitive)",
160
+ "type": "String",
161
+ "group": "sn",
162
+ "binding": {
163
+ "name": "customRequestTarget",
164
+ "type": "zeebe:input"
165
+ },
166
+ "condition": {
167
+ "property": "targetTable",
168
+ "equals": "__custom"
169
+ }
170
+ },
171
+ {
172
+ "id": "sysparm_query",
173
+ "label": "Query parameters (sysparm_query)",
174
+ "description": "Separate multiple conditions with '^' (Ex: active=true^priority=1)",
175
+ "optional": true,
176
+ "feel": "optional",
177
+ "group": "input",
178
+ "binding": {
179
+ "name": "sysparm_query",
180
+ "type": "zeebe:input"
181
+ },
182
+ "type": "String",
183
+ "constraints": {
184
+ "notEmpty": false,
185
+ "pattern": {
186
+ "value": "^(?!.*&).*$",
187
+ "message": "invalid: use '^' instead of '&'"
188
+ }
189
+ },
190
+ "condition": {
191
+ "property": "operationGroup",
192
+ "oneOf": ["read"]
193
+ }
194
+ },
195
+ {
196
+ "id": "sysparm_fields",
197
+ "label": "Fields to return (sysparm_fields)",
198
+ "description": "Comma-separated field names (Ex: sys_id, number, short_description)",
199
+ "optional": true,
200
+ "feel": "optional",
201
+ "group": "input",
202
+ "binding": {
203
+ "name": "sysparm_fields",
204
+ "type": "zeebe:input"
205
+ },
206
+ "type": "String",
207
+ "condition": {
208
+ "property": "operationGroup",
209
+ "oneOf": ["read"]
210
+ }
211
+ },
212
+ {
213
+ "id": "sysparm_limit",
214
+ "label": "Result limit (sysparm_limit)",
215
+ "description": "The maximum number of records to return (Ex: 10)",
216
+ "optional": true,
217
+ "feel": "optional",
218
+ "group": "input",
219
+ "binding": {
220
+ "name": "sysparm_limit",
221
+ "type": "zeebe:input"
222
+ },
223
+ "type": "String",
224
+ "condition": {
225
+ "property": "operationGroup",
226
+ "oneOf": ["read"]
227
+ }
228
+ },
229
+ {
230
+ "id": "readTarget",
231
+ "label": "Sys ID of the record to read",
232
+ "description": "Enter the unique record identifier (sys_id). If left blank, all incidents are queried",
233
+ "type": "String",
234
+ "feel": "optional",
235
+ "group": "sn",
236
+ "binding": {
237
+ "name": "readTarget",
238
+ "type": "zeebe:input"
239
+ },
240
+ "condition": {
241
+ "property": "operationGroup",
242
+ "equals": "read"
243
+ }
244
+ },
245
+ {
246
+ "id": "updateTarget",
247
+ "label": "Sys ID of the record to update",
248
+ "description": "Enter the unique record identifier (sys_id) to update",
249
+ "type": "String",
250
+ "feel": "optional",
251
+ "group": "sn",
252
+ "binding": {
253
+ "name": "updateTarget",
254
+ "type": "zeebe:input"
255
+ },
256
+ "condition": {
257
+ "property": "operationGroup",
258
+ "equals": "update"
259
+ }
260
+ },
261
+ {
262
+ "id": "deleteTarget",
263
+ "label": "Sys ID of the record to delete",
264
+ "description": "Enter the unique record identifier (sys_id) to delete",
265
+ "type": "String",
266
+ "feel": "optional",
267
+ "group": "sn",
268
+ "binding": {
269
+ "name": "deleteTarget",
270
+ "type": "zeebe:input"
271
+ },
272
+ "condition": {
273
+ "property": "operationGroup",
274
+ "equals": "delete"
275
+ }
276
+ },
277
+ {
278
+ "//": "create or update sc_req_item",
279
+ "id": "payload_sc_req_item",
280
+ "group": "input",
281
+ "label": "Payload",
282
+ "type": "Text",
283
+ "feel": "required",
284
+ "value": "={ \n // Example payload fields\n // Replace or remove as needed\n \n \"short_description\": \"Process has encountered an error\",\n \"priority\": 2,\n \"assigned_to\": \"9000e0c3c611227c017f673\"\n}\n",
285
+ "binding": {
286
+ "type": "zeebe:input",
287
+ "name": "body_sc_req_item"
288
+ },
289
+ "condition": {
290
+ "allMatch": [
291
+ {
292
+ "property": "operationGroup",
293
+ "oneOf": ["create", "update"]
294
+ },
295
+ {
296
+ "property": "targetTable",
297
+ "equals": "sc_req_item"
298
+ }
299
+ ]
300
+ },
301
+ "optional": true
302
+ },
303
+ {
304
+ "//": "create or update change_request",
305
+ "id": "payload_change_request",
306
+ "group": "input",
307
+ "label": "Payload",
308
+ "type": "Text",
309
+ "feel": "required",
310
+ "value": "={ \n // Example payload fields\n // Replace or remove as needed\n \n \"short_description\": \"Process has encountered an error\",\n \"priority\": 2,\n \"assigned_to\": \"9000e0c3c611227c017f673\"\n}\n",
311
+ "binding": {
312
+ "type": "zeebe:input",
313
+ "name": "body_change_request"
314
+ },
315
+ "condition": {
316
+ "allMatch": [
317
+ {
318
+ "property": "operationGroup",
319
+ "oneOf": ["create", "update"]
320
+ },
321
+ {
322
+ "property": "targetTable",
323
+ "equals": "change_request"
324
+ }
325
+ ]
326
+ },
327
+ "optional": true
328
+ },
329
+ {
330
+ "//": "create or update change_task",
331
+ "id": "payload_change_task",
332
+ "group": "input",
333
+ "label": "Payload",
334
+ "type": "Text",
335
+ "feel": "required",
336
+ "value": "={ \n // Example payload fields\n // Replace or remove as needed\n \n \"short_description\": \"Process has encountered an error\",\n \"priority\": 2,\n \"assigned_to\": \"9000e0c3c611227c017f673\"\n}\n",
337
+ "binding": {
338
+ "type": "zeebe:input",
339
+ "name": "body_change_task"
340
+ },
341
+ "condition": {
342
+ "allMatch": [
343
+ {
344
+ "property": "operationGroup",
345
+ "oneOf": ["create", "update"]
346
+ },
347
+ {
348
+ "property": "targetTable",
349
+ "equals": "change_task"
350
+ }
351
+ ]
352
+ },
353
+ "optional": true
354
+ },
355
+ {
356
+ "//": "create or update sc_request",
357
+ "id": "payload_sc_request",
358
+ "group": "input",
359
+ "label": "Payload",
360
+ "type": "Text",
361
+ "feel": "required",
362
+ "value": "={ \n // Example payload fields\n // Replace or remove as needed\n \n \"short_description\": \"Process has encountered an error\",\n \"priority\": 2,\n \"assigned_to\": \"9000e0c3c611227c017f673\"\n}\n",
363
+ "binding": {
364
+ "type": "zeebe:input",
365
+ "name": "body_sc_request"
366
+ },
367
+ "condition": {
368
+ "allMatch": [
369
+ {
370
+ "property": "operationGroup",
371
+ "oneOf": ["create", "update"]
372
+ },
373
+ {
374
+ "property": "targetTable",
375
+ "equals": "sc_request"
376
+ }
377
+ ]
378
+ },
379
+ "optional": true
380
+ },
381
+ {
382
+ "//": "create or update sc_task",
383
+ "id": "payload_sc_task",
384
+ "group": "input",
385
+ "label": "Payload",
386
+ "type": "Text",
387
+ "feel": "required",
388
+ "value": "={ \n // Example payload fields\n // Replace or remove as needed\n \n \"short_description\": \"Process has encountered an error\",\n \"priority\": 2,\n \"assigned_to\": \"9000e0c3c611227c017f673\"\n}\n",
389
+ "binding": {
390
+ "type": "zeebe:input",
391
+ "name": "body_sc_task"
392
+ },
393
+ "condition": {
394
+ "allMatch": [
395
+ {
396
+ "property": "operationGroup",
397
+ "oneOf": ["create", "update"]
398
+ },
399
+ {
400
+ "property": "targetTable",
401
+ "equals": "sc_task"
402
+ }
403
+ ]
404
+ },
405
+ "optional": true
406
+ },
407
+ {
408
+ "//": "create or update incident",
409
+ "id": "payload_incident",
410
+ "group": "input",
411
+ "label": "Payload",
412
+ "type": "Text",
413
+ "feel": "required",
414
+ "value": "={ \n // Example payload fields\n // Replace or remove as needed\n \n \"short_description\": \"Process has encountered an error\",\n \"priority\": 2,\n \"assigned_to\": \"9000e0c3c611227c017f673\"\n}\n",
415
+ "binding": {
416
+ "type": "zeebe:input",
417
+ "name": "body_incident"
418
+ },
419
+ "condition": {
420
+ "allMatch": [
421
+ {
422
+ "property": "operationGroup",
423
+ "oneOf": ["create", "update"]
424
+ },
425
+ {
426
+ "property": "targetTable",
427
+ "equals": "incident"
428
+ }
429
+ ]
430
+ },
431
+ "optional": true
432
+ },
433
+ {
434
+ "//": "create or update __custom",
435
+ "id": "payload___custom",
436
+ "group": "input",
437
+ "label": "Payload",
438
+ "type": "Text",
439
+ "feel": "required",
440
+ "value": "={ }",
441
+ "binding": {
442
+ "type": "zeebe:input",
443
+ "name": "body__custom"
444
+ },
445
+ "condition": {
446
+ "allMatch": [
447
+ {
448
+ "property": "operationGroup",
449
+ "oneOf": ["create", "update"]
450
+ },
451
+ {
452
+ "property": "targetTable",
453
+ "equals": "__custom"
454
+ }
455
+ ]
456
+ },
457
+ "optional": true
458
+ },
459
+ {
460
+ "//": "this sets the actual request body for a write request to the ServiceNow API",
461
+ "group": "input",
462
+ "type": "Hidden",
463
+ "value": "={\n \"variables\": [body_sc_req_item, body_change_request, body_change_task, body_sc_request, body_sc_task, body_incident, body__custom],\n \"result\": variables[item != null][1]\n}.result",
464
+ "binding": {
465
+ "type": "zeebe:input",
466
+ "name": "body"
467
+ },
468
+ "condition": {
469
+ "property": "operationGroup",
470
+ "oneOf": ["create", "update"]
471
+ },
472
+ "optional": true
473
+ },
474
+ {
475
+ "id": "authentication.type",
476
+ "label": "Type",
477
+ "description": "Choose the authentication type. Select 'None' if no authentication is necessary",
478
+ "value": "basic",
479
+ "group": "authentication",
480
+ "binding": {
481
+ "name": "authentication.type",
482
+ "type": "zeebe:input"
483
+ },
484
+ "type": "Hidden",
485
+ "choices": [
486
+ {
487
+ "name": "API key",
488
+ "value": "apiKey"
489
+ },
490
+ {
491
+ "name": "Basic",
492
+ "value": "basic"
493
+ },
494
+ {
495
+ "name": "Bearer token",
496
+ "value": "bearer"
497
+ },
498
+ {
499
+ "name": "None",
500
+ "value": "noAuth"
501
+ },
502
+ {
503
+ "name": "OAuth 2.0",
504
+ "value": "oauth-client-credentials-flow"
505
+ }
506
+ ]
507
+ },
508
+ {
509
+ "id": "authentication.apiKeyLocation",
510
+ "label": "Api key location",
511
+ "description": "Choose type: Send API key in header or as query parameter.",
512
+ "optional": false,
513
+ "value": "headers",
514
+ "constraints": {
515
+ "notEmpty": true
516
+ },
517
+ "group": "authentication",
518
+ "binding": {
519
+ "name": "authentication.apiKeyLocation",
520
+ "type": "zeebe:input"
521
+ },
522
+ "condition": {
523
+ "property": "authentication.type",
524
+ "equals": "apiKey",
525
+ "type": "simple"
526
+ },
527
+ "type": "Dropdown",
528
+ "choices": [
529
+ {
530
+ "name": "Headers",
531
+ "value": "headers"
532
+ },
533
+ {
534
+ "name": "Query parameters",
535
+ "value": "query"
536
+ }
537
+ ]
538
+ },
539
+ {
540
+ "id": "authentication.name",
541
+ "label": "API key name",
542
+ "optional": false,
543
+ "constraints": {
544
+ "notEmpty": true
545
+ },
546
+ "feel": "optional",
547
+ "group": "authentication",
548
+ "binding": {
549
+ "name": "authentication.name",
550
+ "type": "zeebe:input"
551
+ },
552
+ "condition": {
553
+ "property": "authentication.type",
554
+ "equals": "apiKey",
555
+ "type": "simple"
556
+ },
557
+ "type": "String"
558
+ },
559
+ {
560
+ "id": "authentication.value",
561
+ "label": "API key value",
562
+ "optional": false,
563
+ "constraints": {
564
+ "notEmpty": true
565
+ },
566
+ "feel": "optional",
567
+ "group": "authentication",
568
+ "binding": {
569
+ "name": "authentication.value",
570
+ "type": "zeebe:input"
571
+ },
572
+ "condition": {
573
+ "property": "authentication.type",
574
+ "equals": "apiKey",
575
+ "type": "simple"
576
+ },
577
+ "type": "String"
578
+ },
579
+ {
580
+ "id": "authentication.username",
581
+ "label": "Username",
582
+ "optional": false,
583
+ "constraints": {
584
+ "notEmpty": true
585
+ },
586
+ "feel": "optional",
587
+ "group": "authentication",
588
+ "binding": {
589
+ "name": "authentication.username",
590
+ "type": "zeebe:input"
591
+ },
592
+ "condition": {
593
+ "property": "authentication.type",
594
+ "equals": "basic",
595
+ "type": "simple"
596
+ },
597
+ "type": "String"
598
+ },
599
+ {
600
+ "id": "authentication.password",
601
+ "label": "Password",
602
+ "optional": false,
603
+ "constraints": {
604
+ "notEmpty": true
605
+ },
606
+ "feel": "optional",
607
+ "group": "authentication",
608
+ "binding": {
609
+ "name": "authentication.password",
610
+ "type": "zeebe:input"
611
+ },
612
+ "condition": {
613
+ "property": "authentication.type",
614
+ "equals": "basic",
615
+ "type": "simple"
616
+ },
617
+ "type": "String"
618
+ },
619
+ {
620
+ "id": "authentication.token",
621
+ "label": "Bearer token",
622
+ "optional": false,
623
+ "constraints": {
624
+ "notEmpty": true
625
+ },
626
+ "feel": "optional",
627
+ "group": "authentication",
628
+ "binding": {
629
+ "name": "authentication.token",
630
+ "type": "zeebe:input"
631
+ },
632
+ "condition": {
633
+ "property": "authentication.type",
634
+ "equals": "bearer",
635
+ "type": "simple"
636
+ },
637
+ "type": "String"
638
+ },
639
+ {
640
+ "id": "authentication.oauthTokenEndpoint",
641
+ "label": "OAuth 2.0 token endpoint",
642
+ "description": "The OAuth token endpoint",
643
+ "optional": false,
644
+ "constraints": {
645
+ "notEmpty": true,
646
+ "pattern": {
647
+ "value": "^(=|(http://|https://|secrets|\\{\\{).*$)",
648
+ "message": "Must be a http(s) URL"
649
+ }
650
+ },
651
+ "feel": "optional",
652
+ "group": "authentication",
653
+ "binding": {
654
+ "name": "authentication.oauthTokenEndpoint",
655
+ "type": "zeebe:input"
656
+ },
657
+ "condition": {
658
+ "property": "authentication.type",
659
+ "equals": "oauth-client-credentials-flow",
660
+ "type": "simple"
661
+ },
662
+ "type": "String"
663
+ },
664
+ {
665
+ "id": "authentication.clientId",
666
+ "label": "Client ID",
667
+ "description": "Your application's client ID from the OAuth client",
668
+ "optional": false,
669
+ "constraints": {
670
+ "notEmpty": true
671
+ },
672
+ "feel": "optional",
673
+ "group": "authentication",
674
+ "binding": {
675
+ "name": "authentication.clientId",
676
+ "type": "zeebe:input"
677
+ },
678
+ "condition": {
679
+ "property": "authentication.type",
680
+ "equals": "oauth-client-credentials-flow",
681
+ "type": "simple"
682
+ },
683
+ "type": "String"
684
+ },
685
+ {
686
+ "id": "authentication.clientSecret",
687
+ "label": "Client secret",
688
+ "description": "Your application's client secret from the OAuth client",
689
+ "optional": false,
690
+ "constraints": {
691
+ "notEmpty": true
692
+ },
693
+ "feel": "optional",
694
+ "group": "authentication",
695
+ "binding": {
696
+ "name": "authentication.clientSecret",
697
+ "type": "zeebe:input"
698
+ },
699
+ "condition": {
700
+ "property": "authentication.type",
701
+ "equals": "oauth-client-credentials-flow",
702
+ "type": "simple"
703
+ },
704
+ "type": "String"
705
+ },
706
+ {
707
+ "id": "authentication.audience",
708
+ "label": "Audience",
709
+ "description": "The unique identifier of the target API you want to access",
710
+ "optional": true,
711
+ "feel": "optional",
712
+ "group": "authentication",
713
+ "binding": {
714
+ "name": "authentication.audience",
715
+ "type": "zeebe:input"
716
+ },
717
+ "condition": {
718
+ "property": "authentication.type",
719
+ "equals": "oauth-client-credentials-flow",
720
+ "type": "simple"
721
+ },
722
+ "type": "String"
723
+ },
724
+ {
725
+ "id": "authentication.clientAuthentication",
726
+ "label": "Client authentication",
727
+ "description": "Send client ID and client secret as Basic Auth request in the header, or as client credentials in the request body",
728
+ "optional": false,
729
+ "constraints": {
730
+ "notEmpty": true
731
+ },
732
+ "group": "authentication",
733
+ "binding": {
734
+ "name": "authentication.clientAuthentication",
735
+ "type": "zeebe:input"
736
+ },
737
+ "condition": {
738
+ "property": "authentication.type",
739
+ "equals": "oauth-client-credentials-flow",
740
+ "type": "simple"
741
+ },
742
+ "type": "Dropdown",
743
+ "choices": [
744
+ {
745
+ "name": "Send client credentials in body",
746
+ "value": "credentialsBody"
747
+ },
748
+ {
749
+ "name": "Send as Basic Auth header",
750
+ "value": "basicAuthHeader"
751
+ }
752
+ ]
753
+ },
754
+ {
755
+ "id": "authentication.scopes",
756
+ "label": "Scopes",
757
+ "description": "The scopes which you want to request authorization for (e.g.read:contacts)",
758
+ "optional": true,
759
+ "feel": "optional",
760
+ "group": "authentication",
761
+ "binding": {
762
+ "name": "authentication.scopes",
763
+ "type": "zeebe:input"
764
+ },
765
+ "condition": {
766
+ "property": "authentication.type",
767
+ "equals": "oauth-client-credentials-flow",
768
+ "type": "simple"
769
+ },
770
+ "type": "String"
771
+ },
772
+ {
773
+ "id": "method",
774
+ "label": "Method",
775
+ "optional": false,
776
+ "value": "={\n \"operationMap\": [\n {\n \"value\":\"read\",\n \"mapsTo\": \"GET\"\n },\n {\n \"value\":\"update\",\n \"mapsTo\": \"PATCH\"\n },\n {\n \"value\":\"create\",\n \"mapsTo\": \"POST\"\n },\n {\n \"value\":\"delete\",\n \"mapsTo\": \"DELETE\"\n }\n ],\n \"result\": operationMap[value = operationGroup].mapsTo[1]\n}.result",
777
+ "constraints": {
778
+ "notEmpty": true
779
+ },
780
+ "group": "endpoint",
781
+ "binding": {
782
+ "name": "method",
783
+ "type": "zeebe:input"
784
+ },
785
+ "type": "Hidden"
786
+ },
787
+ {
788
+ "id": "url",
789
+ "label": "URL",
790
+ "optional": false,
791
+ "constraints": {
792
+ "notEmpty": true,
793
+ "pattern": {
794
+ "value": "^(=|(http://|https://|secrets|\\{\\{).*$)",
795
+ "message": "Must be a http(s) URL"
796
+ }
797
+ },
798
+ "group": "endpoint",
799
+ "binding": {
800
+ "name": "url",
801
+ "type": "zeebe:input"
802
+ },
803
+ "type": "Hidden",
804
+ "value": "={\n \"baseUrl\": \"https://\" + snInstance + \".service-now.com/api/now/table/\",\n \"table\": if targetTable = \"__custom\" then customRequestTarget else targetTable ,\n \"updateOrDeleteOrReadSysId\": if readTarget != null then readTarget else ((if updateTarget != null then updateTarget else (if deleteTarget != null then deleteTarget else null))) ,\n \"fullUrl\": baseUrl + table + (if updateOrDeleteOrReadSysId != null then \"/\" + updateOrDeleteOrReadSysId else \"\")\n}.fullUrl"
805
+ },
806
+ {
807
+ "id": "headers",
808
+ "label": "Headers",
809
+ "description": "Map of HTTP headers to add to the request",
810
+ "optional": true,
811
+ "group": "endpoint",
812
+ "binding": {
813
+ "name": "headers",
814
+ "type": "zeebe:input"
815
+ },
816
+ "type": "Hidden"
817
+ },
818
+ {
819
+ "id": "queryParameters",
820
+ "label": "Query parameters",
821
+ "description": "Map of query parameters to add to the request URL",
822
+ "optional": true,
823
+ "group": "endpoint",
824
+ "binding": {
825
+ "name": "queryParameters",
826
+ "type": "zeebe:input"
827
+ },
828
+ "type": "Hidden",
829
+ "value": "={ \"sysparm_query\": if sysparm_query != null then replace(sysparm_query, \" \", \"\") else null , \"sysparm_fields\": if sysparm_fields != null then replace(sysparm_fields, \" \", \"\") else null , \"sysparm_limit\": if sysparm_limit != null then sysparm_limit else null }",
830
+ "condition": {
831
+ "property": "operationGroup",
832
+ "equals": "read"
833
+ }
834
+ },
835
+ {
836
+ "id": "storeResponse",
837
+ "label": "Store response",
838
+ "description": "Store the response as a document in the document store",
839
+ "optional": false,
840
+ "value": "=false",
841
+ "group": "endpoint",
842
+ "binding": {
843
+ "name": "storeResponse",
844
+ "type": "zeebe:input"
845
+ },
846
+ "type": "Hidden"
847
+ },
848
+ {
849
+ "id": "skipEncoding",
850
+ "label": "Skip URL encoding",
851
+ "description": "Skip the default URL decoding and encoding behavior",
852
+ "optional": true,
853
+ "value": "=true",
854
+ "group": "endpoint",
855
+ "binding": {
856
+ "name": "skipEncoding",
857
+ "type": "zeebe:input"
858
+ },
859
+ "type": "Hidden"
860
+ },
861
+ {
862
+ "id": "connectionTimeoutInSeconds",
863
+ "label": "Connection timeout in seconds",
864
+ "description": "Defines the connection timeout in seconds, or 0 for an infinite timeout",
865
+ "optional": false,
866
+ "value": "=20",
867
+ "constraints": {
868
+ "notEmpty": true,
869
+ "pattern": {
870
+ "value": "^\\d+$",
871
+ "message": "Must be a number"
872
+ }
873
+ },
874
+ "feel": "static",
875
+ "group": "timeout",
876
+ "binding": {
877
+ "name": "connectionTimeoutInSeconds",
878
+ "type": "zeebe:input"
879
+ },
880
+ "type": "Number"
881
+ },
882
+ {
883
+ "id": "readTimeoutInSeconds",
884
+ "label": "Read timeout in seconds",
885
+ "description": "Timeout in seconds to read data from an established connection or 0 for an infinite timeout",
886
+ "optional": false,
887
+ "value": "=20",
888
+ "constraints": {
889
+ "notEmpty": true,
890
+ "pattern": {
891
+ "value": "^\\d+$",
892
+ "message": "Must be a number"
893
+ }
894
+ },
895
+ "feel": "static",
896
+ "group": "timeout",
897
+ "binding": {
898
+ "name": "readTimeoutInSeconds",
899
+ "type": "zeebe:input"
900
+ },
901
+ "type": "Number"
902
+ },
903
+ {
904
+ "id": "resultVariable",
905
+ "label": "Result variable",
906
+ "description": "Name of variable to store the response in",
907
+ "group": "output",
908
+ "binding": {
909
+ "key": "resultVariable",
910
+ "type": "zeebe:taskHeader"
911
+ },
912
+ "type": "String",
913
+ "value": "snQueryResult"
914
+ },
915
+ {
916
+ "id": "resultExpression",
917
+ "label": "Result expression",
918
+ "description": "Expression to map the response into process variables",
919
+ "feel": "required",
920
+ "group": "output",
921
+ "binding": {
922
+ "key": "resultExpression",
923
+ "type": "zeebe:taskHeader"
924
+ },
925
+ "type": "Text"
926
+ },
927
+ {
928
+ "id": "errorExpression",
929
+ "label": "Error expression",
930
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
931
+ "feel": "required",
932
+ "group": "error",
933
+ "binding": {
934
+ "key": "errorExpression",
935
+ "type": "zeebe:taskHeader"
936
+ },
937
+ "type": "Text"
938
+ },
939
+ {
940
+ "id": "retryCount",
941
+ "label": "Retries",
942
+ "description": "Number of retries",
943
+ "value": "3",
944
+ "feel": "optional",
945
+ "group": "retries",
946
+ "binding": {
947
+ "property": "retries",
948
+ "type": "zeebe:taskDefinition"
949
+ },
950
+ "type": "String"
951
+ },
952
+ {
953
+ "id": "retryBackoff",
954
+ "label": "Retry backoff",
955
+ "description": "ISO-8601 duration to wait between retries",
956
+ "value": "PT0S",
957
+ "group": "retries",
958
+ "binding": {
959
+ "key": "retryBackoff",
960
+ "type": "zeebe:taskHeader"
961
+ },
962
+ "type": "String"
963
+ }
964
+ ],
965
+ "icon": {
966
+ "contents": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjAxIiBzdHlsZT0ibWl4LWJsZW5kLW1vZGU6bXVsdGlwbHkiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNTUuOTA1IDQyMS40NDJDMTgxLjk1OCA0MjEuNDQyIDEzMS4zMzggMzY1LjcxNSAxMzEuMzM4IDI5Ni43ODdDMTMxLjMzOCAyMjcuODI3IDE4MS45NTggMTcxLjE2NyAyNTUuOTA1IDE3MS4xNjdDMzI5Ljg5MiAxNzEuMTY3IDM4MC40NzEgMjI3LjgyNyAzODAuNDcxIDI5Ni43ODdDMzgwLjQ3MSAzNjUuNzE1IDMyOS44OTIgNDIxLjQ0MiAyNTUuOTA1IDQyMS40NDJaTTI1Ny4zNjIgNDYuMDM3MUMxMjAuODM4IDQ1LjI0NzUgNy45MjUyOCAxNTcuMDQ5IDYuNzcyMDcgMjk0LjE5M0M2LjE4NTM1IDM2Ni43OSAzNi4zNzExIDQzMi4zMzMgODUuMDI4MyA0NzguNDE5QzEwMi43MzEgNDk1LjE3MSAxMzAuMDg0IDQ5Ni44IDE0OS4yNjQgNDgxLjgyQzE3Ny42MjkgNDU5LjY1OSAyMTQuMDQ2IDQ0Ni40NTggMjU1LjkwNSA0NDYuNDU4QzI5Ny43NjQgNDQ2LjQ1OCAzMzQuMTgxIDQ1OS42NjcgMzYyLjU0NiA0ODEuODJDMzgxLjkwOCA0OTYuOTI2IDQwOS4zNjIgNDk0Ljk4OSA0MjcuMTY2IDQ3OC4wNTVDNDc1LjExNSA0MzIuNDQ0IDUwNS4wNTggMzY3Ljg2NiA1MDUuMDU4IDI5Ni4zMDVDNTA1LjA1OCAxNTguNTgzIDM5NC4yNjkgNDYuODI4OCAyNTcuMzYyIDQ2LjAzNzFaIiBmaWxsPSIjNkFDNjNGIi8+CjxjaXJjbGUgY3g9IjM4MC42MTgiIGN5PSIxNDQuNTI1IiByPSIxMjQuNjE4IiBmaWxsPSIjREExRTI4Ii8+CjxwYXRoIGQ9Ik0zMDUuNDg1IDE3MC40OTRMMzIwLjQ3OCAxOTYuNTA5TDM2NS4xOTQgMTcwLjY1MlYyMTkuNzIzSDM5NS4xOFYxNzAuNjQzTDQ0MC4zOTQgMTk2Ljc4OEw0NTUuMzg2IDE3MC43NzJMNDEwLjE4MyAxNDQuNjM0TDQ1NS4yMzkgMTE4LjU4MUw0NDAuMjQ2IDkyLjU2NjFMMzk1LjE4IDExOC42MjdWNjkuNTU3N0gzNjUuMTk0VjExOC42MkwzMjAuMjEzIDkyLjYxMTFMMzA1LjIyMSAxMTguNjI2TDM1MC4yMDEgMTQ0LjYzNEwzMDUuNDg1IDE3MC40OTRaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K"
967
+ }
968
+ }
969
+ ]