cronmulemule-studiomule-componentcronexpression

how to write Cron expression with initial delay - Quartz in mule?


In my mule flow, currently the cron expression in the Quartz component is 0/10 * * * * ? which triggers for every 10 secs. I need to modify my cron job to work with initial delay of 5 secs? How can i accommodate this by just making change to cron expression?


Solution

  • <inbound>
                <quartz:inbound-endpoint jobName="myServiceJob" startDelay="5000" repeatInterval="1000">
                    <quartz:event-generator-job/>
                </quartz:inbound-endpoint>