@camunda/connectors-element-templates 1.0.16 → 1.0.18

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