The REST Connector publishes an endpoint that external systems can call, such as webhooks from GitHub or other applications. When the endpoint receives a request, a trigger can evaluate the request and publish events that processes and other project assets can use to start or drive automation.
Use REST connector events to teceive events from external systems through webhooks, start automation based on incoming HTTP requests, or evaluate request methods, paths, headers, parameters, and payloads before publishing events.
The REST connector publishes an endpoint that external systems can call (for example, GitHub webhooks). When the endpoint is called, a trigger can evaluate the incoming request and publish events that your project can use to start or drive automation.
Limitations of the INCOMING_WEBHOOK are:
- Webhook triggers are fire-and-forget.
- The webhook does not wait for process execution to complete.
- The response is returned before the process instance exists.
- event.id is not the same as the process instance ID and the two values are not correlated.
- Process variables cannot be returned in the webhook response.
The input parameters for the INCOMING_WEBHOOK event are:
| Parameter | Description |
|---|---|
| method | HTTP methods that can trigger the event. Multiple methods can be configured. |
| path | The webhook path to monitor. The format begins https://<environment>.com/<project-name>/<connector-name>/events/ followed by a custom value, for example: https://hyland.com/finance-project/rest-connector-1/events/github |
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| status | HTTP status code returned to the external system. |
| headers | Request header key-value pairs that must match before the event is published. |
| params | Request parameter key-value pairs that must match before the event is published. |
| body | JSON response body returned to the external system. |