@camunda/connectors-element-templates 1.0.7 → 1.0.9

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