@camunda/connectors-element-templates 1.0.18 → 1.0.19

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 (98) hide show
  1. package/package.json +1 -1
  2. package/src/element-templates/agenticai-a2a-client-outbound-connector.json +2 -2
  3. package/src/element-templates/agenticai-a2a-client-polling-inbound-connector-intermediate.json +2 -2
  4. package/src/element-templates/agenticai-a2a-client-polling-inbound-connector-receive.json +2 -2
  5. package/src/element-templates/agenticai-a2a-client-webhook-inbound-connector-intermediate.json +2 -2
  6. package/src/element-templates/agenticai-a2a-client-webhook-inbound-connector-receive.json +2 -2
  7. package/src/element-templates/agenticai-adhoctoolsschema-outbound-connector.json +22 -22
  8. package/src/element-templates/agenticai-aiagent-job-worker.json +240 -240
  9. package/src/element-templates/agenticai-aiagent-outbound-connector.json +3735 -3735
  10. package/src/element-templates/agenticai-mcp-client-outbound-connector.json +550 -550
  11. package/src/element-templates/agenticai-mcp-remote-client-outbound-connector.json +733 -733
  12. package/src/element-templates/asana-connector.json +116 -116
  13. package/src/element-templates/automation-anywhere-outbound-connector.json +665 -665
  14. package/src/element-templates/aws-bedrock-outbound-connector.json +431 -431
  15. package/src/element-templates/aws-dynamodb-outbound-connector.json +1337 -1337
  16. package/src/element-templates/aws-eventbridge-connector-boundary.json +37 -37
  17. package/src/element-templates/aws-eventbridge-connector-intermediate.json +77 -77
  18. package/src/element-templates/aws-eventbridge-connector-message-start.json +21 -21
  19. package/src/element-templates/aws-eventbridge-connector-receive.json +6 -6
  20. package/src/element-templates/aws-eventbridge-outbound-connector.json +229 -229
  21. package/src/element-templates/aws-lambda-outbound-connector.json +278 -278
  22. package/src/element-templates/aws-s3-outbound-connector.json +244 -244
  23. package/src/element-templates/aws-sagemaker-outbound-connector.json +58 -58
  24. package/src/element-templates/aws-sns-inbound-boundary.json +224 -224
  25. package/src/element-templates/aws-sns-inbound-intermediate.json +329 -329
  26. package/src/element-templates/aws-sns-inbound-message-start.json +357 -357
  27. package/src/element-templates/aws-sns-inbound-start-event.json +135 -135
  28. package/src/element-templates/aws-sns-outbound-connector.json +293 -293
  29. package/src/element-templates/aws-sqs-boundary-connector.json +890 -890
  30. package/src/element-templates/aws-sqs-inbound-intermediate-connector.json +529 -529
  31. package/src/element-templates/aws-sqs-outbound-connector.json +573 -573
  32. package/src/element-templates/aws-sqs-start-event-connector.json +408 -408
  33. package/src/element-templates/aws-sqs-start-message.json +488 -488
  34. package/src/element-templates/aws-textract-outbound-connector.json +275 -275
  35. package/src/element-templates/azure-blobstorage-outbound-connector.json +200 -200
  36. package/src/element-templates/azure-open-ai-connector.json +48 -48
  37. package/src/element-templates/blue-prism-connector.json +101 -101
  38. package/src/element-templates/csv-outbound-connector.json +44 -44
  39. package/src/element-templates/easy-post-connector.json +216 -216
  40. package/src/element-templates/email-inbound-connector-boundary.json +37 -37
  41. package/src/element-templates/email-inbound-connector-intermediate.json +37 -37
  42. package/src/element-templates/email-message-start-event-connector.json +63 -63
  43. package/src/element-templates/email-outbound-connector.json +902 -902
  44. package/src/element-templates/embeddings-vector-database-outbound-connector.json +520 -520
  45. package/src/element-templates/github-connector.json +10272 -10272
  46. package/src/element-templates/github-webhook-connector-intermediate.json +41 -41
  47. package/src/element-templates/github-webhook-connector-message-start.json +19 -19
  48. package/src/element-templates/github-webhook-connector-start-event.json +54 -54
  49. package/src/element-templates/gitlab-connector.json +2854 -2854
  50. package/src/element-templates/google-cloud-storage-outbound-connector.json +200 -200
  51. package/src/element-templates/google-drive-outbound-connector.json +1139 -1139
  52. package/src/element-templates/google-gemini-outbound-connector.json +122 -122
  53. package/src/element-templates/google-maps-platform-connector.json +94 -94
  54. package/src/element-templates/google-sheets-outbound-connector.json +2455 -2455
  55. package/src/element-templates/graphql-outbound-connector.json +1814 -1814
  56. package/src/element-templates/http-json-connector.json +2221 -2221
  57. package/src/element-templates/http-polling-boundary-catch-event-connector.json +766 -766
  58. package/src/element-templates/http-polling-connector.json +1510 -1510
  59. package/src/element-templates/hubspot-outbound-connector.json +65 -65
  60. package/src/element-templates/hugging-face-connector.json +122 -122
  61. package/src/element-templates/jdbc-outbound-connector.json +67 -67
  62. package/src/element-templates/kafka-inbound-connector-boundary.json +130 -130
  63. package/src/element-templates/kafka-inbound-connector-intermediate.json +1371 -1371
  64. package/src/element-templates/kafka-inbound-connector-start-message.json +166 -166
  65. package/src/element-templates/kafka-outbound-connector.json +250 -250
  66. package/src/element-templates/microsoft-office365-mail-connector.json +77 -77
  67. package/src/element-templates/microsoft-teams-outbound-connector.json +4124 -4124
  68. package/src/element-templates/openai-connector.json +199 -199
  69. package/src/element-templates/operate-connector.json +144 -144
  70. package/src/element-templates/power-automate-connector.json +62 -62
  71. package/src/element-templates/rabbitmq-inbound-connector-boundary.json +454 -454
  72. package/src/element-templates/rabbitmq-inbound-connector-intermediate.json +895 -895
  73. package/src/element-templates/rabbitmq-inbound-connector-message-start.json +458 -458
  74. package/src/element-templates/rabbitmq-inbound-connector-start-event.json +610 -610
  75. package/src/element-templates/rabbitmq-outbound-connector.json +662 -662
  76. package/src/element-templates/rpa-connector.json +5 -5
  77. package/src/element-templates/salesforce-connector.json +60 -60
  78. package/src/element-templates/sendgrid-outbound-connector.json +1301 -1301
  79. package/src/element-templates/servicenow-connector.json +6 -6
  80. package/src/element-templates/servicenow-incident-connector.json +6 -6
  81. package/src/element-templates/slack-inbound-boundary.json +305 -305
  82. package/src/element-templates/slack-inbound-intermediate.json +363 -363
  83. package/src/element-templates/slack-inbound-message-start.json +286 -286
  84. package/src/element-templates/slack-inbound-receive.json +23 -23
  85. package/src/element-templates/slack-inbound-start-event.json +301 -301
  86. package/src/element-templates/slack-outbound-connector.json +2249 -2249
  87. package/src/element-templates/twilio-connector.json +366 -366
  88. package/src/element-templates/twilio-webhook-boundary-connector.json +37 -37
  89. package/src/element-templates/twilio-webhook-connector.json +36 -36
  90. package/src/element-templates/twilio-webhook-intermediate-connector.json +59 -59
  91. package/src/element-templates/twilio-webhook-message-start-connector.json +42 -42
  92. package/src/element-templates/uipath-connector.json +54 -54
  93. package/src/element-templates/webhook-connector-boundary.json +1238 -1238
  94. package/src/element-templates/webhook-connector-intermediate.json +1254 -1254
  95. package/src/element-templates/webhook-connector-receive.json +61 -61
  96. package/src/element-templates/webhook-connector-start-event.json +1419 -1419
  97. package/src/element-templates/webhook-connector-start-message.json +1289 -1289
  98. package/src/element-templates/whatsapp-connector.json +21 -21
@@ -4,18 +4,11 @@
4
4
  "name": "SendGrid Outbound Connector",
5
5
  "id": "io.camunda.connectors.SendGrid.v2",
6
6
  "description": "Send an email via SendGrid",
7
- "keywords": [
8
- "send email",
9
- "email notification",
10
- "transactional email",
11
- "marketing email",
12
- "email campaign",
13
- "email delivery",
14
- "dynamic template",
15
- "email template"
16
- ],
7
+ "metadata": {
8
+ "keywords": []
9
+ },
17
10
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/sendgrid/",
18
- "version": 6,
11
+ "version": 4,
19
12
  "category": {
20
13
  "id": "connectors",
21
14
  "name": "Connectors"
@@ -25,7 +18,7 @@
25
18
  "value": "bpmn:ServiceTask"
26
19
  },
27
20
  "engines": {
28
- "camunda": "^8.10"
21
+ "camunda": "^8.3"
29
22
  },
