-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(twilio inbound): add inbound connector (#541)
- Loading branch information
1 parent
96f9cea
commit b2ced9a
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
connectors/twilio/element-templates/twilio-webhook-connector.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", | ||
"name": "Twilio Connector", | ||
"id": "io.camunda.connectors.TwilioWebhook.v1", | ||
"version": 1, | ||
"description": "Receive incoming message with Twilio service", | ||
"documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/twilio/", | ||
"category": { | ||
"id": "connectors", | ||
"name": "Connectors" | ||
}, | ||
"appliesTo": [ | ||
"bpmn:StartEvent" | ||
], | ||
"elementType": { | ||
"value": "bpmn:StartEvent" | ||
}, | ||
"groups": [ | ||
{ | ||
"id": "endpoint", | ||
"label": "Webhook Configuration" | ||
}, | ||
{ | ||
"id": "activation", | ||
"label": "Activation" | ||
}, | ||
{ | ||
"id": "variable-mapping", | ||
"label": "Variable Mapping" | ||
} | ||
], | ||
"properties": [ | ||
{ | ||
"type": "Hidden", | ||
"value": "io.camunda:webhook:1", | ||
"binding": { | ||
"type": "zeebe:property", | ||
"name": "inbound.type" | ||
} | ||
}, | ||
{ | ||
"type": "Hidden", | ||
"value": "ConfigurableInboundWebhook", | ||
"binding": { | ||
"type": "zeebe:property", | ||
"name": "inbound.subtype" | ||
} | ||
}, | ||
{ | ||
"type": "Hidden", | ||
"group": "endpoint", | ||
"binding": { | ||
"type": "zeebe:property", | ||
"name": "inbound.context" | ||
} | ||
}, | ||
{ | ||
"type": "Hidden", | ||
"value": "disabled", | ||
"binding": { | ||
"type": "zeebe:property", | ||
"name": "inbound.shouldValidateHmac" | ||
} | ||
}, | ||
{ | ||
"label": "Condition", | ||
"type": "String", | ||
"group": "activation", | ||
"feel": "required", | ||
"optional": true, | ||
"binding": { | ||
"type": "zeebe:property", | ||
"name": "inbound.activationCondition" | ||
}, | ||
"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>" | ||
}, | ||
{ | ||
"label": "Variables", | ||
"type": "String", | ||
"group": "variable-mapping", | ||
"value": "{\n twilioResult:request,\n incomingMessage:request.body.Body\n}", | ||
"feel": "required", | ||
"binding": { | ||
"type": "zeebe:property", | ||
"name": "inbound.variableMapping" | ||
}, | ||
"description": "Map variables from the webhook payload (request) to start the process with. <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>" | ||
} | ||
], | ||
"icon": { | ||
"contents": "data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' preserveAspectRatio='xMidYMid' viewBox='0 0 256 256' id='twilio'%3E%3Cg fill='%23CF272D'%3E%3Cpath d='M127.86 222.304c-52.005 0-94.164-42.159-94.164-94.163 0-52.005 42.159-94.163 94.164-94.163 52.004 0 94.162 42.158 94.162 94.163 0 52.004-42.158 94.163-94.162 94.163zm0-222.023C57.245.281 0 57.527 0 128.141 0 198.756 57.245 256 127.86 256c70.614 0 127.859-57.244 127.859-127.859 0-70.614-57.245-127.86-127.86-127.86z'%3E%3C/path%3E%3Cpath d='M133.116 96.297c0-14.682 11.903-26.585 26.586-26.585 14.683 0 26.585 11.903 26.585 26.585 0 14.684-11.902 26.586-26.585 26.586-14.683 0-26.586-11.902-26.586-26.586M133.116 159.983c0-14.682 11.903-26.586 26.586-26.586 14.683 0 26.585 11.904 26.585 26.586 0 14.683-11.902 26.586-26.585 26.586-14.683 0-26.586-11.903-26.586-26.586M69.431 159.983c0-14.682 11.904-26.586 26.586-26.586 14.683 0 26.586 11.904 26.586 26.586 0 14.683-11.903 26.586-26.586 26.586-14.682 0-26.586-11.903-26.586-26.586M69.431 96.298c0-14.683 11.904-26.585 26.586-26.585 14.683 0 26.586 11.902 26.586 26.585 0 14.684-11.903 26.586-26.586 26.586-14.682 0-26.586-11.902-26.586-26.586'%3E%3C/path%3E%3C/g%3E%3C/svg%3E" | ||
} | ||
} |