Skip to content

Commit bd4bfd7

Browse files
authored
fix: minor element template adjustments (#560)
* fix: minor element template adjustments * fix: minor element template adjustments
1 parent 34def5c commit bd4bfd7

File tree

7 files changed

+78
-52
lines changed

7 files changed

+78
-52
lines changed

connectors/github/element-templates/github-webhook-connector-intermediate.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,27 @@
144144
"description":"Condition under which the connector triggers. <a href='https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/github-webhook/' target='_blank'>See documentation</a>"
145145
},
146146
{
147-
"label":"Variables",
148-
"type":"String",
149-
"group":"variable-mapping",
150-
"feel":"required",
151-
"binding":{
152-
"type":"zeebe:property",
153-
"name":"inbound.variableMapping"
147+
"label": "Result variable",
148+
"type": "String",
149+
"group": "variable-mapping",
150+
"optional": true,
151+
"binding": {
152+
"type": "zeebe:property",
153+
"name": "resultVariable"
154+
},
155+
"description": "Name of variable to store the result of the Connector in"
156+
},
157+
{
158+
"label":"Result expression",
159+
"type": "String",
160+
"group": "variable-mapping",
161+
"feel": "required",
162+
"optional": true,
163+
"binding": {
164+
"type": "zeebe:property",
165+
"name": "resultExpression"
154166
},
155-
"description":"Variables extracted from the webhook payload (request) to start the process with. <a href='https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/github-webhook/' target='_blank'>See documentation</a>"
167+
"description": "Expression to map the inbound payload to process variables"
156168
}
157169
],
158170
"icon":{

connectors/github/element-templates/github-webhook-connector-start-event.json

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema":"https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
33
"name":"GitHub Webhook Connector",
44
"id":"io.camunda.connectors.webhook.GithubWebhookConnector.v1",
5-
"version":1,
5+
"version":2,
66
"description":"Receive events from GitHub",
77
"documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/github-webhook/",
88
"category":{
@@ -104,15 +104,27 @@
104104
"description":"Condition under which the connector triggers. <a href='https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/github-webhook/' target='_blank'>See documentation</a>"
105105
},
106106
{
107-
"label":"Variables",
108-
"type":"String",
109-
"group":"variable-mapping",
110-
"feel":"required",
111-
"binding":{
112-
"type":"zeebe:property",
113-
"name":"inbound.variableMapping"
107+
"label": "Result variable",
108+
"type": "String",
109+
"group": "variable-mapping",
110+
"optional": true,
111+
"binding": {
112+
"type": "zeebe:property",
113+
"name": "resultVariable"
114+
},
115+
"description": "Name of variable to store the result of the Connector in"
116+
},
117+
{
118+
"label":"Result expression",
119+
"type": "String",
120+
"group": "variable-mapping",
121+
"feel": "required",
122+
"optional": true,
123+
"binding": {
124+
"type": "zeebe:property",
125+
"name": "resultExpression"
114126
},
115-
"description":"Variables extracted from the webhook payload (request) to start the process with. <a href='https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/github-webhook/' target='_blank'>See documentation</a>"
127+
"description": "Expression to map the inbound payload to process variables"
116128
}
117129
],
118130
"icon":{

connectors/kafka/element-templates/kafka-inbound-connector-intermediate.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -244,19 +244,8 @@
244244
"type": "Text",
245245
"feel": "required",
246246
"binding": {
247-
"type": "zeebe:taskHeader",
248-
"key": "resultExpression"
249-
}
250-
},
251-
{
252-
"label": "Error expression",
253-
"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>",
254-
"group": "errors",
255-
"type": "Text",
256-
"feel": "required",
257-
"binding": {
258-
"type": "zeebe:taskHeader",
259-
"key": "errorExpression"
247+
"type": "zeebe:property",
248+
"name": "resultExpression"
260249
}
261250
}
262251
],