30
23
  "groups": [
31
24
  {
@@ -44,10 +37,6 @@
44
37
  "id": "content",
45
38
  "label": "Compose email"
46
39
  },
47
- {
48
- "id": "connector",
49
- "label": "Connector"
50
- },
51
40
  {
52
41
  "id": "output",
53
42
  "label": "Output mapping"
@@ -268,254 +257,369 @@
268
257
  "type": "Text"
269
258
  },
270
259
  {
271
- "id": "attachments_documentMode",
272
- "label": "Number of documents",
260
+ "id": "attachments",
261
+ "label": "attachments",
273
262
  "description": "List of <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">Camunda Documents</a>",
274
- "value": "none",
263
+ "optional": true,
264
+ "feel": "required",
275
265
  "group": "content",
276
266
  "binding": {
277
- "name": "attachments_documentMode",
267
+ "name": "attachments",
278
268
  "type": "zeebe:input"
279
269
  },
280
- "type": "Dropdown",
281
- "choices": [
282
- {
283
- "name": "None",
284
- "value": "none"
285
- },
286
- {
287
- "name": "Single document",
288
- "value": "single"
289
- },
290
- {
291
- "name": "Multiple documents",
292
- "value": "multiple"
293
- }
294
- ]
270
+ "type": "String"
295
271
  },
296
272
  {
297
- "id": "attachments_single_documentSource",
298
- "label": "Document source",
299
- "value": "camunda",
300
- "group": "content",
273
+ "id": "resultVariable",
274
+ "label": "Result variable",
275
+ "description": "Name of variable to store the response in",
276
+ "group": "output",
301
277
  "binding": {
302
- "name": "attachments_single_documentSource",
303
- "type": "zeebe:input"
304
- },
305
- "condition": {
306
- "property": "attachments_documentMode",
307
- "equals": "single",
308
- "type": "simple"
278
+ "key": "resultVariable",
279
+ "type": "zeebe:taskHeader"
309
280
  },
310
- "type": "Dropdown",
311
- "choices": [
312
- {
313
- "name": "Camunda Document",
314
- "value": "camunda"
315
- },
316
- {
317
- "name": "Inline Content",
318
- "value": "inline"
319
- },
320
- {
321
- "name": "From URL",
322
- "value": "external"
323
- }
324
- ]
281
+ "type": "String"
325
282
  },
326
283
  {
327
- "id": "attachments_single_camundaReference",
328
- "label": "Camunda document",
329
- "constraints": {
330
- "notEmpty": true
284
+ "id": "resultExpression",
285
+ "label": "Result expression",
286
+ "description": "Expression to map the response into process variables",
287
+ "feel": "required",
288
+ "group": "output",
289
+ "binding": {
290
+ "key": "resultExpression",
291
+ "type": "zeebe:taskHeader"
331
292
  },
293
+ "type": "Text"
294
+ },
295
+ {
296
+ "id": "errorExpression",
297
+ "label": "Error expression",
298
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
332
299
  "feel": "required",
333
- "group": "content",
300
+ "group": "error",
334
301
  "binding": {
335
- "name": "attachments_single_camundaReference",
336
- "type": "zeebe:input"
302
+ "key": "errorExpression",
303
+ "type": "zeebe:taskHeader"
337
304
  },
338
- "condition": {
339
- "allMatch": [
340
- {
341
- "property": "attachments_documentMode",
342
- "equals": "single",
343
- "type": "simple"
344
- },
345
- {
346
- "property": "attachments_single_documentSource",
347
- "equals": "camunda",
348
- "type": "simple"
349
- }
350
- ]
305
+ "type": "Text"
306
+ },
307
+ {
308
+ "id": "retryCount",
309
+ "label": "Retries",
310
+ "description": "Number of retries",
311
+ "value": "3",
312
+ "feel": "optional",
313
+ "group": "retries",
314
+ "binding": {
315
+ "property": "retries",
316
+ "type": "zeebe:taskDefinition"
351
317
  },
352
318
  "type": "String"
353
319
  },
354
320
  {
355
- "id": "attachments_single_inline_content",
356
- "label": "Content",
321
+ "id": "retryBackoff",
322
+ "label": "Retry backoff",
323
+ "description": "ISO-8601 duration to wait between retries",
324
+ "value": "PT0S",
325
+ "group": "retries",
326
+ "binding": {
327
+ "key": "retryBackoff",
328
+ "type": "zeebe:taskHeader"
329
+ },
330
+ "type": "String"
331
+ }
332
+ ],
333
+ "icon": {
334
+ "contents": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0id2hpdGUiLz4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0iIzk5RTFGNCIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSIjOTlFMUY0Ii8+CiAgICA8cGF0aCBkPSJNMC4yODU3MDYgMTUuNjg0Nkw1LjQzODM3IDE1LjY4NDRWMTUuNzE0M0gwLjI4NTcwNlYxNS42ODQ2Wk0wLjI4NTcwNiAxMC41NjE5SDUuNDM4MzdWMTUuNjg0NEwwLjI4NTcwNiAxNS42ODQ2VjEwLjU2MTlaIiBmaWxsPSIjMUE4MkUyIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAwLjI4NTcwNkgxMC41NjExVjUuNDA4NDdINS40MzgzN1YwLjI4NTcwNlpNMTAuNTYxNiA1LjQzODM3SDE1LjcxNDNWMTAuNTYxMUgxMC41NjE2VjUuNDM4MzdaIiBmaWxsPSIjMDBCM0UzIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAxMC41NjExTDEwLjU2MTEgMTAuNTYxNlY1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMVoiIGZpbGw9IiMwMDlERDkiLz4KICAgIDxwYXRoIGQ9Ik0xMC41NjExIDAuMjg1NzA2SDE1LjcxNDNWNS40MDg0N0gxMC41NjExVjAuMjg1NzA2WiIgZmlsbD0iIzFBODJFMiIvPgogICAgPHBhdGggZD0iTTEwLjU2MTEgNS40MDg0N0gxNS43MTQzVjUuNDM4MzdIMTAuNTYxNkwxMC41NjExIDUuNDA4NDdaIiBmaWxsPSIjMUE4MkUyIi8+Cjwvc3ZnPg=="
335
+ }
336
+ },
337
+ {
338
+ "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
339
+ "name": "SendGrid Outbound Connector",
340
+ "id": "io.camunda.connectors.SendGrid.v2",
341
+ "description": "Send an email via SendGrid",
342
+ "keywords": [
343
+ "send email",
344
+ "email notification",
345
+ "transactional email",
346
+ "marketing email",
347
+ "email campaign",
348
+ "email delivery",
349
+ "dynamic template",
350
+ "email template"
351
+ ],
352
+ "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/sendgrid/",
353
+ "version": 5,
354
+ "category": {
355
+ "id": "connectors",
356
+ "name": "Connectors"
357
+ },
358
+ "appliesTo": ["bpmn:Task"],
359
+ "elementType": {
360
+ "value": "bpmn:ServiceTask"
361
+ },
362
+ "engines": {
363
+ "camunda": "^8.3"
364
+ },
365
+ "groups": [
366
+ {
367
+ "id": "authentication",
368
+ "label": "Authentication"
369
+ },
370
+ {
371
+ "id": "sender",
372
+ "label": "Sender"
373
+ },
374
+ {
375
+ "id": "receiver",
376
+ "label": "Receiver"
377
+ },
378
+ {
379
+ "id": "content",
380
+ "label": "Compose email"
381
+ },
382
+ {
383
+ "id": "connector",
384
+ "label": "Connector"
385
+ },
386
+ {
387
+ "id": "output",
388
+ "label": "Output mapping"
389
+ },
390
+ {
391
+ "id": "error",
392
+ "label": "Error handling"
393
+ },
394
+ {
395
+ "id": "retries",
396
+ "label": "Retries"
397
+ }
398
+ ],
399
+ "properties": [
400
+ {
401
+ "value": "io.camunda:sendgrid:1",
402
+ "binding": {
403
+ "property": "type",
404
+ "type": "zeebe:taskDefinition"
405
+ },
406
+ "type": "Hidden"
407
+ },
408
+ {
409
+ "id": "apiKey",
410
+ "label": "SendGrid API key",
411
+ "optional": false,
357
412
  "constraints": {
358
413
  "notEmpty": true
359
414
  },
360
415
  "feel": "optional",
361
- "group": "content",
416
+ "group": "authentication",
362
417
  "binding": {
363
- "name": "attachments_single_inline_content",
418
+ "name": "apiKey",
364
419
  "type": "zeebe:input"
365
420
  },
366
- "condition": {
367
- "allMatch": [
368
- {
369
- "property": "attachments_documentMode",
370
- "equals": "single",
371
- "type": "simple"
372
- },
373
- {
374
- "property": "attachments_single_documentSource",
375
- "equals": "inline",
376
- "type": "simple"
377
- }
378
- ]
379
- },
380
421
  "type": "String"
381
422
  },
382
423
  {
383
- "id": "attachments_single_inline_fileName",
384
- "label": "File name",
424
+ "id": "from.name",
425
+ "label": "Name",
426
+ "optional": false,
427
+ "constraints": {
428
+ "notEmpty": true
429
+ },
385
430
  "feel": "optional",
386
- "group": "content",
431
+ "group": "sender",
387
432
  "binding": {
388
- "name": "attachments_single_inline_fileName",
433
+ "name": "from.name",
389
434
  "type": "zeebe:input"
390
435
  },
391
- "condition": {
392
- "allMatch": [
393
- {
394
- "property": "attachments_documentMode",
395
- "equals": "single",
396
- "type": "simple"
397
- },
398
- {
399
- "property": "attachments_single_documentSource",
400
- "equals": "inline",
401
- "type": "simple"
402
- }
403
- ]
436
+ "type": "String"
437
+ },
438
+ {
439
+ "id": "from.email",
440
+ "label": "Email address",
441
+ "optional": false,
442
+ "constraints": {
443
+ "notEmpty": true
444
+ },
445
+ "feel": "optional",
446
+ "group": "sender",
447
+ "binding": {
448
+ "name": "from.email",
449
+ "type": "zeebe:input"
404
450
  },
405
451
  "type": "String"
406
452
  },
407
453
  {
408
- "id": "attachments_single_inline_contentType",
409
- "label": "Content type",
454
+ "id": "to.name",
455
+ "label": "Name",
456
+ "optional": false,
457
+ "constraints": {
458
+ "notEmpty": true
459
+ },
460
+ "feel": "optional",
461
+ "group": "receiver",
462
+ "binding": {
463
+ "name": "to.name",
464
+ "type": "zeebe:input"
465
+ },
466
+ "type": "String"
467
+ },
468
+ {
469
+ "id": "to.email",
470
+ "label": "Email address",
471
+ "optional": false,
472
+ "constraints": {
473
+ "notEmpty": true
474
+ },
410
475
  "feel": "optional",
476
+ "group": "receiver",
477
+ "binding": {
478
+ "name": "to.email",
479
+ "type": "zeebe:input"
480
+ },
481
+ "type": "String"
482
+ },
483
+ {
484
+ "id": "unMappedFieldNotUseInModel.mailType",
485
+ "label": "Mail contents",
486
+ "optional": false,
411
487
  "group": "content",
412
488
  "binding": {
413
- "name": "attachments_single_inline_contentType",
489
+ "name": "unMappedFieldNotUseInModel.mailType",
490
+ "type": "zeebe:input"
491
+ },
492
+ "type": "Dropdown",
493
+ "choices": [
494
+ {
495
+ "name": "Simple (no dynamic template)",
496
+ "value": "mail"
497
+ },
498
+ {
499
+ "name": "Using dynamic template",
500
+ "value": "byTemplate"
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "id": "template.id",
506
+ "label": "Template ID",
507
+ "optional": false,
508
+ "constraints": {
509
+ "notEmpty": true
510
+ },
511
+ "feel": "optional",
512
+ "group": "content",
513
+ "binding": {
514
+ "name": "template.id",
414
515
  "type": "zeebe:input"
415
516
  },
416
517
  "condition": {
417
- "allMatch": [
418
- {
419
- "property": "attachments_documentMode",
420
- "equals": "single",
421
- "type": "simple"
422
- },
423
- {
424
- "property": "attachments_single_documentSource",
425
- "equals": "inline",
426
- "type": "simple"
427
- }
428
- ]
518
+ "property": "unMappedFieldNotUseInModel.mailType",
519
+ "equals": "byTemplate",
520
+ "type": "simple"
429
521
  },
430
522
  "type": "String"
431
523
  },
432
524
  {
433
- "id": "attachments_single_external_url",
434
- "label": "URL",
525
+ "id": "template.data",
526
+ "label": "Template data",
527
+ "optional": false,
435
528
  "constraints": {
436
529
  "notEmpty": true
437
530
  },
438
- "feel": "optional",
531
+ "feel": "required",
439
532
  "group": "content",
440
533
  "binding": {
441
- "name": "attachments_single_external_url",
534
+ "name": "template.data",
442
535
  "type": "zeebe:input"
443
536
  },
444
537
  "condition": {
445
- "allMatch": [
446
- {
447
- "property": "attachments_documentMode",
448
- "equals": "single",
449
- "type": "simple"
450
- },
451
- {
452
- "property": "attachments_single_documentSource",
453
- "equals": "external",
454
- "type": "simple"
455
- }
456
- ]
538
+ "property": "unMappedFieldNotUseInModel.mailType",
539
+ "equals": "byTemplate",
540
+ "type": "simple"
457
541
  },
458
542
  "type": "String"
459
543
  },
460
544
  {
461
- "id": "attachments_single_external_fileName",
462
- "label": "File name",
545
+ "id": "content.subject",
546
+ "label": "Subject",
547
+ "optional": false,
548
+ "constraints": {
549
+ "notEmpty": true
550
+ },
463
551
  "feel": "optional",
464
552
  "group": "content",
465
553
  "binding": {
466
- "name": "attachments_single_external_fileName",
554
+ "name": "content.subject",
467
555
  "type": "zeebe:input"
468
556
  },
469
557
  "condition": {
470
- "allMatch": [
471
- {
472
- "property": "attachments_documentMode",
473
- "equals": "single",
474
- "type": "simple"
475
- },
476
- {
477
- "property": "attachments_single_documentSource",
478
- "equals": "external",
479
- "type": "simple"
480
- }
481
- ]
558
+ "property": "unMappedFieldNotUseInModel.mailType",
559
+ "equals": "mail",
560
+ "type": "simple"
482
561
  },
483
562
  "type": "String"
484
563
  },
485
564
  {
486
- "id": "attachments_multiple_expression",
487
- "label": "Documents",
565
+ "id": "content.type",
566
+ "label": "Content type",
567
+ "optional": false,
568
+ "value": "text/plain",
488
569
  "constraints": {
489
570
  "notEmpty": true
490
571
  },
491
- "feel": "required",
572
+ "feel": "optional",
492
573
  "group": "content",
493
574
  "binding": {
494
- "name": "attachments_multiple_expression",
575
+ "name": "content.type",
495
576
  "type": "zeebe:input"
496
577
  },
497
578
  "condition": {
498
- "property": "attachments_documentMode",
499
- "equals": "multiple",
579
+ "property": "unMappedFieldNotUseInModel.mailType",
580
+ "equals": "mail",
500
581
  "type": "simple"
501
582
  },
502
583
  "type": "String"
503
584
  },
585
+ {
586
+ "id": "content.value",
587
+ "label": "Body",
588
+ "optional": false,
589
+ "constraints": {
590
+ "notEmpty": true
591
+ },
592
+ "feel": "optional",
593
+ "group": "content",
594
+ "binding": {
595
+ "name": "content.value",
596
+ "type": "zeebe:input"
597
+ },
598
+ "condition": {
599
+ "property": "unMappedFieldNotUseInModel.mailType",
600
+ "equals": "mail",
601
+ "type": "simple"
602
+ },
603
+ "type": "Text"
604
+ },
504
605
  {
505
606
  "id": "attachments",
506
- "value": "=if attachments_documentMode = \"multiple\" then attachments_multiple_expression else if attachments_documentMode = \"single\" then (if attachments_single_documentSource = \"camunda\" then [attachments_single_camundaReference] else if attachments_single_documentSource = \"inline\" then [{ \"camunda.document.type\": \"inline\", content: attachments_single_inline_content, name: attachments_single_inline_fileName, contentType: attachments_single_inline_contentType }] else if attachments_single_documentSource = \"external\" then [{ \"camunda.document.type\": \"external\", url: attachments_single_external_url, name: attachments_single_external_fileName }] else null) else null",
607
+ "label": "attachments",
608
+ "description": "List of <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">Camunda Documents</a>",
609
+ "optional": true,
610
+ "feel": "required",
507
611
  "group": "content",
508
612
  "binding": {
509
613
  "name": "attachments",
510
614
  "type": "zeebe:input"
511
615
  },
512
- "type": "Hidden"
616
+ "type": "String"
513
617
  },
514
618
  {
515
619
  "id": "version",
516
620
  "label": "Version",
517
621
  "description": "Version of the element template",
518
- "value": "6",
622
+ "value": "5",
519
623
  "group": "connector",
520
624
  "binding": {
521
625
  "key": "elementTemplateVersion",
@@ -602,11 +706,14 @@
602
706
  },
603
707
  {
604
708
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
605
- "name": "SendGrid Outbound Connector",
709
+ "name": "SendGrid connector",
606
710
  "id": "io.camunda.connectors.SendGrid.v2",
711
+ "version": 1,
607
712
  "description": "Send an email via SendGrid",
608
713
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/sendgrid/",
609
- "version": 3,
714
+ "icon": {
715
+ "contents": "data:image/svg+xml;utf8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%2015.6846L5.43837%2015.6844V15.7143H0.285706V15.6846ZM0.285706%2010.5619H5.43837V15.6844L0.285706%2015.6846V10.5619Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%200.285706H10.5611V5.40847H5.43837V0.285706ZM10.5616%205.43837H15.7143V10.5611H10.5616V5.43837Z%22%20fill%3D%22%2300B3E3%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V5.40847H5.43837V10.5611Z%22%20fill%3D%22%23009DD9%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%200.285706H15.7143V5.40847H10.5611V0.285706Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%205.40847H15.7143V5.43837H10.5616L10.5611%205.40847Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3C%2Fsvg%3E"
716
+ },
610
717
  "category": {
611
718
  "id": "connectors",
612
719
  "name": "Connectors"
@@ -633,111 +740,88 @@
633
740
  "label": "Compose email"
634
741
  },
635
742
  {
636
- "id": "output",
637
- "label": "Output mapping"
638
- },
639
- {
640
- "id": "error",
743
+ "id": "errors",
641
744
  "label": "Error handling"
642
- },
643
- {
644
- "id": "retries",
645
- "label": "Retries"
646
745
  }
647
746
  ],
648
747
  "properties": [
649
748
  {
749
+ "type": "Hidden",
650
750
  "value": "io.camunda:sendgrid:1",
651
751
  "binding": {
652
- "property": "type",
653
- "type": "zeebe:taskDefinition"
654
- },
655
- "type": "Hidden"
752
+ "type": "zeebe:taskDefinition",
753
+ "property": "type"
754
+ }
656
755
  },
657
756
  {
658
- "id": "apiKey",
659
757
  "label": "SendGrid API key",
660
- "optional": false,
661
- "constraints": {
662
- "notEmpty": true
663
- },
664
- "feel": "optional",
665
758
  "group": "authentication",
759
+ "type": "String",
760
+ "feel": "optional",
666
761
  "binding": {
667
- "name": "apiKey",
668
- "type": "zeebe:input"
762
+ "type": "zeebe:input",
763
+ "name": "apiKey"
669
764
  },
670
- "type": "String"
765
+ "constraints": {
766
+ "notEmpty": true
767
+ }
671
768
  },
672
769
  {
673
- "id": "from.name",
674
770
  "label": "Name",
675
- "optional": false,
676
- "constraints": {
677
- "notEmpty": true
678
- },
679
- "feel": "optional",
680
771
  "group": "sender",
772
+ "type": "String",
773
+ "feel": "optional",
681
774
  "binding": {
682
- "name": "from.name",
683
- "type": "zeebe:input"
775
+ "type": "zeebe:input",
776
+ "name": "from.name"
684
777
  },
685
- "type": "String"
778
+ "constraints": {
779
+ "notEmpty": true
780
+ }
686
781
  },
687
782
  {
688
- "id": "from.email",
689
783
  "label": "Email address",
690
- "optional": false,
691
- "constraints": {
692
- "notEmpty": true
693
- },
694
- "feel": "optional",
695
784
  "group": "sender",
785
+ "type": "String",
786
+ "feel": "optional",
696
787
  "binding": {
697
- "name": "from.email",
698
- "type": "zeebe:input"
788
+ "type": "zeebe:input",
789
+ "name": "from.email"
699
790
  },
700
- "type": "String"
791
+ "constraints": {
792
+ "notEmpty": true
793
+ }
701
794
  },
702
795
  {
703
- "id": "to.name",
704
796
  "label": "Name",
705
- "optional": false,
706
- "constraints": {
707
- "notEmpty": true
708
- },
709
- "feel": "optional",
710
797
  "group": "receiver",
798
+ "type": "String",
799
+ "feel": "optional",
711
800
  "binding": {
712
- "name": "to.name",
713
- "type": "zeebe:input"
801
+ "type": "zeebe:input",
802
+ "name": "to.name"
714
803
  },
715
- "type": "String"
804
+ "constraints": {
805
+ "notEmpty": true
806
+ }
716
807
  },
717
808
  {
718
- "id": "to.email",
719
809
  "label": "Email address",
720
- "optional": false,
721
- "constraints": {
722
- "notEmpty": true
723
- },
724
- "feel": "optional",
725
810
  "group": "receiver",
811
+ "type": "String",
812
+ "feel": "optional",
726
813
  "binding": {
727
- "name": "to.email",
728
- "type": "zeebe:input"
814
+ "type": "zeebe:input",
815
+ "name": "to.email"
729
816
  },
730
- "type": "String"
817
+ "constraints": {
818
+ "notEmpty": true
819
+ }
731
820
  },
732
821
  {
733
- "id": "unMappedFieldNotUseInModel.mailType",
734
- "label": "Mail contents",
735
- "optional": false,
822
+ "id": "mailType",
736
823
  "group": "content",
737
- "binding": {
738
- "name": "unMappedFieldNotUseInModel.mailType",
739
- "type": "zeebe:input"
740
- },
824
+ "value": "mail",
741
825
  "type": "Dropdown",
742
826
  "choices": [
743
827
  {
@@ -748,188 +832,124 @@
748
832
  "name": "Using dynamic template",
749
833
  "value": "byTemplate"
750
834
  }
751
- ]
752
- },
753
- {
754
- "id": "template.id",
755
- "label": "Template ID",
756
- "optional": false,
757
- "constraints": {
758
- "notEmpty": true
759
- },
760
- "feel": "optional",
761
- "group": "content",
835
+ ],
762
836
  "binding": {
763
- "name": "template.id",
764
- "type": "zeebe:input"
765
- },
766
- "condition": {
767
- "property": "unMappedFieldNotUseInModel.mailType",
768
- "equals": "byTemplate",
769
- "type": "simple"
770
- },
771
- "type": "String"
837
+ "type": "zeebe:input",
838
+ "name": "unMappedFieldNotUseInModel.mailType"
839
+ }
772
840
  },
773
841
  {
774
- "id": "template.data",
775
- "label": "Template data",
776
- "optional": false,
777
- "constraints": {
778
- "notEmpty": true
779
- },
780
- "feel": "required",
842
+ "label": "Subject",
781
843
  "group": "content",
844
+ "type": "String",
845
+ "feel": "optional",
782
846
  "binding": {
783
- "name": "template.data",
784
- "type": "zeebe:input"
785
- },
786
- "condition": {
787
- "property": "unMappedFieldNotUseInModel.mailType",
788
- "equals": "byTemplate",
789
- "type": "simple"
847
+ "type": "zeebe:input",
848
+ "name": "content.subject"
790
849
  },
791
- "type": "String"
792
- },
793
- {
794
- "id": "content.subject",
795
- "label": "Subject",
796
- "optional": false,
797
850
  "constraints": {
798
851
  "notEmpty": true
799
852
  },
800
- "feel": "optional",
801
- "group": "content",
802
- "binding": {
803
- "name": "content.subject",
804
- "type": "zeebe:input"
805
- },
806
853
  "condition": {
807
- "property": "unMappedFieldNotUseInModel.mailType",
808
- "equals": "mail",
809
- "type": "simple"
810
- },
811
- "type": "String"
854
+ "property": "mailType",
855
+ "equals": "mail"
856
+ }
812
857
  },
813
858
  {
814
- "id": "content.type",
815
859
  "label": "Content type",
816
- "optional": false,
860
+ "group": "content",
861
+ "type": "String",
862
+ "feel": "optional",
817
863
  "value": "text/plain",
864
+ "binding": {
865
+ "type": "zeebe:input",
866
+ "name": "content.type"
867
+ },
818
868
  "constraints": {
819
869
  "notEmpty": true
820
870
  },
821
- "feel": "optional",
822
- "group": "content",
823
- "binding": {
824
- "name": "content.type",
825
- "type": "zeebe:input"
826
- },
827
871
  "condition": {
828
- "property": "unMappedFieldNotUseInModel.mailType",
829
- "equals": "mail",
830
- "type": "simple"
831
- },
832
- "type": "String"
872
+ "property": "mailType",
873
+ "equals": "mail"
874
+ }
833
875
  },
834
876
  {
835
- "id": "content.value",
836
877
  "label": "Body",
837
- "optional": false,
838
- "constraints": {
839
- "notEmpty": true
840
- },
841
- "feel": "optional",
842
878
  "group": "content",
879
+ "type": "Text",
880
+ "feel": "optional",
843
881
  "binding": {
844
- "name": "content.value",
845
- "type": "zeebe:input"
882
+ "type": "zeebe:input",
883
+ "name": "content.value"
846
884
  },
847
- "condition": {
848
- "property": "unMappedFieldNotUseInModel.mailType",
849
- "equals": "mail",
850
- "type": "simple"
885
+ "constraints": {
886
+ "notEmpty": true
851
887
  },
852
- "type": "Text"
888
+ "condition": {
889
+ "property": "mailType",
890
+ "equals": "mail"
891
+ }
853
892
  },
854
893
  {
855
- "id": "resultVariable",
856
- "label": "Result variable",
857
- "description": "Name of variable to store the response in",
858
- "group": "output",
894
+ "label": "Template ID",
895
+ "group": "content",
896
+ "type": "String",
897
+ "feel": "optional",
859
898
  "binding": {
860
- "key": "resultVariable",
861
- "type": "zeebe:taskHeader"
899
+ "type": "zeebe:input",
900
+ "name": "template.id"
862
901
  },
863
- "type": "String"
864
- },
865
- {
866
- "id": "resultExpression",
867
- "label": "Result expression",
868
- "description": "Expression to map the response into process variables",
869
- "feel": "required",
870
- "group": "output",
871
- "binding": {
872
- "key": "resultExpression",
873
- "type": "zeebe:taskHeader"
902
+ "constraints": {
903
+ "notEmpty": true
874
904
  },
875
- "type": "Text"
905
+ "condition": {
906
+ "property": "mailType",
907
+ "equals": "byTemplate"
908
+ }
876
909
  },
877
910
  {
878
- "id": "errorExpression",
879
- "label": "Error expression",
880
- "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
911
+ "label": "Template data",
912
+ "group": "content",
913
+ "type": "Text",
881
914
  "feel": "required",
882
- "group": "error",
883
915
  "binding": {
884
- "key": "errorExpression",
885
- "type": "zeebe:taskHeader"
916
+ "type": "zeebe:input",
917
+ "name": "template.data"
886
918
  },
887
- "type": "Text"
888
- },
889
- {
890
- "id": "retryCount",
891
- "label": "Retries",
892
- "description": "Number of retries",
893
- "value": "3",
894
- "feel": "optional",
895
- "group": "retries",
896
- "binding": {
897
- "property": "retries",
898
- "type": "zeebe:taskDefinition"
919
+ "constraints": {
920
+ "notEmpty": true
899
921
  },
900
- "type": "String"
922
+ "condition": {
923
+ "property": "mailType",
924
+ "equals": "byTemplate"
925
+ }
901
926
  },
902
927
  {
903
- "id": "retryBackoff",
904
- "label": "Retry backoff",
905
- "description": "ISO-8601 duration to wait between retries",
906
- "value": "PT0S",
907
- "feel": "optional",
908
- "group": "retries",
928
+ "label": "Error expression",
929
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#bpmn-errors\" target=\"_blank\">documentation</a>",
930
+ "group": "errors",
931
+ "type": "Text",
932
+ "feel": "required",
909
933
  "binding": {
910
- "key": "retryBackoff",
911
- "type": "zeebe:taskHeader"
912
- },
913
- "type": "String"
934
+ "type": "zeebe:taskHeader",
935
+ "key": "errorExpression"
936
+ }
914
937
  }
915
938
  ],
916
- "icon": {
917
- "contents": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0id2hpdGUiLz4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0iIzk5RTFGNCIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSIjOTlFMUY0Ii8+CiAgICA8cGF0aCBkPSJNMC4yODU3MDYgMTUuNjg0Nkw1LjQzODM3IDE1LjY4NDRWMTUuNzE0M0gwLjI4NTcwNlYxNS42ODQ2Wk0wLjI4NTcwNiAxMC41NjE5SDUuNDM4MzdWMTUuNjg0NEwwLjI4NTcwNiAxNS42ODQ2VjEwLjU2MTlaIiBmaWxsPSIjMUE4MkUyIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAwLjI4NTcwNkgxMC41NjExVjUuNDA4NDdINS40MzgzN1YwLjI4NTcwNlpNMTAuNTYxNiA1LjQzODM3SDE1LjcxNDNWMTAuNTYxMUgxMC41NjE2VjUuNDM4MzdaIiBmaWxsPSIjMDBCM0UzIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAxMC41NjExTDEwLjU2MTEgMTAuNTYxNlY1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMVoiIGZpbGw9IiMwMDlERDkiLz4KICAgIDxwYXRoIGQ9Ik0xMC41NjExIDAuMjg1NzA2SDE1LjcxNDNWNS40MDg0N0gxMC41NjExVjAuMjg1NzA2WiIgZmlsbD0iIzFBODJFMiIvPgogICAgPHBhdGggZD0iTTEwLjU2MTEgNS40MDg0N0gxNS43MTQzVjUuNDM4MzdIMTAuNTYxNkwxMC41NjExIDUuNDA4NDdaIiBmaWxsPSIjMUE4MkUyIi8+Cjwvc3ZnPg=="
918
- },
919
939
  "engines": {
920
- "camunda": "^8.5"
940
+ "camunda": "^8.2"
921
941
  }
922
942
  },
923
943
  {
924
944
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
925
945
  "name": "SendGrid Outbound Connector",
926
946
  "id": "io.camunda.connectors.SendGrid.v2",
947
+ "version": 2,
927
948
  "description": "Send an email via SendGrid",
928
- "metadata": {
929
- "keywords": []
930
- },
931
949
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/sendgrid/",
932
- "version": 4,
950
+ "icon": {
951
+ "contents": "data:image/svg+xml;utf8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%2015.6846L5.43837%2015.6844V15.7143H0.285706V15.6846ZM0.285706%2010.5619H5.43837V15.6844L0.285706%2015.6846V10.5619Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%200.285706H10.5611V5.40847H5.43837V0.285706ZM10.5616%205.43837H15.7143V10.5611H10.5616V5.43837Z%22%20fill%3D%22%2300B3E3%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V5.40847H5.43837V10.5611Z%22%20fill%3D%22%23009DD9%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%200.285706H15.7143V5.40847H10.5611V0.285706Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%205.40847H15.7143V5.43837H10.5616L10.5611%205.40847Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3C%2Fsvg%3E"
952
+ },
933
953
  "category": {
934
954
  "id": "connectors",
935
955
  "name": "Connectors"
@@ -938,9 +958,6 @@
938
958
  "elementType": {
939
959
  "value": "bpmn:ServiceTask"
940
960
  },
941
- "engines": {
942
- "camunda": "^8.3"
943
- },
944
961
  "groups": [
945
962
  {
946
963
  "id": "authentication",
@@ -959,111 +976,88 @@
959
976
  "label": "Compose email"
960
977
  },
961
978
  {
962
- "id": "output",
963
- "label": "Output mapping"
964
- },
965
- {
966
- "id": "error",
979
+ "id": "errors",
967
980
  "label": "Error handling"
968
- },
969
- {
970
- "id": "retries",
971
- "label": "Retries"
972
981
  }
973
982
  ],
974
983
  "properties": [
975
984
  {
985
+ "type": "Hidden",
976
986
  "value": "io.camunda:sendgrid:1",
977
987
  "binding": {
978
- "property": "type",
979
- "type": "zeebe:taskDefinition"
980
- },
981
- "type": "Hidden"
988
+ "type": "zeebe:taskDefinition",
989
+ "property": "type"
990
+ }
982
991
  },
983
992
  {
984
- "id": "apiKey",
985
993
  "label": "SendGrid API key",
986
- "optional": false,
987
- "constraints": {
988
- "notEmpty": true
989
- },
990
- "feel": "optional",
991
994
  "group": "authentication",
995
+ "type": "String",
996
+ "feel": "optional",
992
997
  "binding": {
993
- "name": "apiKey",
994
- "type": "zeebe:input"
998
+ "type": "zeebe:input",
999
+ "name": "apiKey"
995
1000
  },
996
- "type": "String"
1001
+ "constraints": {
1002
+ "notEmpty": true
1003
+ }
997
1004
  },
998
1005
  {
999
- "id": "from.name",
1000
1006
  "label": "Name",
1001
- "optional": false,
1002
- "constraints": {
1003
- "notEmpty": true
1004
- },
1005
- "feel": "optional",
1006
1007
  "group": "sender",
1008
+ "type": "String",
1009
+ "feel": "optional",
1007
1010
  "binding": {
1008
- "name": "from.name",
1009
- "type": "zeebe:input"
1011
+ "type": "zeebe:input",
1012
+ "name": "from.name"
1010
1013
  },
1011
- "type": "String"
1014
+ "constraints": {
1015
+ "notEmpty": true
1016
+ }
1012
1017
  },
1013
1018
  {
1014
- "id": "from.email",
1015
1019
  "label": "Email address",
1016
- "optional": false,
1017
- "constraints": {
1018
- "notEmpty": true
1019
- },
1020
- "feel": "optional",
1021
1020
  "group": "sender",
1021
+ "type": "String",
1022
+ "feel": "optional",
1022
1023
  "binding": {
1023
- "name": "from.email",
1024
- "type": "zeebe:input"
1024
+ "type": "zeebe:input",
1025
+ "name": "from.email"
1025
1026
  },
1026
- "type": "String"
1027
+ "constraints": {
1028
+ "notEmpty": true
1029
+ }
1027
1030
  },
1028
1031
  {
1029
- "id": "to.name",
1030
1032
  "label": "Name",
1031
- "optional": false,
1032
- "constraints": {
1033
- "notEmpty": true
1034
- },
1035
- "feel": "optional",
1036
1033
  "group": "receiver",
1034
+ "type": "String",
1035
+ "feel": "optional",
1037
1036
  "binding": {
1038
- "name": "to.name",
1039
- "type": "zeebe:input"
1037
+ "type": "zeebe:input",
1038
+ "name": "to.name"
1040
1039
  },
1041
- "type": "String"
1040
+ "constraints": {
1041
+ "notEmpty": true
1042
+ }
1042
1043
  },
1043
1044
  {
1044
- "id": "to.email",
1045
1045
  "label": "Email address",
1046
- "optional": false,
1047
- "constraints": {
1048
- "notEmpty": true
1049
- },
1050
- "feel": "optional",
1051
1046
  "group": "receiver",
1047
+ "type": "String",
1048
+ "feel": "optional",
1052
1049
  "binding": {
1053
- "name": "to.email",
1054
- "type": "zeebe:input"
1050
+ "type": "zeebe:input",
1051
+ "name": "to.email"
1055
1052
  },
1056
- "type": "String"
1053
+ "constraints": {
1054
+ "notEmpty": true
1055
+ }
1057
1056
  },
1058
1057
  {
1059
- "id": "unMappedFieldNotUseInModel.mailType",
1060
- "label": "Mail contents",
1061
- "optional": false,
1058
+ "id": "mailType",
1062
1059
  "group": "content",
1063
- "binding": {
1064
- "name": "unMappedFieldNotUseInModel.mailType",
1065
- "type": "zeebe:input"
1066
- },
1060
+ "value": "mail",
1067
1061
  "type": "Dropdown",
1068
1062
  "choices": [
1069
1063
  {
@@ -1074,204 +1068,127 @@
1074
1068
  "name": "Using dynamic template",
1075
1069
  "value": "byTemplate"
1076
1070
  }
1077
- ]
1078
- },
1079
- {
1080
- "id": "template.id",
1081
- "label": "Template ID",
1082
- "optional": false,
1083
- "constraints": {
1084
- "notEmpty": true
1085
- },
1086
- "feel": "optional",
1087
- "group": "content",
1071
+ ],
1088
1072
  "binding": {
1089
- "name": "template.id",
1090
- "type": "zeebe:input"
1091
- },
1092
- "condition": {
1093
- "property": "unMappedFieldNotUseInModel.mailType",
1094
- "equals": "byTemplate",
1095
- "type": "simple"
1096
- },
1097
- "type": "String"
1073
+ "type": "zeebe:input",
1074
+ "name": "unMappedFieldNotUseInModel.mailType"
1075
+ }
1098
1076
  },
1099
1077
  {
1100
- "id": "template.data",
1101
- "label": "Template data",
1102
- "optional": false,
1103
- "constraints": {
1104
- "notEmpty": true
1105
- },
1106
- "feel": "required",
1078
+ "label": "Subject",
1107
1079
  "group": "content",
1080
+ "type": "String",
1081
+ "feel": "optional",
1108
1082
  "binding": {
1109
- "name": "template.data",
1110
- "type": "zeebe:input"
1111
- },
1112
- "condition": {
1113
- "property": "unMappedFieldNotUseInModel.mailType",
1114
- "equals": "byTemplate",
1115
- "type": "simple"
1083
+ "type": "zeebe:input",
1084
+ "name": "content.subject"
1116
1085
  },
1117
- "type": "String"
1118
- },
1119
- {
1120
- "id": "content.subject",
1121
- "label": "Subject",
1122
- "optional": false,
1123
1086
  "constraints": {
1124
1087
  "notEmpty": true
1125
1088
  },
1126
- "feel": "optional",
1127
- "group": "content",
1128
- "binding": {
1129
- "name": "content.subject",
1130
- "type": "zeebe:input"
1131
- },
1132
1089
  "condition": {
1133
- "property": "unMappedFieldNotUseInModel.mailType",
1134
- "equals": "mail",
1135
- "type": "simple"
1136
- },
1137
- "type": "String"
1090
+ "property": "mailType",
1091
+ "equals": "mail"
1092
+ }
1138
1093
  },
1139
1094
  {
1140
- "id": "content.type",
1141
1095
  "label": "Content type",
1142
- "optional": false,
1096
+ "group": "content",
1097
+ "type": "String",
1098
+ "feel": "optional",
1143
1099
  "value": "text/plain",
1100
+ "binding": {
1101
+ "type": "zeebe:input",
1102
+ "name": "content.type"
1103
+ },
1144
1104
  "constraints": {
1145
1105
  "notEmpty": true
1146
1106
  },
1147
- "feel": "optional",
1148
- "group": "content",
1149
- "binding": {
1150
- "name": "content.type",
1151
- "type": "zeebe:input"
1152
- },
1153
1107
  "condition": {
1154
- "property": "unMappedFieldNotUseInModel.mailType",
1155
- "equals": "mail",
1156
- "type": "simple"
1157
- },
1158
- "type": "String"
1108
+ "property": "mailType",
1109
+ "equals": "mail"
1110
+ }
1159
1111
  },
1160
1112
  {
1161
- "id": "content.value",
1162
1113
  "label": "Body",
1163
- "optional": false,
1164
- "constraints": {
1165
- "notEmpty": true
1166
- },
1167
- "feel": "optional",
1168
1114
  "group": "content",
1115
+ "type": "Text",
1116
+ "feel": "optional",
1169
1117
  "binding": {
1170
- "name": "content.value",
1171
- "type": "zeebe:input"
1118
+ "type": "zeebe:input",
1119
+ "name": "content.value"
1172
1120
  },
1173
- "condition": {
1174
- "property": "unMappedFieldNotUseInModel.mailType",
1175
- "equals": "mail",
1176
- "type": "simple"
1121
+ "constraints": {
1122
+ "notEmpty": true
1177
1123
  },
1178
- "type": "Text"
1124
+ "condition": {
1125
+ "property": "mailType",
1126
+ "equals": "mail"
1127
+ }
1179
1128
  },
1180
1129
  {
1181
- "id": "attachments",
1182
- "label": "attachments",
1183
- "description": "List of <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">Camunda Documents</a>",
1184
- "optional": true,
1185
- "feel": "required",
1130
+ "label": "Template ID",
1186
1131
  "group": "content",
1132
+ "type": "String",
1133
+ "feel": "optional",
1187
1134
  "binding": {
1188
- "name": "attachments",
1189
- "type": "zeebe:input"
1135
+ "type": "zeebe:input",
1136
+ "name": "template.id"
1190
1137
  },
1191
- "type": "String"
1192
- },
1193
- {
1194
- "id": "resultVariable",
1195
- "label": "Result variable",
1196
- "description": "Name of variable to store the response in",
1197
- "group": "output",
1198
- "binding": {
1199
- "key": "resultVariable",
1200
- "type": "zeebe:taskHeader"
1138
+ "constraints": {
1139
+ "notEmpty": true
1201
1140
  },
1202
- "type": "String"
1141
+ "condition": {
1142
+ "property": "mailType",
1143
+ "equals": "byTemplate"
1144
+ }
1203
1145
  },
1204
1146
  {
1205
- "id": "resultExpression",
1206
- "label": "Result expression",
1207
- "description": "Expression to map the response into process variables",
1147
+ "label": "Template data",
1148
+ "group": "content",
1149
+ "type": "Text",
1208
1150
  "feel": "required",
1209
- "group": "output",
1210
1151
  "binding": {
1211
- "key": "resultExpression",
1212
- "type": "zeebe:taskHeader"
1152
+ "type": "zeebe:input",
1153
+ "name": "template.data"
1213
1154
  },
1214
- "type": "Text"
1215
- },
1216
- {
1217
- "id": "errorExpression",
1218
- "label": "Error expression",
1219
- "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
1220
- "feel": "required",
1221
- "group": "error",
1222
- "binding": {
1223
- "key": "errorExpression",
1224
- "type": "zeebe:taskHeader"
1225
- },
1226
- "type": "Text"
1227
- },
1228
- {
1229
- "id": "retryCount",
1230
- "label": "Retries",
1231
- "description": "Number of retries",
1232
- "value": "3",
1233
- "feel": "optional",
1234
- "group": "retries",
1235
- "binding": {
1236
- "property": "retries",
1237
- "type": "zeebe:taskDefinition"
1155
+ "constraints": {
1156
+ "notEmpty": true
1238
1157
  },
1239
- "type": "String"
1158
+ "condition": {
1159
+ "property": "mailType",
1160
+ "equals": "byTemplate"
1161
+ }
1240
1162
  },
1241
1163
  {
1242
- "id": "retryBackoff",
1243
- "label": "Retry backoff",
1244
- "description": "ISO-8601 duration to wait between retries",
1245
- "value": "PT0S",
1246
- "group": "retries",
1164
+ "label": "Error expression",
1165
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#bpmn-errors\" target=\"_blank\">documentation</a>",
1166
+ "group": "errors",
1167
+ "type": "Text",
1168
+ "feel": "required",
1247
1169
  "binding": {
1248
- "key": "retryBackoff",
1249
- "type": "zeebe:taskHeader"
1250
- },
1251
- "type": "String"
1170
+ "type": "zeebe:taskHeader",
1171
+ "key": "errorExpression"
1172
+ }
1252
1173
  }
1253
1174
  ],
1254
- "icon": {
1255
- "contents": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0id2hpdGUiLz4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0iIzk5RTFGNCIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSIjOTlFMUY0Ii8+CiAgICA8cGF0aCBkPSJNMC4yODU3MDYgMTUuNjg0Nkw1LjQzODM3IDE1LjY4NDRWMTUuNzE0M0gwLjI4NTcwNlYxNS42ODQ2Wk0wLjI4NTcwNiAxMC41NjE5SDUuNDM4MzdWMTUuNjg0NEwwLjI4NTcwNiAxNS42ODQ2VjEwLjU2MTlaIiBmaWxsPSIjMUE4MkUyIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAwLjI4NTcwNkgxMC41NjExVjUuNDA4NDdINS40MzgzN1YwLjI4NTcwNlpNMTAuNTYxNiA1LjQzODM3SDE1LjcxNDNWMTAuNTYxMUgxMC41NjE2VjUuNDM4MzdaIiBmaWxsPSIjMDBCM0UzIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAxMC41NjExTDEwLjU2MTEgMTAuNTYxNlY1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMVoiIGZpbGw9IiMwMDlERDkiLz4KICAgIDxwYXRoIGQ9Ik0xMC41NjExIDAuMjg1NzA2SDE1LjcxNDNWNS40MDg0N0gxMC41NjExVjAuMjg1NzA2WiIgZmlsbD0iIzFBODJFMiIvPgogICAgPHBhdGggZD0iTTEwLjU2MTEgNS40MDg0N0gxNS43MTQzVjUuNDM4MzdIMTAuNTYxNkwxMC41NjExIDUuNDA4NDdaIiBmaWxsPSIjMUE4MkUyIi8+Cjwvc3ZnPg=="
1175
+ "engines": {
1176
+ "camunda": "^8.2"
1256
1177
  }
1257
1178
  },
1258
1179
  {
1259
1180
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
1260
- "name": "SendGrid Outbound Connector",
1181
+ "name": "SendGrid connector",
1261
1182
  "id": "io.camunda.connectors.SendGrid.v2",
1183
+ "deprecated": {
1184
+ "message": "Replace with 'SendGrid connector' template.",
1185
+ "documentationRef": "https://docs.camunda.io/docs/components/modeler/desktop-modeler/element-templates/using-templates/#replacing-templates"
1186
+ },
1262
1187
  "description": "Send an email via SendGrid",
1263
- "keywords": [
1264
- "send email",
1265
- "email notification",
1266
- "transactional email",
1267
- "marketing email",
1268
- "email campaign",
1269
- "email delivery",
1270
- "dynamic template",
1271
- "email template"
1272
- ],
1273
1188
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/sendgrid/",
1274
- "version": 5,
1189
+ "icon": {
1190
+ "contents": "data:image/svg+xml;utf8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%2015.6846L5.43837%2015.6844V15.7143H0.285706V15.6846ZM0.285706%2010.5619H5.43837V15.6844L0.285706%2015.6846V10.5619Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%200.285706H10.5611V5.40847H5.43837V0.285706ZM10.5616%205.43837H15.7143V10.5611H10.5616V5.43837Z%22%20fill%3D%22%2300B3E3%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V5.40847H5.43837V10.5611Z%22%20fill%3D%22%23009DD9%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%200.285706H15.7143V5.40847H10.5611V0.285706Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%205.40847H15.7143V5.43837H10.5616L10.5611%205.40847Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3C%2Fsvg%3E"
1191
+ },
1275
1192
  "category": {
1276
1193
  "id": "connectors",
1277
1194
  "name": "Connectors"
@@ -1280,9 +1197,6 @@
1280
1197
  "elementType": {
1281
1198
  "value": "bpmn:ServiceTask"
1282
1199
  },
1283
- "engines": {
1284
- "camunda": "^8.3"
1285
- },
1286
1200
  "groups": [
1287
1201
  {
1288
1202
  "id": "authentication",
@@ -1301,115 +1215,88 @@
1301
1215
  "label": "Compose email"
1302
1216
  },
1303
1217
  {
1304
- "id": "connector",
1305
- "label": "Connector"
1306
- },
1307
- {
1308
- "id": "output",
1309
- "label": "Output mapping"
1310
- },
1311
- {
1312
- "id": "error",
1218
+ "id": "errors",
1313
1219
  "label": "Error handling"
1314
- },
1315
- {
1316
- "id": "retries",
1317
- "label": "Retries"
1318
1220
  }
1319
1221
  ],
1320
1222
  "properties": [
1321
1223
  {
1224
+ "type": "Hidden",
1322
1225
  "value": "io.camunda:sendgrid:1",
1323
1226
  "binding": {
1324
- "property": "type",
1325
- "type": "zeebe:taskDefinition"
1326
- },
1327
- "type": "Hidden"
1227
+ "type": "zeebe:taskDefinition",
1228
+ "property": "type"
1229
+ }
1328
1230
  },
1329
1231
  {
1330
- "id": "apiKey",
1331
1232
  "label": "SendGrid API key",
1332
- "optional": false,
1333
- "constraints": {
1334
- "notEmpty": true
1335
- },
1336
- "feel": "optional",
1337
1233
  "group": "authentication",
1234
+ "type": "String",
1235
+ "feel": "optional",
1338
1236
  "binding": {
1339
- "name": "apiKey",
1340
- "type": "zeebe:input"
1237
+ "type": "zeebe:input",
1238
+ "name": "apiKey"
1341
1239
  },
1342
- "type": "String"
1240
+ "constraints": {
1241
+ "notEmpty": true
1242
+ }
1343
1243
  },
1344
1244
  {
1345
- "id": "from.name",
1346
1245
  "label": "Name",
1347
- "optional": false,
1348
- "constraints": {
1349
- "notEmpty": true
1350
- },
1351
- "feel": "optional",
1352
1246
  "group": "sender",
1247
+ "type": "String",
1248
+ "feel": "optional",
1353
1249
  "binding": {
1354
- "name": "from.name",
1355
- "type": "zeebe:input"
1250
+ "type": "zeebe:input",
1251
+ "name": "from.name"
1356
1252
  },
1357
- "type": "String"
1253
+ "constraints": {
1254
+ "notEmpty": true
1255
+ }
1358
1256
  },
1359
1257
  {
1360
- "id": "from.email",
1361
1258
  "label": "Email address",
1362
- "optional": false,
1363
- "constraints": {
1364
- "notEmpty": true
1365
- },
1366
- "feel": "optional",
1367
1259
  "group": "sender",
1260
+ "type": "String",
1261
+ "feel": "optional",
1368
1262
  "binding": {
1369
- "name": "from.email",
1370
- "type": "zeebe:input"
1263
+ "type": "zeebe:input",
1264
+ "name": "from.email"
1371
1265
  },
1372
- "type": "String"
1266
+ "constraints": {
1267
+ "notEmpty": true
1268
+ }
1373
1269
  },
1374
1270
  {
1375
- "id": "to.name",
1376
1271
  "label": "Name",
1377
- "optional": false,
1378
- "constraints": {
1379
- "notEmpty": true
1380
- },
1381
- "feel": "optional",
1382
1272
  "group": "receiver",
1273
+ "type": "String",
1274
+ "feel": "optional",
1383
1275
  "binding": {
1384
- "name": "to.name",
1385
- "type": "zeebe:input"
1276
+ "type": "zeebe:input",
1277
+ "name": "to.name"
1386
1278
  },
1387
- "type": "String"
1279
+ "constraints": {
1280
+ "notEmpty": true
1281
+ }
1388
1282
  },
1389
1283
  {
1390
- "id": "to.email",
1391
1284
  "label": "Email address",
1392
- "optional": false,
1393
- "constraints": {
1394
- "notEmpty": true
1395
- },
1396
- "feel": "optional",
1397
1285
  "group": "receiver",
1286
+ "type": "String",
1287
+ "feel": "optional",
1398
1288
  "binding": {
1399
- "name": "to.email",
1400
- "type": "zeebe:input"
1289
+ "type": "zeebe:input",
1290
+ "name": "to.email"
1401
1291
  },
1402
- "type": "String"
1292
+ "constraints": {
1293
+ "notEmpty": true
1294
+ }
1403
1295
  },
1404
1296
  {
1405
- "id": "unMappedFieldNotUseInModel.mailType",
1406
- "label": "Mail contents",
1407
- "optional": false,
1297
+ "id": "mailType",
1408
1298
  "group": "content",
1409
- "binding": {
1410
- "name": "unMappedFieldNotUseInModel.mailType",
1411
- "type": "zeebe:input"
1412
- },
1299
+ "value": "mail",
1413
1300
  "type": "Dropdown",
1414
1301
  "choices": [
1415
1302
  {
@@ -1420,210 +1307,110 @@
1420
1307
  "name": "Using dynamic template",
1421
1308
  "value": "byTemplate"
1422
1309
  }
1423
- ]
1310
+ ],
1311
+ "binding": {
1312
+ "type": "zeebe:input",
1313
+ "name": "unMappedFieldNotUseInModel.mailType"
1314
+ }
1424
1315
  },
1425
1316
  {
1426
- "id": "template.id",
1427
- "label": "Template ID",
1428
- "optional": false,
1429
- "constraints": {
1430
- "notEmpty": true
1431
- },
1432
- "feel": "optional",
1317
+ "label": "Subject",
1433
1318
  "group": "content",
1319
+ "type": "String",
1320
+ "feel": "optional",
1434
1321
  "binding": {
1435
- "name": "template.id",
1436
- "type": "zeebe:input"
1437
- },
1438
- "condition": {
1439
- "property": "unMappedFieldNotUseInModel.mailType",
1440
- "equals": "byTemplate",
1441
- "type": "simple"
1322
+ "type": "zeebe:input",
1323
+ "name": "content.subject"
1442
1324
  },
1443
- "type": "String"
1444
- },
1445
- {
1446
- "id": "template.data",
1447
- "label": "Template data",
1448
- "optional": false,
1449
1325
  "constraints": {
1450
1326
  "notEmpty": true
1451
1327
  },
1452
- "feel": "required",
1453
- "group": "content",
1454
- "binding": {
1455
- "name": "template.data",
1456
- "type": "zeebe:input"
1457
- },
1458
1328
  "condition": {
1459
- "property": "unMappedFieldNotUseInModel.mailType",
1460
- "equals": "byTemplate",
1461
- "type": "simple"
1462
- },
1463
- "type": "String"
1329
+ "property": "mailType",
1330
+ "equals": "mail"
1331
+ }
1464
1332
  },
1465
1333
  {
1466
- "id": "content.subject",
1467
- "label": "Subject",
1468
- "optional": false,
1334
+ "label": "Content type",
1335
+ "group": "content",
1336
+ "type": "String",
1337
+ "feel": "optional",
1338
+ "value": "text/plain",
1339
+ "binding": {
1340
+ "type": "zeebe:input",
1341
+ "name": "content.type"
1342
+ },
1469
1343
  "constraints": {
1470
1344
  "notEmpty": true
1471
1345
  },
1472
- "feel": "optional",
1346
+ "condition": {
1347
+ "property": "mailType",
1348
+ "equals": "mail"
1349
+ }
1350
+ },
1351
+ {
1352
+ "label": "Body",
1473
1353
  "group": "content",
1354
+ "type": "Text",
1355
+ "feel": "optional",
1474
1356
  "binding": {
1475
- "name": "content.subject",
1476
- "type": "zeebe:input"
1357
+ "type": "zeebe:input",
1358
+ "name": "content.value"
1359
+ },
1360
+ "constraints": {
1361
+ "notEmpty": true
1477
1362
  },
1478
1363
  "condition": {
1479
- "property": "unMappedFieldNotUseInModel.mailType",
1480
- "equals": "mail",
1481
- "type": "simple"
1482
- },
1483
- "type": "String"
1364
+ "property": "mailType",
1365
+ "equals": "mail"
1366
+ }
1484
1367
  },
1485
1368
  {
1486
- "id": "content.type",
1487
- "label": "Content type",
1488
- "optional": false,
1489
- "value": "text/plain",
1490
- "constraints": {
1491
- "notEmpty": true
1492
- },
1493
- "feel": "optional",
1369
+ "label": "Template ID",
1494
1370
  "group": "content",
1371
+ "type": "String",
1372
+ "feel": "optional",
1495
1373
  "binding": {
1496
- "name": "content.type",
1497
- "type": "zeebe:input"
1498
- },
1499
- "condition": {
1500
- "property": "unMappedFieldNotUseInModel.mailType",
1501
- "equals": "mail",
1502
- "type": "simple"
1374
+ "type": "zeebe:input",
1375
+ "name": "template.id"
1503
1376
  },
1504
- "type": "String"
1505
- },
1506
- {
1507
- "id": "content.value",
1508
- "label": "Body",
1509
- "optional": false,
1510
1377
  "constraints": {
1511
1378
  "notEmpty": true
1512
1379
  },
1513
- "feel": "optional",
1514
- "group": "content",
1515
- "binding": {
1516
- "name": "content.value",
1517
- "type": "zeebe:input"
1518
- },
1519
1380
  "condition": {
1520
- "property": "unMappedFieldNotUseInModel.mailType",
1521
- "equals": "mail",
1522
- "type": "simple"
1523
- },
1524
- "type": "Text"
1381
+ "property": "mailType",
1382
+ "equals": "byTemplate"
1383
+ }
1525
1384
  },
