Camunda task/Scheduler that processes records with current date and runs every day once to process future dated records

Dear All,

I have a requirement to do some calculations on some records and process them if the record date is current date. The incoming records can have future dated records as well, and these records will be processed only on future date(when match with current date). So I would require a scheduler that will trigger every day and process the remaining records.

I am thinking to write a service task to process the current date records and filter the future date records and point them back to service task. But how I can ensure that these records only processed next day while keeping the current date records processed smoothly when they arrive.

Also, my Camunda engine and Java code are in separate services, so I need to make rest call to process each call. Please suggest an efficient way?

The below is my design.

image

Thanks in advance.
Manua