connectors/kafka/element-templates/kafka-inbound-connector.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,19 +204,8 @@
204204
"type": "Text",
205205
"feel": "required",
206206
"binding": {
207-
"type": "zeebe:taskHeader",
208-
"key": "resultExpression"
209-
}
210-
},
211-
{
212-
"label": "Error expression",
213-
"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>",
214-
"group": "errors",
215-
"type": "Text",
216-
"feel": "required",
217-
"binding": {
218-
"type": "zeebe:taskHeader",
219-
"key": "errorExpression"
207+
"type": "zeebe:property",
208+
"name": "resultExpression"
220209
}
221210
}
222211
],

connectors/rabbitmq/element-templates/rabbitmq-start-event-connector.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
"description": "Condition under which the Connector triggers. Leave empty to catch all events"
241241
},
242242
{
243-
"label": "Result Variable",
243+
"label": "Result variable",
244244
"type": "String",
245245
"group": "variable-mapping",
246246
"optional": true,
@@ -251,7 +251,7 @@
251251
"description": "Name of variable to store the result of the Connector in"
252252
},
253253
{
254-
"label":"Result Expression",
254+
"label":"Result expression",
255255
"type": "String",
256256
"group": "variable-mapping",
257257
"feel": "required",

connectors/webhook-connector/element-templates/webhook-connector-intermediate.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,27 @@
190190
"description": "Condition under which the connector triggers. Leave empty to catch all events. <a href='https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/http-webhook/#make-your-http-webhook-connector-for-receiving-messages-executable' target='_blank'>See documentation</a>"
191191
},
192192
{
193-
"label": "Variables",
193+
"label": "Result variable",
194+
"type": "String",
195+
"group": "variable-mapping",
196+
"optional": true,
197+
"binding": {
198+
"type": "zeebe:property",
199+
"name": "resultVariable"
200+
},
201+
"description": "Name of variable to store the result of the Connector in"
202+
},
203+
{
204+
"label":"Result expression",
194205
"type": "String",
195206
"group": "variable-mapping",
196207
"feel": "required",
208+
"optional": true,
197209
"binding": {
198210
"type": "zeebe:property",
199-
"name": "inbound.variableMapping"
211+
"name": "resultExpression"
200212
},
201-
"description": "Map variables from the webhook payload (request) to start the process with. When blank, entire payload is copied over. <a href='https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/http-webhook/#make-your-http-webhook-connector-for-receiving-messages-executable' target='_blank'>See documentation</a>"
213+
"description": "Expression to map the inbound payload to process variables"
202214
}
203215
],
204216
"icon": {

connectors/webhook-connector/element-templates/webhook-connector-start-event.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
33
"name": "Webhook Connector",
44
"id": "io.camunda.connectors.webhook.WebhookConnector.v1",
5-
"version": 1,
5+
"version": 2,
66
"description": "Configure webhook to receive callbacks",
77
"documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/http-webhook/",
88
"category": {
@@ -150,15 +150,27 @@
150150
"description": "Condition under which the connector triggers. Leave empty to catch all events. <a href='https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/http-webhook/#make-your-http-webhook-connector-for-receiving-messages-executable' target='_blank'>See documentation</a>"
151151
},
152152
{
153-
"label": "Variables",
153+
"label": "Result variable",
154+
"type": "String",
155+
"group": "variable-mapping",
156+
"optional": true,
157+
"binding": {
158+
"type": "zeebe:property",
159+
"name": "resultVariable"
160+
},
161+
"description": "Name of variable to store the result of the Connector in"
162+
},
163+
{
164+
"label":"Result expression",
154165
"type": "String",
155166
"group": "variable-mapping",
156167
"feel": "required",
168+
"optional": true,
157169
"binding": {
158170
"type": "zeebe:property",
159-
"name": "inbound.variableMapping"
171+
"name": "resultExpression"
160172
},
161-
"description": "Map variables from the webhook payload (request) to start the process with. When blank, entire payload is copied over. <a href='https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/http-webhook/#make-your-http-webhook-connector-for-receiving-messages-executable' target='_blank'>See documentation</a>"
173+
"description": "Expression to map the inbound payload to process variables"
162174
}
163175
],
164176
"icon": {

0 commit comments

Comments
 (0)