1526
1385
  {
1527
- "id": "attachments",
1528
- "label": "attachments",
1529
- "description": "List of <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">Camunda Documents</a>",
1530
- "optional": true,
1531
- "feel": "required",
1386
+ "label": "Template data",
1532
1387
  "group": "content",
1533
- "binding": {
1534
- "name": "attachments",
1535
- "type": "zeebe:input"
1536
- },
1537
- "type": "String"
1538
- },
1539
- {
1540
- "id": "version",
1541
- "label": "Version",
1542
- "description": "Version of the element template",
1543
- "value": "5",
1544
- "group": "connector",
1545
- "binding": {
1546
- "key": "elementTemplateVersion",
1547
- "type": "zeebe:taskHeader"
1548
- },
1549
- "type": "Hidden"
1550
- },
1551
- {
1552
- "id": "id",
1553
- "label": "ID",
1554
- "description": "ID of the element template",
1555
- "value": "io.camunda.connectors.SendGrid.v2",
1556
- "group": "connector",
1557
- "binding": {
1558
- "key": "elementTemplateId",
1559
- "type": "zeebe:taskHeader"
1560
- },
1561
- "type": "Hidden"
1562
- },
1563
- {
1564
- "id": "resultVariable",
1565
- "label": "Result variable",
1566
- "description": "Name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>.",
1567
- "group": "output",
1568
- "binding": {
1569
- "key": "resultVariable",
1570
- "type": "zeebe:taskHeader"
1571
- },
1572
- "type": "String"
1573
- },
1574
- {
1575
- "id": "resultExpression",
1576
- "label": "Result expression",
1577
- "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>.",
1388
+ "type": "Text",
1578
1389
  "feel": "required",
1579
- "group": "output",
1580
1390
  "binding": {
1581
- "key": "resultExpression",
1582
- "type": "zeebe:taskHeader"
1391
+ "type": "zeebe:input",
1392
+ "name": "template.data"
1583
1393
  },
1584
- "type": "Text"
1394
+ "constraints": {
1395
+ "notEmpty": true
1396
+ },
1397
+ "condition": {
1398
+ "property": "mailType",
1399
+ "equals": "byTemplate"
1400
+ }
1585
1401
  },
