Creating insert polling notifications
Create an Insert database polling notification to monitor a specified database table for new records. When a new row is inserted, the notification automatically starts an integration, capturing the inserted data and enabling real-time processing or integration with other systems. These alerts help automate data-driven tasks such as syncing new entries, sending alerts, or updating downstream applications.
Before you begin
- Make sure that the messaging capability is enabled for your webMethods Integration tenant.
- You have the details of the database that you want to connect to such as user account, driver group, database name, credentials, and server name.
- Make sure that the database user has privileges to create table, trigger, and sequence.
About this task
In this example, a polling notification is created to log a message when a new customer is added to the CUSTOMER table. SamplePollingNotification project is used for this tutorial.
Creating and testing polling notifications involves the following steps.
- Create a database account. For more information about creating Database accounts, see Creating accounts.
- Create a polling notification.
- Create a flow service to run when the notification is received.
- Verify that the flow service runs when the notification is received.
Procedure
Creating flow services
About this task
Procedure
- Go to .
- Select the InsertCustomerFS flow service to edit.
The flow service editor appears.
- On the flow service step, type documentToJSONString to convert the incoming document to a JSON string.
- Click the View/Edit Pipeline to map the input and output fields to
the service. The Pipeline panel is displayed.
- Map the pipeline input to the input document field in documentToJSONString.
- On the flow service step, type logCustomMessage to log the message.
- Click View/Edit Pipeline to map the input and output fields to the
service. The Pipeline panel is displayed.
- Map the pipeline input jsonString to the input message field in logCustomMessage.
- Click Save to save the service.
Verifying flow services
About this task
Procedure
- Go to .
- Filter the results for the project that is used to create the flow service.
- Use any database client and insert a record in the table monitored.
- Click the Refresh icon in the
page. You can notice that the status is Success, which means that the flow service ran without any errors.
- Click the flow service to view the log details. You can see the customer details that were inserted by using the database client.