I use the Spring Quartz Job Scheduler to run jobs on user-selected days. Instead of automatically invoking the task scheduler when the application starts, I need the task scheduler to start on a specific user action.
<bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="testme"/>
</list>
</property>
</bean>
<bean id="testme" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="testme1"/>
</property>
<property name="cronExpression">
<value>0 15 10 1,15 * ?</value>
</property>
</bean>
I also need the first user to select the dates necessary to complete the task, for example: Monday and Friday, and then, after clicking the submit button, will the scheduler start from this moment? CronExpression values ββalso change based on user-selected dates. Moreover, the user can later change it to different dates. So can this be done, or is Quartz Job Scheduler not suitable for achieving what I need?