1586
1402
  {
1587
- "id": "errorExpression",
1588
1403
  "label": "Error expression",
1589
- "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
1404
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#bpmn-errors\" target=\"_blank\">documentation</a>",
1405
+ "group": "errors",
1406
+ "type": "Text",
1590
1407
  "feel": "required",
1591
- "group": "error",
1592
- "binding": {
1593
- "key": "errorExpression",
1594
- "type": "zeebe:taskHeader"
1595
- },
1596
- "type": "Text"
1597
- },
1598
- {
1599
- "id": "retryCount",
1600
- "label": "Retries",
1601
- "description": "Number of retries",
1602
- "value": "3",
1603
- "feel": "optional",
1604
- "group": "retries",
1605
- "binding": {
1606
- "property": "retries",
1607
- "type": "zeebe:taskDefinition"
1608
- },
1609
- "type": "String"
1610
- },
1611
- {
1612
- "id": "retryBackoff",
1613
- "label": "Retry backoff",
1614
- "description": "ISO-8601 duration to wait between retries",
1615
- "value": "PT0S",
1616
- "group": "retries",
1617
1408
  "binding": {
1618
- "key": "retryBackoff",
1619
- "type": "zeebe:taskHeader"
1620
- },
1621
- "type": "String"
1409
+ "type": "zeebe:taskHeader",
1410
+ "key": "errorExpression"
1411
+ }
1622
1412
  }
