Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Catch-up execution code has been moved to MifosBatchJob class. This means that all batch jobs
that should have Mifos catch-up mechanism should extend this class. Because we do not have any
constraints on the package names anymore (in the original Mifos Scheduler all batch job classes
should be placed in a specific hard-coded package), we can easily configure batch jobs that do not
use Mifos catch-up mechanism.

5. Customizing task.xml file

In order to customize task.xml file included in the Mifos war file, please copy it from your tomcat/webapps to MIFOS_CONF directory.

Next, please change import resource tag from

Code Block
xml
xml

<import resource="dataSourceContext.xml" />

to

Code Block
xml
xml

<import resource="classpath:org/mifos/config/resources/dataSourceContext.xml" />

If you want to use SimpleTriggers instead CronTriggers, please add the following bean definition:

Code Block
xml
xml

<bean id="dateFormat" class="java.text.SimpleDateFormat">
  <constructor-arg value="HH:mm:ss" />
</bean>

change your trigger classes from CronTriggerBean to SimpleTriggerBean, remove cronExpression property and add the following ones instead:

Code Block
xml
xml

<property name="startTime">
  <bean factory-bean="dateFormat" factory-method="parse">
    <constructor-arg value="24:00:00" />
  </bean>
</property>
<property name="repeatInterval" value="86400000" />

6. Backward compatibility

For the backward compatibility old task.xml file is also supported (but only Simple Triggers can be
created in this way).

Database migration scripts transfer all information about last successful tasks invocations from the
old scheduled_tasks table to the new Spring Batch tables, so no information is lost.

...

7. UI

New Batch Jobs management page has been added to display information about configured tasks
(their triggers, last run statuses, etc.). Moreover, it is now possible to run specified tasks on-demand and to put the whole scheduler into standby mode.
Batch Jobs management page is available from the Admin area:(screenshot)

Image Added

We added also two new roles to run specified tasks on-demand and to put the whole scheduler into
standby mode.

...

8. Plans for future

In order to fully leverage Quartz and Spring Batch features (like parallel executions and clustering)
all currently used task helpers (classes that contain batch jobs business logic) should be rewritten.
However, this is out of scope of this project and will be performed in a 6-12 months from now.