/** * Invoke the scheduled consumer with a given JobExecutionContext (can be mocked). * * This method executes synchronously - when the flow finished executing the given task this method will then return. * * @param jobExecutionContext a JobExecutionContext */ public void fireScheduledConsumerSynchronously(JobExecutionContext jobExecutionContext) { ScheduledConsumer consumer = (ScheduledConsumer) getComponent(scheduledConsumerName); consumer.execute(jobExecutionContext); }
/** * Invoke the scheduled consumer with a given JobExecutionContext (can be mocked). * * This method executes synchronously - when the flow finished executing the given task this method will then return. * * @param jobExecutionContext a JobExecutionContext */ public void fireScheduledConsumerSynchronously(JobExecutionContext jobExecutionContext) { ScheduledConsumer consumer = (ScheduledConsumer) getComponent(scheduledConsumerName); consumer.execute(jobExecutionContext); }