1623
- ],
1624
- "icon": {
1625
- "contents": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0id2hpdGUiLz4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0iIzk5RTFGNCIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSIjOTlFMUY0Ii8+CiAgICA8cGF0aCBkPSJNMC4yODU3MDYgMTUuNjg0Nkw1LjQzODM3IDE1LjY4NDRWMTUuNzE0M0gwLjI4NTcwNlYxNS42ODQ2Wk0wLjI4NTcwNiAxMC41NjE5SDUuNDM4MzdWMTUuNjg0NEwwLjI4NTcwNiAxNS42ODQ2VjEwLjU2MTlaIiBmaWxsPSIjMUE4MkUyIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAwLjI4NTcwNkgxMC41NjExVjUuNDA4NDdINS40MzgzN1YwLjI4NTcwNlpNMTAuNTYxNiA1LjQzODM3SDE1LjcxNDNWMTAuNTYxMUgxMC41NjE2VjUuNDM4MzdaIiBmaWxsPSIjMDBCM0UzIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAxMC41NjExTDEwLjU2MTEgMTAuNTYxNlY1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMVoiIGZpbGw9IiMwMDlERDkiLz4KICAgIDxwYXRoIGQ9Ik0xMC41NjExIDAuMjg1NzA2SDE1LjcxNDNWNS40MDg0N0gxMC41NjExVjAuMjg1NzA2WiIgZmlsbD0iIzFBODJFMiIvPgogICAgPHBhdGggZD0iTTEwLjU2MTEgNS40MDg0N0gxNS43MTQzVjUuNDM4MzdIMTAuNTYxNkwxMC41NjExIDUuNDA4NDdaIiBmaWxsPSIjMUE4MkUyIi8+Cjwvc3ZnPg=="
1626
- }
1413
+ ]
1627
1414
  },
1628
1415
  {
1629
1416
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
@@ -1782,17 +1569,11 @@
1782
1569
  },
1783
1570
  {
1784
1571
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
1785
- "name": "SendGrid: Send Email via Template",
1786
- "id": "io.camunda.connectors.SendGrid.v1.template",
1787
- "description": "[Deprecated]: Replace with 'SendGrid Connector' template.",
1788
- "documentationRef": "https://docs.camunda.io/docs/8.7/components/connectors/out-of-the-box-connectors/sendgrid/",
1789
- "icon": {
1790
- "contents": "data:image/svg+xml;utf8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%2015.6846L5.43837%2015.6844V15.7143H0.285706V15.6846ZM0.285706%2010.5619H5.43837V15.6844L0.285706%2015.6846V10.5619Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%200.285706H10.5611V5.40847H5.43837V0.285706ZM10.5616%205.43837H15.7143V10.5611H10.5616V5.43837Z%22%20fill%3D%22%2300B3E3%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V5.40847H5.43837V10.5611Z%22%20fill%3D%22%23009DD9%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%200.285706H15.7143V5.40847H10.5611V0.285706Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%205.40847H15.7143V5.43837H10.5616L10.5611%205.40847Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3C%2Fsvg%3E"
1791
- },
1792
- "deprecated": {
1793
- "message": "Replace with 'SendGrid Connector' template.",
1794
- "documentationRef": "https://docs.camunda.io/docs/components/modeler/desktop-modeler/element-templates/using-templates/#replacing-templates"
1795
- },
1572
+ "name": "SendGrid Outbound Connector",
1573
+ "id": "io.camunda.connectors.SendGrid.v2",
1574
+ "description": "Send an email via SendGrid",
1575
+ "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/sendgrid/",
1576
+ "version": 3,
1796
1577
  "category": {
1797
1578
  "id": "connectors",
1798
1579
  "name": "Connectors"
@@ -1803,8 +1584,8 @@
1803
1584
  },
1804
1585
  "groups": [
1805
1586
  {
1806
- "id": "sendgrid",
1807
- "label": "SendGrid API"
1587
+ "id": "authentication",
1588
+ "label": "Authentication"
1808
1589
  },
1809
1590
  {
1810
1591
  "id": "sender",
@@ -1815,125 +1596,310 @@
1815
1596
  "label": "Receiver"
1816
1597
  },
1817
1598
  {
1818
- "id": "template",
1819
- "label": "Dynamic Email Template"
1599
+ "id": "content",
1600
+ "label": "Compose email"
1601
+ },
1602
+ {
1603
+ "id": "output",
1604
+ "label": "Output mapping"
1605
+ },
1606
+ {
1607
+ "id": "error",
1608
+ "label": "Error handling"
1609
+ },
1610
+ {
1611
+ "id": "retries",
1612
+ "label": "Retries"
1820
1613
  }
1821
1614
  ],
1822
1615
  "properties": [
1823
1616
  {
1824
- "type": "Hidden",
1825
1617
  "value": "io.camunda:sendgrid:1",
1826
1618
  "binding": {
1827
- "type": "zeebe:taskDefinition",
1828
- "property": "type"
1829
- }
1619
+ "property": "type",
1620
+ "type": "zeebe:taskDefinition"
1621
+ },
1622
+ "type": "Hidden"
1830
1623
  },
1831
1624
  {
1832
- "label": "SendGrid API Key",
1833
- "group": "sendgrid",
1834
- "type": "String",
1625
+ "id": "apiKey",
1626
+ "label": "SendGrid API key",
1627
+ "optional": false,
1628
+ "constraints": {
1629
+ "notEmpty": true
1630
+ },
1835
1631
  "feel": "optional",
1632
+ "group": "authentication",
1836
1633
  "binding": {
1837
- "type": "zeebe:input",
1838
- "name": "apiKey"
1634
+ "name": "apiKey",
1635
+ "type": "zeebe:input"
1839
1636
  },
1840
- "constraints": {
1841
- "notEmpty": true
1842
- }
1637
+ "type": "String"
1843
1638
  },
1844
1639
  {
1640
+ "id": "from.name",
1845
1641
  "label": "Name",
1846
- "group": "sender",
1847
- "type": "String",
1642
+ "optional": false,
1643
+ "constraints": {
1644
+ "notEmpty": true
1645
+ },
1848
1646
  "feel": "optional",
1647
+ "group": "sender",
1849
1648
  "binding": {
1850
- "type": "zeebe:input",
1851
- "name": "from.name"
1649
+ "name": "from.name",
1650
+ "type": "zeebe:input"
1852
1651
  },
1853
- "constraints": {
1854
- "notEmpty": true
1855
- }
1652
+ "type": "String"
1856
1653
  },
1857
1654
  {
1858
- "label": "Email Address",
1859
- "group": "sender",
1860
- "type": "String",
1655
+ "id": "from.email",
1656
+ "label": "Email address",
1657
+ "optional": false,
1658
+ "constraints": {
1659
+ "notEmpty": true
1660
+ },
1861
1661
  "feel": "optional",
1662
+ "group": "sender",
1862
1663
  "binding": {
1863
- "type": "zeebe:input",
1864
- "name": "from.email"
1664
+ "name": "from.email",
1665
+ "type": "zeebe:input"
1865
1666
  },
1866
- "constraints": {
1867
- "notEmpty": true
1868
- }
1667
+ "type": "String"
1869
1668
  },
1870
1669
  {
1670
+ "id": "to.name",
1871
1671
  "label": "Name",
1872
- "group": "receiver",
1873
- "type": "String",
1874
- "feel": "optional",
1875
- "binding": {
1876
- "type": "zeebe:input",
1877
- "name": "to.name"
1878
- },
1672
+ "optional": false,
1879
1673
  "constraints": {
1880
1674
  "notEmpty": true
1881
- }
1675
+ },
1676
+ "feel": "optional",
1677
+ "group": "receiver",
1678
+ "binding": {
1679
+ "name": "to.name",
1680
+ "type": "zeebe:input"
1681
+ },
1682
+ "type": "String"
1882
1683
  },
