Webhook
Temporal Broadcaster Setup Guide
Introduction
This guide provides step-by-step instructions to configure the Temporal Broadcaster feature, allowing you to broadcast platform events to Temporal workflows.
Steps to Configure Temporal Broadcaster
To access the Temporal Broadcaster:
- Log in to the Fynd Partner Panel.
- Navigate to Extensions and select the desired extension.
- Under the selected extension, click on Webhook.
- Click on Add Configuration.
- Select Temporal from the list of broadcaster types.
- You will be directed to the Temporal Config page.
- Fill in the following details:
- Name: Provide a name for identification.
- Address: Enter the Temporal server address (e.g.,
temporal.example.com:7233). This is the network address of your Temporal server. - Namespace: Specify the Temporal namespace you wish to use. This is a logical grouping of workflows within Temporal.
- TLS Cert: Upload the TLS certificate file if required.
- TLS Key: Upload the corresponding TLS key file if required.
- Click on Validate. The platform will attempt to establish a connection with the Temporal server using the provided details. Upon successful validation, a confirmation message will appear.
- Click on Save to complete the configuration. A pop-up will appear indicating Validation Successful if the entered details are valid.
Create Temporal Subscriber API
curl --location 'https://{{host}}/service/platform/webhook/v2.0/company/1/subscriber' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{Bearer Token}}' \
--data-raw '{
"name": "Temporal Subscriber",
"provider": "temporal",
"association": {
"company_id": 1,
"criteria": "ALL",
"extension_id":"6684c91938568e58638a2b42"
},
"custom_headers": {},
"status": "active",
"email_id": "praveenraturi@gofynd.com",
"auth_meta": {},
"events": [
{
"slug": "company/article/update/v1",
"queue": "fynd-json-company-article-temporal-event",
"workflow_name": "article-workflow"
}
]
}'
Congratulations!
You have successfully configured the Temporal Broadcaster feature, enabling seamless event broadcasting for effective collaboration with Fynd Commerce.