/
Writing Scheduled Tasks

Writing Scheduled Tasks

A scheduled task in OpenMRS runs every so often and does tasks in the background.

Every task is run on a new thread.

Your class should extend AbstractTask

Examples

https://github.com/openmrs/openmrs-core/tree/master/api/src/main/java/org/openmrs/scheduler/tasks

 

Authentication

As of 1.7.0 tasks are executed as the Daemon User. This gives them all privileges without having to use Context.addProxyPrivilege().

See Also

Administering Scheduled Tasks

Related content

How To Translate the OpenMRS Platform and Modules
How To Translate the OpenMRS Platform and Modules
Read with this
Developer How-To Setup And Use Netbeans
Developer How-To Setup And Use Netbeans
Read with this
Description About How to Serialize-Deserialize
Description About How to Serialize-Deserialize
Read with this
How-To Submit Code
How-To Submit Code
Read with this
How-to Use Netbeans with OpenMRS 1.7 and Older (Non-Maven)
How-to Use Netbeans with OpenMRS 1.7 and Older (Non-Maven)
Read with this