1883
1684
  {
1884
- "label": "Email Address",
1685
+ "id": "to.email",
1686
+ "label": "Email address",
1687
+ "optional": false,
1688
+ "constraints": {
1689
+ "notEmpty": true
1690
+ },
1691
+ "feel": "optional",
1885
1692
  "group": "receiver",
1886
- "type": "String",
1693
+ "binding": {
1694
+ "name": "to.email",
1695
+ "type": "zeebe:input"
1696
+ },
1697
+ "type": "String"
1698
+ },
1699
+ {
1700
+ "id": "unMappedFieldNotUseInModel.mailType",
1701
+ "label": "Mail contents",
1702
+ "optional": false,
1703
+ "group": "content",
1704
+ "binding": {
1705
+ "name": "unMappedFieldNotUseInModel.mailType",
1706
+ "type": "zeebe:input"
1707
+ },
1708
+ "type": "Dropdown",
1709
+ "choices": [
1710
+ {
1711
+ "name": "Simple (no dynamic template)",
1712
+ "value": "mail"
1713
+ },
1714
+ {
1715
+ "name": "Using dynamic template",
1716
+ "value": "byTemplate"
1717
+ }
1718
+ ]
1719
+ },
1720
+ {
1721
+ "id": "template.id",
1722
+ "label": "Template ID",
1723
+ "optional": false,
1724
+ "constraints": {
1725
+ "notEmpty": true
1726
+ },
1887
1727
  "feel": "optional",
1728
+ "group": "content",
1888
1729
  "binding": {
1889
- "type": "zeebe:input",
1890
- "name": "to.email"
1730
+ "name": "template.id",
1731
+ "type": "zeebe:input"
1732
+ },
1733
+ "condition": {
1734
+ "property": "unMappedFieldNotUseInModel.mailType",
1735
+ "equals": "byTemplate",
1736
+ "type": "simple"
1891
1737
  },
1738
+ "type": "String"
1739
+ },
1740
+ {
1741
+ "id": "template.data",
1742
+ "label": "Template data",
1743
+ "optional": false,
1892
1744
  "constraints": {
1893
1745
  "notEmpty": true
1894
- }
1746
+ },
1747
+ "feel": "required",
1748
+ "group": "content",
1749
+ "binding": {
1750
+ "name": "template.data",
1751
+ "type": "zeebe:input"
1752
+ },
1753
+ "condition": {
1754
+ "property": "unMappedFieldNotUseInModel.mailType",
1755
+ "equals": "byTemplate",
1756
+ "type": "simple"
1757
+ },
1758
+ "type": "String"
1895
1759
  },
1896
1760
  {
1897
- "label": "Template ID",
1898
- "group": "template",
1899
- "type": "String",
1761
+ "id": "content.subject",
1762
+ "label": "Subject",
1763
+ "optional": false,
1764
+ "constraints": {
1765
+ "notEmpty": true
1766
+ },
1900
1767
  "feel": "optional",
1768
+ "group": "content",
1901
1769
  "binding": {
1902
- "type": "zeebe:input",
1903
- "name": "template.id"
1770
+ "name": "content.subject",
1771
+ "type": "zeebe:input"
1772
+ },
1773
+ "condition": {
1774
+ "property": "unMappedFieldNotUseInModel.mailType",
1775
+ "equals": "mail",
1776
+ "type": "simple"
1904
1777
  },
1778
+ "type": "String"
1779
+ },
1780
+ {
1781
+ "id": "content.type",
1782
+ "label": "Content type",
1783
+ "optional": false,
1784
+ "value": "text/plain",
1905
1785
  "constraints": {
1906
1786
  "notEmpty": true
1907
- }
1787
+ },
1788
+ "feel": "optional",
1789
+ "group": "content",
1790
+ "binding": {
1791
+ "name": "content.type",
1792
+ "type": "zeebe:input"
1793
+ },
1794
+ "condition": {
1795
+ "property": "unMappedFieldNotUseInModel.mailType",
1796
+ "equals": "mail",
1797
+ "type": "simple"
1798
+ },
1799
+ "type": "String"
1908
1800
  },
1909
1801
  {
1910
- "label": "Template Data",
1911
- "group": "template",
1912
- "type": "Text",
1802
+ "id": "content.value",
1803
+ "label": "Body",
1804
+ "optional": false,
1805
+ "constraints": {
1806
+ "notEmpty": true
1807
+ },
1808
+ "feel": "optional",
1809
+ "group": "content",
1810
+ "binding": {
1811
+ "name": "content.value",
1812
+ "type": "zeebe:input"
1813
+ },
1814
+ "condition": {
1815
+ "property": "unMappedFieldNotUseInModel.mailType",
1816
+ "equals": "mail",
1817
+ "type": "simple"
1818
+ },
1819
+ "type": "Text"
1820
+ },
1821
+ {
1822
+ "id": "resultVariable",
1823
+ "label": "Result variable",
1824
+ "description": "Name of variable to store the response in",
1825
+ "group": "output",
1826
+ "binding": {
1827
+ "key": "resultVariable",
1828
+ "type": "zeebe:taskHeader"
1829
+ },
1830
+ "type": "String"
1831
+ },
1832
+ {
1833
+ "id": "resultExpression",
1834
+ "label": "Result expression",
1835
+ "description": "Expression to map the response into process variables",
1913
1836
  "feel": "required",
1837
+ "group": "output",
1914
1838
  "binding": {
1915
- "type": "zeebe:input",
1916
- "name": "template.data"
1839
+ "key": "resultExpression",
1840
+ "type": "zeebe:taskHeader"
1917
1841
  },
1918
- "constraints": {
1919
- "notEmpty": true
1920
- }
1842
+ "type": "Text"
1843
+ },
1844
+ {
1845
+ "id": "errorExpression",
1846
+ "label": "Error expression",
1847
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
1848
+ "feel": "required",
1849
+ "group": "error",
1850
+ "binding": {
1851
+ "key": "errorExpression",
1852
+ "type": "zeebe:taskHeader"
1853
+ },
1854
+ "type": "Text"
1855
+ },
1856
+ {
1857
+ "id": "retryCount",
1858
+ "label": "Retries",
1859
+ "description": "Number of retries",
1860
+ "value": "3",
1861
+ "feel": "optional",
1862
+ "group": "retries",
1863
+ "binding": {
1864
+ "property": "retries",
1865
+ "type": "zeebe:taskDefinition"
1866
+ },
1867
+ "type": "String"
1868
+ },
1869
+ {
1870
+ "id": "retryBackoff",
1871
+ "label": "Retry backoff",
1872
+ "description": "ISO-8601 duration to wait between retries",
1873
+ "value": "PT0S",
1874
+ "feel": "optional",
1875
+ "group": "retries",
1876
+ "binding": {
1877
+ "key": "retryBackoff",
1878
+ "type": "zeebe:taskHeader"
1879
+ },
1880
+ "type": "String"
1921
1881
  }
1922
- ]
1882
+ ],
1883
+ "icon": {
1884
+ "contents": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0id2hpdGUiLz4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0iIzk5RTFGNCIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSIjOTlFMUY0Ii8+CiAgICA8cGF0aCBkPSJNMC4yODU3MDYgMTUuNjg0Nkw1LjQzODM3IDE1LjY4NDRWMTUuNzE0M0gwLjI4NTcwNlYxNS42ODQ2Wk0wLjI4NTcwNiAxMC41NjE5SDUuNDM4MzdWMTUuNjg0NEwwLjI4NTcwNiAxNS42ODQ2VjEwLjU2MTlaIiBmaWxsPSIjMUE4MkUyIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAwLjI4NTcwNkgxMC41NjExVjUuNDA4NDdINS40MzgzN1YwLjI4NTcwNlpNMTAuNTYxNiA1LjQzODM3SDE1LjcxNDNWMTAuNTYxMUgxMC41NjE2VjUuNDM4MzdaIiBmaWxsPSIjMDBCM0UzIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAxMC41NjExTDEwLjU2MTEgMTAuNTYxNlY1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMVoiIGZpbGw9IiMwMDlERDkiLz4KICAgIDxwYXRoIGQ9Ik0xMC41NjExIDAuMjg1NzA2SDE1LjcxNDNWNS40MDg0N0gxMC41NjExVjAuMjg1NzA2WiIgZmlsbD0iIzFBODJFMiIvPgogICAgPHBhdGggZD0iTTEwLjU2MTEgNS40MDg0N0gxNS43MTQzVjUuNDM4MzdIMTAuNTYxNkwxMC41NjExIDUuNDA4NDdaIiBmaWxsPSIjMUE4MkUyIi8+Cjwvc3ZnPg=="
1885
+ },
1886
+ "engines": {
1887
+ "camunda": "^8.5"
1888
+ }
1923
1889
  },
1924
1890
  {
1925
1891
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
1926
- "name": "SendGrid connector",
1927
- "id": "io.camunda.connectors.SendGrid.v2",
1928
- "deprecated": {
1929
- "message": "Replace with 'SendGrid connector' template.",
1930
- "documentationRef": "https://docs.camunda.io/docs/components/modeler/desktop-modeler/element-templates/using-templates/#replacing-templates"
1931
- },
1932
- "description": "Send an email via SendGrid",
1933
- "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/sendgrid/",
1892
+ "name": "SendGrid: Send Email via Template",
1893
+ "id": "io.camunda.connectors.SendGrid.v1.template",
1894
+ "description": "[Deprecated]: Replace with 'SendGrid Connector' template.",
1895
+ "documentationRef": "https://docs.camunda.io/docs/8.7/components/connectors/out-of-the-box-connectors/sendgrid/",
1934
1896
  "icon": {
1935
1897
  "contents": "data:image/svg+xml;utf8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%2015.6846L5.43837%2015.6844V15.7143H0.285706V15.6846ZM0.285706%2010.5619H5.43837V15.6844L0.285706%2015.6846V10.5619Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%200.285706H10.5611V5.40847H5.43837V0.285706ZM10.5616%205.43837H15.7143V10.5611H10.5616V5.43837Z%22%20fill%3D%22%2300B3E3%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V5.40847H5.43837V10.5611Z%22%20fill%3D%22%23009DD9%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%200.285706H15.7143V5.40847H10.5611V0.285706Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%205.40847H15.7143V5.43837H10.5616L10.5611%205.40847Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3C%2Fsvg%3E"
1936
1898
  },
1899
+ "deprecated": {
1900
+ "message": "Replace with 'SendGrid Connector' template.",
1901
+ "documentationRef": "https://docs.camunda.io/docs/components/modeler/desktop-modeler/element-templates/using-templates/#replacing-templates"
1902
+ },
1937
1903
  "category": {
1938
1904
  "id": "connectors",
1939
1905
  "name": "Connectors"
@@ -1944,8 +1910,8 @@
1944
1910
  },
1945
1911
  "groups": [
1946
1912
  {
1947
- "id": "authentication",
1948
- "label": "Authentication"
1913
+ "id": "sendgrid",
1914
+ "label": "SendGrid API"
1949
1915
  },
1950
1916
  {
1951
1917
  "id": "sender",
@@ -1956,12 +1922,8 @@
1956
1922
  "label": "Receiver"
1957
1923
  },
1958
1924
  {
1959
- "id": "content",
1960
- "label": "Compose email"
1961
- },
1962
- {
1963
- "id": "errors",
1964
- "label": "Error handling"
1925
+ "id": "template",
1926
+ "label": "Dynamic Email Template"
1965
1927
  }
1966
1928
  ],
1967
1929
  "properties": [
@@ -1974,8 +1936,8 @@
1974
1936
  }
1975
1937
  },
1976
1938
  {
1977
- "label": "SendGrid API key",
1978
- "group": "authentication",
1939
+ "label": "SendGrid API Key",
1940
+ "group": "sendgrid",
1979
1941
  "type": "String",
1980
1942
  "feel": "optional",
1981
1943
  "binding": {
@@ -2000,7 +1962,7 @@
2000
1962
  }
2001
1963
  },
2002
1964
  {
2003
- "label": "Email address",
1965
+ "label": "Email Address",
2004
1966
  "group": "sender",
2005
1967
  "type": "String",
2006
1968
  "feel": "optional",
@@ -2026,7 +1988,7 @@
2026
1988
  }
2027
1989
  },
2028
1990
  {
2029
- "label": "Email address",
1991
+ "label": "Email Address",
2030
1992
  "group": "receiver",
2031
1993
  "type": "String",
2032
1994
  "feel": "optional",
@@ -2038,81 +2000,9 @@
2038
2000
  "notEmpty": true
2039
2001
  }
2040
2002
  },
2041
- {
2042
- "id": "mailType",
2043
- "group": "content",
2044
- "value": "mail",
2045
- "type": "Dropdown",
2046
- "choices": [
2047
- {
2048
- "name": "Simple (no dynamic template)",
2049
- "value": "mail"
2050
- },
2051
- {
2052
- "name": "Using dynamic template",
2053
- "value": "byTemplate"
2054
- }
2055
- ],
2056
- "binding": {
2057
- "type": "zeebe:input",
2058
- "name": "unMappedFieldNotUseInModel.mailType"
2059
- }
2060
- },
2061
- {
2062
- "label": "Subject",
2063
- "group": "content",
2064
- "type": "String",
2065
- "feel": "optional",
2066
- "binding": {
2067
- "type": "zeebe:input",
2068
- "name": "content.subject"
2069
- },
2070
- "constraints": {
2071
- "notEmpty": true
2072
- },
2073
- "condition": {
2074
- "property": "mailType",
2075
- "equals": "mail"
2076
- }
2077
- },
2078
- {
2079
- "label": "Content type",
2080
- "group": "content",
2081
- "type": "String",
2082
- "feel": "optional",
2083
- "value": "text/plain",
2084
- "binding": {
2085
- "type": "zeebe:input",
2086
- "name": "content.type"
2087
- },
2088
- "constraints": {
2089
- "notEmpty": true
2090
- },
2091
- "condition": {
2092
- "property": "mailType",
2093
- "equals": "mail"
2094
- }
2095
- },
2096
- {
2097
- "label": "Body",
2098
- "group": "content",
2099
- "type": "Text",
2100
- "feel": "optional",
2101
- "binding": {
2102
- "type": "zeebe:input",
2103
- "name": "content.value"
2104
- },
2105
- "constraints": {
2106
- "notEmpty": true
2107
- },
2108
- "condition": {
2109
- "property": "mailType",
2110
- "equals": "mail"
2111
- }
2112
- },
2113
2003
  {
2114
2004
  "label": "Template ID",
2115
- "group": "content",
2005
+ "group": "template",
2116
2006
  "type": "String",
2117
2007
  "feel": "optional",
2118
2008
  "binding": {
@@ -2121,15 +2011,11 @@
2121
2011
  },
2122
2012
  "constraints": {
2123
2013
  "notEmpty": true
2124
- },
2125
- "condition": {
2126
- "property": "mailType",
2127
- "equals": "byTemplate"
2128
2014
  }
2129
2015
  },
2130
2016
  {
2131
- "label": "Template data",
2132
- "group": "content",
2017
+ "label": "Template Data",
2018
+ "group": "template",
2133
2019
  "type": "Text",
2134
2020
  "feel": "required",
2135
2021
  "binding": {
@@ -2138,21 +2024,6 @@
2138
2024
  },
2139
2025
  "constraints": {
2140
2026
  "notEmpty": true
2141
- },
2142
- "condition": {
2143
- "property": "mailType",
2144
- "equals": "byTemplate"
2145
- }
2146
- },
2147
- {
2148
- "label": "Error expression",
2149
- "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#bpmn-errors\" target=\"_blank\">documentation</a>",
2150
- "group": "errors",
2151
- "type": "Text",
2152
- "feel": "required",
2153
- "binding": {
2154
- "type": "zeebe:taskHeader",
2155
- "key": "errorExpression"
2156
2027
  }
2157
2028
  }
2158
2029
  ]
@@ -2161,12 +2032,19 @@
2161
2032
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
2162
2033
  "name": "SendGrid Outbound Connector",
