On Table Row

 

Process rows from DB Table using On Table Row Operation

This operation selects from a table at a regular interval and generates one message per obtained row. Optionally, you can provide watermark and ID columns. If a watermark column is provided, the values taken from that column are used to filter the contents of the next poll, so that only rows with a greater watermark value are returned. If an ID column is provided, this component automatically verifies that the same row is not picked twice by concurrent polls.

Create a project in anypoint studio and Configure the listener

Configure the Database connection

On Table Row

 

Drag and drop On Table Row from mule palette and configure the below parameters

  • Table: Table name to process the records
  • Watermark Column: The name of the column to use for a watermark. Values taken from this column are used to filter the contents of the next poll, so that only rows with a greater watermark value are processed.
  • Id: The name of the column to consider as the row ID. If provided, this component makes sure that the same row is not processed twice by concurrent polls.
  • Scheduling Frequency: Configures the scheduler that triggers the polling it can be either cron or the fixed frequency

On Table Row

 

Deploy the project and test the same, you can see newly inserted records with ID:3 is processed

  
Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
 
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.


Share this:
Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Ruby
5 years ago

Hi,
If I deploy the application ,will it get the value of newly inserted row?

Aditya
Aditya
3 years ago

Hi ,
I have a below requirement.
 
Source –
field 1 , Field 2
1, a
1, b
1,c
2,a
2,b
 
 
Target Output :
1, a;b;c
2, a;b
 
Can anyone please how to achieve this?