2163
2034
  "id": "io.camunda.connectors.SendGrid.v2",
2164
- "version": 2,
2165
2035
  "description": "Send an email via SendGrid",
2036
+ "keywords": [
2037
+ "send email",
2038
+ "email notification",
2039
+ "transactional email",
2040
+ "marketing email",
2041
+ "email campaign",
2042
+ "email delivery",
2043
+ "dynamic template",
2044
+ "email template"
2045
+ ],
2166
2046
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/sendgrid/",
2167
- "icon": {
2168
- "contents": "data:image/svg+xml;utf8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%2015.6846L5.43837%2015.6844V15.7143H0.285706V15.6846ZM0.285706%2010.5619H5.43837V15.6844L0.285706%2015.6846V10.5619Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%200.285706H10.5611V5.40847H5.43837V0.285706ZM10.5616%205.43837H15.7143V10.5611H10.5616V5.43837Z%22%20fill%3D%22%2300B3E3%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V5.40847H5.43837V10.5611Z%22%20fill%3D%22%23009DD9%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%200.285706H15.7143V5.40847H10.5611V0.285706Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%205.40847H15.7143V5.43837H10.5616L10.5611%205.40847Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3C%2Fsvg%3E"
2169
- },
2047
+ "version": 6,
2170
2048
  "category": {
2171
2049
  "id": "connectors",
2172
2050
  "name": "Connectors"
@@ -2175,6 +2053,9 @@
2175
2053
  "elementType": {
2176
2054
  "value": "bpmn:ServiceTask"
2177
2055
  },
2056
+ "engines": {
2057
+ "camunda": "^8.10"
2058
+ },
2178
2059
  "groups": [
2179
2060
  {
2180
2061
  "id": "authentication",
@@ -2193,88 +2074,115 @@
2193
2074
  "label": "Compose email"
2194
2075
  },
2195
2076
  {
2196
- "id": "errors",
2077
+ "id": "connector",
2078
+ "label": "Connector"
2079
+ },
2080
+ {
2081
+ "id": "output",
2082
+ "label": "Output mapping"
2083
+ },
2084
+ {
2085
+ "id": "error",
2197
2086
  "label": "Error handling"
2087
+ },
2088
+ {
2089
+ "id": "retries",
2090
+ "label": "Retries"
2198
2091
  }
2199
2092
  ],
2200
2093
  "properties": [
2201
2094
  {
2202
- "type": "Hidden",
2203
2095
  "value": "io.camunda:sendgrid:1",
2204
2096
  "binding": {
2205
- "type": "zeebe:taskDefinition",
2206
- "property": "type"
2207
- }
2097
+ "property": "type",
2098
+ "type": "zeebe:taskDefinition"
2099
+ },
2100
+ "type": "Hidden"
2208
2101
  },
2209
2102
  {
2103
+ "id": "apiKey",
2210
2104
  "label": "SendGrid API key",
2211
- "group": "authentication",
2212
- "type": "String",
2105
+ "optional": false,
2106
+ "constraints": {
2107
+ "notEmpty": true
2108
+ },
2213
2109
  "feel": "optional",
2110
+ "group": "authentication",
2214
2111
  "binding": {
2215
- "type": "zeebe:input",
2216
- "name": "apiKey"
2112
+ "name": "apiKey",
2113
+ "type": "zeebe:input"
2217
2114
  },
2218
- "constraints": {
2219
- "notEmpty": true
2220
- }
2115
+ "type": "String"
2221
2116
  },
2222
2117
  {
2118
+ "id": "from.name",
2223
2119
  "label": "Name",
2224
- "group": "sender",
2225
- "type": "String",
2120
+ "optional": false,
2121
+ "constraints": {
2122
+ "notEmpty": true
2123
+ },
2226
2124
  "feel": "optional",
2125
+ "group": "sender",
2227
2126
  "binding": {
2228
- "type": "zeebe:input",
2229
- "name": "from.name"
2127
+ "name": "from.name",
2128
+ "type": "zeebe:input"
2230
2129
  },
2231
- "constraints": {
2232
- "notEmpty": true
2233
- }
2130
+ "type": "String"
2234
2131
  },
2235
2132
  {
2133
+ "id": "from.email",
2236
2134
  "label": "Email address",
2237
- "group": "sender",
2238
- "type": "String",
2135
+ "optional": false,
2136
+ "constraints": {
2137
+ "notEmpty": true
2138
+ },
2239
2139
  "feel": "optional",
2140
+ "group": "sender",
2240
2141
  "binding": {
2241
- "type": "zeebe:input",
2242
- "name": "from.email"
2142
+ "name": "from.email",
2143
+ "type": "zeebe:input"
2243
2144
  },
2244
- "constraints": {
2245
- "notEmpty": true
2246
- }
2145
+ "type": "String"
2247
2146
  },
2248
2147
  {
2148
+ "id": "to.name",
2249
2149
  "label": "Name",
2250
- "group": "receiver",
2251
- "type": "String",
2150
+ "optional": false,
2151
+ "constraints": {
2152
+ "notEmpty": true
2153
+ },
2252
2154
  "feel": "optional",
2155
+ "group": "receiver",
2253
2156
  "binding": {
2254
- "type": "zeebe:input",
2255
- "name": "to.name"
2157
+ "name": "to.name",
2158
+ "type": "zeebe:input"
2256
2159
  },
2257
- "constraints": {
2258
- "notEmpty": true
2259
- }
2160
+ "type": "String"
2260
2161
  },
2261
2162
  {
2163
+ "id": "to.email",
2262
2164
  "label": "Email address",
2263
- "group": "receiver",
2264
- "type": "String",
2165
+ "optional": false,
2166
+ "constraints": {
2167
+ "notEmpty": true
2168
+ },
2265
2169
  "feel": "optional",
2170
+ "group": "receiver",
2266
2171
  "binding": {
2267
- "type": "zeebe:input",
2268
- "name": "to.email"
2172
+ "name": "to.email",
2173
+ "type": "zeebe:input"
2269
2174
  },
2270
- "constraints": {
2271
- "notEmpty": true
2272
- }
2175
+ "type": "String"
2273
2176
  },
2274
2177
  {
2275
- "id": "mailType",
2178
+ "id": "unMappedFieldNotUseInModel.mailType",
2179
+ "label": "Mail contents",
2180
+ "optional": false,
2276
2181
  "group": "content",
2277
- "value": "mail",
2182
+ "binding": {
2183
+ "name": "unMappedFieldNotUseInModel.mailType",
2184
+ "type": "zeebe:input"
2185
+ },
2278
2186
  "type": "Dropdown",
2279
2187
  "choices": [
2280
2188
  {
@@ -2285,348 +2193,440 @@
2285
2193
  "name": "Using dynamic template",
2286
2194
  "value": "byTemplate"
2287
2195
  }
2288
- ],
2289
- "binding": {
2290
- "type": "zeebe:input",
2291
- "name": "unMappedFieldNotUseInModel.mailType"
2292
- }
2196
+ ]
2293
2197
  },
2294
2198
  {
2295
- "label": "Subject",
2296
- "group": "content",
2297
- "type": "String",
2298
- "feel": "optional",
2299
- "binding": {
2300
- "type": "zeebe:input",
2301
- "name": "content.subject"
2302
- },
2199
+ "id": "template.id",
2200
+ "label": "Template ID",
2201
+ "optional": false,
2303
2202
  "constraints": {
2304
2203
  "notEmpty": true
2305
2204
  },
2306
- "condition": {
2307
- "property": "mailType",
2308
- "equals": "mail"
2309
- }
2310
- },
2311
- {
2312
- "label": "Content type",
2313
- "group": "content",
2314
- "type": "String",
2315
2205
  "feel": "optional",
2316
- "value": "text/plain",
2206
+ "group": "content",
2317
2207
  "binding": {
2318
- "type": "zeebe:input",
2319
- "name": "content.type"
2320
- },
2321
- "constraints": {
2322
- "notEmpty": true
2208
+ "name": "template.id",
2209
+ "type": "zeebe:input"
2323
2210
  },
2324
2211
  "condition": {
2325
- "property": "mailType",
2326
- "equals": "mail"
2327
- }
2212
+ "property": "unMappedFieldNotUseInModel.mailType",
2213
+ "equals": "byTemplate",
2214
+ "type": "simple"
2215
+ },
2216
+ "type": "String"
2328
2217
  },
2329
2218
  {
2330
- "label": "Body",
2219
+ "id": "template.data",
2220
+ "label": "Template data",
2221
+ "optional": false,
2222
+ "constraints": {
2223
+ "notEmpty": true
2224
+ },
2225
+ "feel": "required",
2331
2226
  "group": "content",
2332
- "type": "Text",
2333
- "feel": "optional",
2334
2227
  "binding": {
2335
- "type": "zeebe:input",
2336
- "name": "content.value"
2228
+ "name": "template.data",
2229
+ "type": "zeebe:input"
2337
2230
  },
2231
+ "condition": {
2232
+ "property": "unMappedFieldNotUseInModel.mailType",
2233
+ "equals": "byTemplate",
2234
+ "type": "simple"
2235
+ },
2236
+ "type": "String"
2237
+ },
2238
+ {
2239
+ "id": "content.subject",
2240
+ "label": "Subject",
2241
+ "optional": false,
2338
2242
  "constraints": {
2339
2243
  "notEmpty": true
2340
2244
  },
2245
+ "feel": "optional",
2246
+ "group": "content",
2247
+ "binding": {
2248
+ "name": "content.subject",
2249
+ "type": "zeebe:input"
2250
+ },
2341
2251
  "condition": {
2342
- "property": "mailType",
2343
- "equals": "mail"
2344
- }
2252
+ "property": "unMappedFieldNotUseInModel.mailType",
2253
+ "equals": "mail",
2254
+ "type": "simple"
2255
+ },
2256
+ "type": "String"
2345
2257
  },
2346
2258
  {
2347
- "label": "Template ID",
2348
- "group": "content",
2349
- "type": "String",
2259
+ "id": "content.type",
2260
+ "label": "Content type",
2261
+ "optional": false,
2262
+ "value": "text/plain",
2263
+ "constraints": {
2264
+ "notEmpty": true
2265
+ },
2350
2266
  "feel": "optional",
2267
+ "group": "content",
2351
2268
  "binding": {
2352
- "type": "zeebe:input",
2353
- "name": "template.id"
2269
+ "name": "content.type",
2270
+ "type": "zeebe:input"
2271
+ },
2272
+ "condition": {
2273
+ "property": "unMappedFieldNotUseInModel.mailType",
2274
+ "equals": "mail",
2275
+ "type": "simple"
2354
2276
  },
2277
+ "type": "String"
2278
+ },
2279
+ {
2280
+ "id": "content.value",
2281
+ "label": "Body",
2282
+ "optional": false,
2355
2283
  "constraints": {
2356
2284
  "notEmpty": true
2357
2285
  },
2286
+ "feel": "optional",
2287
+ "group": "content",
2288
+ "binding": {
2289
+ "name": "content.value",
2290
+ "type": "zeebe:input"
2291
+ },
2358
2292
  "condition": {
2359
- "property": "mailType",
2360
- "equals": "byTemplate"
2361
- }
2293
+ "property": "unMappedFieldNotUseInModel.mailType",
2294
+ "equals": "mail",
2295
+ "type": "simple"
2296
+ },
2297
+ "type": "Text"
2362
2298
  },
2363
2299
  {
2364
- "label": "Template data",
2300
+ "id": "attachments_documentMode",
2301
+ "label": "Number of documents",
2302
+ "description": "List of <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">Camunda Documents</a>",
2303
+ "value": "none",
2365
2304
  "group": "content",
2366
- "type": "Text",
2367
- "feel": "required",
2368
2305
  "binding": {
2369
- "type": "zeebe:input",
2370
- "name": "template.data"
2306
+ "name": "attachments_documentMode",
2307
+ "type": "zeebe:input"
2371
2308
  },
2372
- "constraints": {
2373
- "notEmpty": true
2309
+ "type": "Dropdown",
2310
+ "choices": [
2311
+ {
2312
+ "name": "None",
2313
+ "value": "none"
2314
+ },
2315
+ {
2316
+ "name": "Single document",
2317
+ "value": "single"
2318
+ },
2319
+ {
2320
+ "name": "Multiple documents",
2321
+ "value": "multiple"
2322
+ }
2323
+ ]
2324
+ },
2325
+ {
2326
+ "id": "attachments_single_documentSource",
2327
+ "label": "Document source",
2328
+ "value": "camunda",
2329
+ "group": "content",
2330
+ "binding": {
2331
+ "name": "attachments_single_documentSource",
2332
+ "type": "zeebe:input"
2374
2333
  },
2375
2334
  "condition": {
2376
- "property": "mailType",
2377
- "equals": "byTemplate"
2378
- }
2335
+ "property": "attachments_documentMode",
2336
+ "equals": "single",
2337
+ "type": "simple"
2338
+ },
2339
+ "type": "Dropdown",
2340
+ "choices": [
2341
+ {
2342
+ "name": "Camunda Document",
2343
+ "value": "camunda"
2344
+ },
2345
+ {
2346
+ "name": "Inline Content",
2347
+ "value": "inline"
2348
+ },
2349
+ {
2350
+ "name": "From URL",
2351
+ "value": "external"
2352
+ }
2353
+ ]
2379
2354
  },
2380
2355
  {
2381
- "label": "Error expression",
2382
- "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#bpmn-errors\" target=\"_blank\">documentation</a>",
2383
- "group": "errors",
2384
- "type": "Text",
2356
+ "id": "attachments_single_camundaReference",
2357
+ "label": "Camunda document",
2358
+ "constraints": {
2359
+ "notEmpty": true
2360
+ },
2385
2361
  "feel": "required",
2362
+ "group": "content",
2386
2363
  "binding": {
2387
- "type": "zeebe:taskHeader",
2388
- "key": "errorExpression"
2389
- }
2390
- }
2391
- ],
2392
- "engines": {
2393
- "camunda": "^8.2"
2394
- }
2395
- },
2396
- {
2397
- "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
2398
- "name": "SendGrid connector",
2399
- "id": "io.camunda.connectors.SendGrid.v2",
2400
- "version": 1,
2401
- "description": "Send an email via SendGrid",
2402
- "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/sendgrid/",
2403
- "icon": {
2404
- "contents": "data:image/svg+xml;utf8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%205.40847H5.43837V10.5611H0.285706V5.40847Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V15.6844H5.43837V10.5611Z%22%20fill%3D%22%2399E1F4%22%2F%3E%0A%3Cpath%20d%3D%22M0.285706%2015.6846L5.43837%2015.6844V15.7143H0.285706V15.6846ZM0.285706%2010.5619H5.43837V15.6844L0.285706%2015.6846V10.5619Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%200.285706H10.5611V5.40847H5.43837V0.285706ZM10.5616%205.43837H15.7143V10.5611H10.5616V5.43837Z%22%20fill%3D%22%2300B3E3%22%2F%3E%0A%3Cpath%20d%3D%22M5.43837%2010.5611L10.5611%2010.5616V5.40847H5.43837V10.5611Z%22%20fill%3D%22%23009DD9%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%200.285706H15.7143V5.40847H10.5611V0.285706Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3Cpath%20d%3D%22M10.5611%205.40847H15.7143V5.43837H10.5616L10.5611%205.40847Z%22%20fill%3D%22%231A82E2%22%2F%3E%0A%3C%2Fsvg%3E"
2405
- },
2406
- "category": {
2407
- "id": "connectors",
2408
- "name": "Connectors"
2409
- },
2410
- "appliesTo": ["bpmn:Task"],
2411
- "elementType": {
2412
- "value": "bpmn:ServiceTask"
2413
- },
2414
- "groups": [
2415
- {
2416
- "id": "authentication",
2417
- "label": "Authentication"
2418
- },
2419
- {
2420
- "id": "sender",
2421
- "label": "Sender"
2422
- },
2423
- {
2424
- "id": "receiver",
2425
- "label": "Receiver"
2364
+ "name": "attachments_single_camundaReference",
2365
+ "type": "zeebe:input"
2366
+ },
2367
+ "condition": {
2368
+ "allMatch": [
2369
+ {
2370
+ "property": "attachments_documentMode",
2371
+ "equals": "single",
2372
+ "type": "simple"
2373
+ },
2374
+ {
2375
+ "property": "attachments_single_documentSource",
2376
+ "equals": "camunda",
2377
+ "type": "simple"
2378
+ }
2379
+ ]
2380
+ },
2381
+ "type": "String"
2426
2382
  },
2427
2383
  {
2428
- "id": "content",
2429
- "label": "Compose email"
2384
+ "id": "attachments_single_inline_content",
2385
+ "label": "Content",
2386
+ "constraints": {
2387
+ "notEmpty": true
2388
+ },
2389
+ "feel": "optional",
2390
+ "group": "content",
2391
+ "binding": {
2392
+ "name": "attachments_single_inline_content",
2393
+ "type": "zeebe:input"
2394
+ },
2395
+ "condition": {
2396
+ "allMatch": [
2397
+ {
2398
+ "property": "attachments_documentMode",
2399
+ "equals": "single",
2400
+ "type": "simple"
2401
+ },
2402
+ {
2403
+ "property": "attachments_single_documentSource",
2404
+ "equals": "inline",
2405
+ "type": "simple"
2406
+ }
2407
+ ]
2408
+ },
2409
+ "type": "String"
2430
2410
  },
2431
2411
  {
2432
- "id": "errors",
2433
- "label": "Error handling"
2434
- }
2435
- ],
2436
- "properties": [
2437
- {
2438
- "type": "Hidden",
2439
- "value": "io.camunda:sendgrid:1",
2412
+ "id": "attachments_single_inline_fileName",
2413
+ "label": "File name",
2414
+ "feel": "optional",
2415
+ "group": "content",
2440
2416
  "binding": {
2441
- "type": "zeebe:taskDefinition",
2442
- "property": "type"
2443
- }
2417
+ "name": "attachments_single_inline_fileName",
2418
+ "type": "zeebe:input"
2419
+ },
2420
+ "condition": {
2421
+ "allMatch": [
2422
+ {
2423
+ "property": "attachments_documentMode",
2424
+ "equals": "single",
2425
+ "type": "simple"
2426
+ },
2427
+ {
2428
+ "property": "attachments_single_documentSource",
2429
+ "equals": "inline",
2430
+ "type": "simple"
2431
+ }
2432
+ ]
2433
+ },
2434
+ "type": "String"
2444
2435
  },
2445
2436
  {
2446
- "label": "SendGrid API key",
2447
- "group": "authentication",
2448
- "type": "String",
2437
+ "id": "attachments_single_inline_contentType",
2438
+ "label": "Content type",
2449
2439
  "feel": "optional",
2440
+ "group": "content",
2450
2441
  "binding": {
2451
- "type": "zeebe:input",
2452
- "name": "apiKey"
2442
+ "name": "attachments_single_inline_contentType",
2443
+ "type": "zeebe:input"
2444
+ },
2445
+ "condition": {
2446
+ "allMatch": [
2447
+ {
2448
+ "property": "attachments_documentMode",
2449
+ "equals": "single",
2450
+ "type": "simple"
2451
+ },
2452
+ {
2453
+ "property": "attachments_single_documentSource",
2454
+ "equals": "inline",
2455
+ "type": "simple"
2456
+ }
2457
+ ]
2453
2458
  },
2454
- "constraints": {
2455
- "notEmpty": true
2456
- }
2459
+ "type": "String"
2457
2460
  },
2458
2461
  {
2459
- "label": "Name",
2460
- "group": "sender",
2461
- "type": "String",
2462
- "feel": "optional",
2463
- "binding": {
2464
- "type": "zeebe:input",
2465
- "name": "from.name"
2466
- },
2462
+ "id": "attachments_single_external_url",
2463
+ "label": "URL",
2467
2464
  "constraints": {
2468
2465
  "notEmpty": true
2469
- }
2470
- },
2471
- {
2472
- "label": "Email address",
2473
- "group": "sender",
2474
- "type": "String",
2466
+ },
2475
2467
  "feel": "optional",
2468
+ "group": "content",
2476
2469
  "binding": {
2477
- "type": "zeebe:input",
2478
- "name": "from.email"
2470
+ "name": "attachments_single_external_url",
2471
+ "type": "zeebe:input"
2479
2472
  },
2480
- "constraints": {
2481
- "notEmpty": true
2482
- }
2473
+ "condition": {
2474
+ "allMatch": [
2475
+ {
2476
+ "property": "attachments_documentMode",
2477
+ "equals": "single",
2478
+ "type": "simple"
2479
+ },
2480
+ {
2481
+ "property": "attachments_single_documentSource",
2482
+ "equals": "external",
2483
+ "type": "simple"
2484
+ }
2485
+ ]
2486
+ },
2487
+ "type": "String"
2483
2488
  },
2484
2489
  {
2485
- "label": "Name",
2486
- "group": "receiver",
2487
- "type": "String",
2490
+ "id": "attachments_single_external_fileName",
2491
+ "label": "File name",
2488
2492
  "feel": "optional",
2493
+ "group": "content",
2489
2494
  "binding": {
2490
- "type": "zeebe:input",
2491
- "name": "to.name"
2495
+ "name": "attachments_single_external_fileName",
2496
+ "type": "zeebe:input"
2492
2497
  },
2493
- "constraints": {
2494
- "notEmpty": true
2495
- }
2498
+ "condition": {
2499
+ "allMatch": [
2500
+ {
2501
+ "property": "attachments_documentMode",
2502
+ "equals": "single",
2503
+ "type": "simple"
2504
+ },
2505
+ {
2506
+ "property": "attachments_single_documentSource",
2507
+ "equals": "external",
2508
+ "type": "simple"
2509
+ }
2510
+ ]
2511
+ },
2512
+ "type": "String"
2496
2513
  },
2497
2514
  {
2498
- "label": "Email address",
2499
- "group": "receiver",
2500
- "type": "String",
2501
- "feel": "optional",
2502
- "binding": {
2503
- "type": "zeebe:input",
2504
- "name": "to.email"
2505
- },
2515
+ "id": "attachments_multiple_expression",
2516
+ "label": "Documents",
2506
2517
  "constraints": {
2507
2518
  "notEmpty": true
2508
- }
2509
- },
2510
- {
2511
- "id": "mailType",
2519
+ },
2520
+ "feel": "required",
2512
2521
  "group": "content",
2513
- "value": "mail",
2514
- "type": "Dropdown",
2515
- "choices": [
2516
- {
2517
- "name": "Simple (no dynamic template)",
2518
- "value": "mail"
2519
- },
2520
- {
2521
- "name": "Using dynamic template",
2522
- "value": "byTemplate"
2523
- }
2524
- ],
2525
2522
  "binding": {
2526
- "type": "zeebe:input",
2527
- "name": "unMappedFieldNotUseInModel.mailType"
2528
- }
2523
+ "name": "attachments_multiple_expression",
2524
+ "type": "zeebe:input"
2525
+ },
2526
+ "condition": {
2527
+ "property": "attachments_documentMode",
2528
+ "equals": "multiple",
2529
+ "type": "simple"
2530
+ },
2531
+ "type": "String"
2529
2532
  },
2530
2533
  {
2531
- "label": "Subject",
2534
+ "id": "attachments",
2535
+ "value": "=if attachments_documentMode = \"multiple\" then attachments_multiple_expression else if attachments_documentMode = \"single\" then (if attachments_single_documentSource = \"camunda\" then [attachments_single_camundaReference] else if attachments_single_documentSource = \"inline\" then [{ \"camunda.document.type\": \"inline\", content: attachments_single_inline_content, name: attachments_single_inline_fileName, contentType: attachments_single_inline_contentType }] else if attachments_single_documentSource = \"external\" then [{ \"camunda.document.type\": \"external\", url: attachments_single_external_url, name: attachments_single_external_fileName }] else null) else null",
2532
2536
  "group": "content",
2533
- "type": "String",
2534
- "feel": "optional",
2535
2537
  "binding": {
2536
- "type": "zeebe:input",
2537
- "name": "content.subject"
2538
- },
2539
- "constraints": {
2540
- "notEmpty": true
2538
+ "name": "attachments",
2539
+ "type": "zeebe:input"
2541
2540
  },
2542
- "condition": {
2543
- "property": "mailType",
2544
- "equals": "mail"
2545
- }
2541
+ "type": "Hidden"
2546
2542
  },
2547
2543
  {
2548
- "label": "Content type",
2549
- "group": "content",
2550
- "type": "String",
2551
- "feel": "optional",
2552
- "value": "text/plain",
2544
+ "id": "version",
2545
+ "label": "Version",
2546
+ "description": "Version of the element template",
2547
+ "value": "6",
2548
+ "group": "connector",
2553
2549
  "binding": {
2554
- "type": "zeebe:input",
2555
- "name": "content.type"
2556
- },
2557
- "constraints": {
2558
- "notEmpty": true
2550
+ "key": "elementTemplateVersion",
2551
+ "type": "zeebe:taskHeader"
2559
2552
  },
2560
- "condition": {
2561
- "property": "mailType",
2562
- "equals": "mail"
2563
- }
2553
+ "type": "Hidden"
2564
2554
  },
2565
2555
  {
2566
- "label": "Body",
2567
- "group": "content",
2568
- "type": "Text",
2569
- "feel": "optional",
2556
+ "id": "id",
2557
+ "label": "ID",
2558
+ "description": "ID of the element template",
2559
+ "value": "io.camunda.connectors.SendGrid.v2",
2560
+ "group": "connector",
2570
2561
  "binding": {
2571
- "type": "zeebe:input",
2572
- "name": "content.value"
2573
- },
2574
- "constraints": {
2575
- "notEmpty": true
2562
+ "key": "elementTemplateId",
2563
+ "type": "zeebe:taskHeader"
2576
2564
  },
2577
- "condition": {
2578
- "property": "mailType",
2579
- "equals": "mail"
2580
- }
2565
+ "type": "Hidden"
2581
2566
  },
2582
2567
  {
2583
- "label": "Template ID",
2584
- "group": "content",
2585
- "type": "String",
2586
- "feel": "optional",
2568
+ "id": "resultVariable",
2569
+ "label": "Result variable",
2570
+ "description": "Name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>.",
2571
+ "group": "output",
2587
2572
  "binding": {
2588
- "type": "zeebe:input",
2589
- "name": "template.id"
2590
- },
2591
- "constraints": {
2592
- "notEmpty": true
2573
+ "key": "resultVariable",
2574
+ "type": "zeebe:taskHeader"
2593
2575
  },
2594
- "condition": {
2595
- "property": "mailType",
2596
- "equals": "byTemplate"
2597
- }
2576
+ "type": "String"
2598
2577
  },
2599
2578
  {
2600
- "label": "Template data",
2601
- "group": "content",
2602
- "type": "Text",
2579
+ "id": "resultExpression",
2580
+ "label": "Result expression",
2581
+ "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>.",
2603
2582
  "feel": "required",
2583
+ "group": "output",
2604
2584
  "binding": {
2605
- "type": "zeebe:input",
2606
- "name": "template.data"
2607
- },
2608
- "constraints": {
2609
- "notEmpty": true
2585
+ "key": "resultExpression",
2586
+ "type": "zeebe:taskHeader"
2610
2587
  },
2611
- "condition": {
2612
- "property": "mailType",
2613
- "equals": "byTemplate"
2614
- }
2588
+ "type": "Text"
2615
2589
  },
2616
2590
  {
2591
+ "id": "errorExpression",
2617
2592
  "label": "Error expression",
2618
- "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#bpmn-errors\" target=\"_blank\">documentation</a>",
2619
- "group": "errors",
2620
- "type": "Text",
2593
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
2621
2594
  "feel": "required",
2595
+ "group": "error",
2622
2596
  "binding": {
2623
- "type": "zeebe:taskHeader",
2624
- "key": "errorExpression"
2625
- }
2597
+ "key": "errorExpression",
2598
+ "type": "zeebe:taskHeader"
2599
+ },
2600
+ "type": "Text"
2601
+ },
2602
+ {
2603
+ "id": "retryCount",
2604
+ "label": "Retries",
2605
+ "description": "Number of retries",
2606
+ "value": "3",
2607
+ "feel": "optional",
2608
+ "group": "retries",
2609
+ "binding": {
2610
+ "property": "retries",
2611
+ "type": "zeebe:taskDefinition"
2612
+ },
2613
+ "type": "String"
2614
+ },
2615
+ {
2616
+ "id": "retryBackoff",
2617
+ "label": "Retry backoff",
2618
+ "description": "ISO-8601 duration to wait between retries",
2619
+ "value": "PT0S",
2620
+ "group": "retries",
2621
+ "binding": {
2622
+ "key": "retryBackoff",
2623
+ "type": "zeebe:taskHeader"
2624
+ },
2625
+ "type": "String"
2626
2626
  }
2627
2627
  ],
2628
- "engines": {
2629
- "camunda": "^8.2"
2628
+ "icon": {
2629
+ "contents": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0id2hpdGUiLz4KICAgIDxwYXRoIGQ9Ik0wLjI4NTcwNiA1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMUgwLjI4NTcwNlY1LjQwODQ3WiIgZmlsbD0iIzk5RTFGNCIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPHBhdGggZD0iTTUuNDM4MzcgMTAuNTYxMUwxMC41NjExIDEwLjU2MTZWMTUuNjg0NEg1LjQzODM3VjEwLjU2MTFaIiBmaWxsPSIjOTlFMUY0Ii8+CiAgICA8cGF0aCBkPSJNMC4yODU3MDYgMTUuNjg0Nkw1LjQzODM3IDE1LjY4NDRWMTUuNzE0M0gwLjI4NTcwNlYxNS42ODQ2Wk0wLjI4NTcwNiAxMC41NjE5SDUuNDM4MzdWMTUuNjg0NEwwLjI4NTcwNiAxNS42ODQ2VjEwLjU2MTlaIiBmaWxsPSIjMUE4MkUyIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAwLjI4NTcwNkgxMC41NjExVjUuNDA4NDdINS40MzgzN1YwLjI4NTcwNlpNMTAuNTYxNiA1LjQzODM3SDE1LjcxNDNWMTAuNTYxMUgxMC41NjE2VjUuNDM4MzdaIiBmaWxsPSIjMDBCM0UzIi8+CiAgICA8cGF0aCBkPSJNNS40MzgzNyAxMC41NjExTDEwLjU2MTEgMTAuNTYxNlY1LjQwODQ3SDUuNDM4MzdWMTAuNTYxMVoiIGZpbGw9IiMwMDlERDkiLz4KICAgIDxwYXRoIGQ9Ik0xMC41NjExIDAuMjg1NzA2SDE1LjcxNDNWNS40MDg0N0gxMC41NjExVjAuMjg1NzA2WiIgZmlsbD0iIzFBODJFMiIvPgogICAgPHBhdGggZD0iTTEwLjU2MTEgNS40MDg0N0gxNS43MTQzVjUuNDM4MzdIMTAuNTYxNkwxMC41NjExIDUuNDA4NDdaIiBmaWxsPSIjMUE4MkUyIi8+Cjwvc3ZnPg=="
2630
2630
  }
2631
2631
  }
2632
2632
  ]