OpenMRSTasksNotifier

public class OpenMRSTasksNotifier implements ServiceListener

Responsible for communication with the Tasks module. It sends org.motechproject.tasks.contract.ChannelRequests in order to create or update tasks channel for the OpenMRS module. If the tasks module is not present, no updates will be sent.

Constructors

OpenMRSTasksNotifier

public OpenMRSTasksNotifier(BundleContext bundleContext, OpenMRSConfigService configService)

Methods

postConstruct

public void postConstruct()

preDestory

public void preDestory()

serviceChanged

public void serviceChanged(ServiceEvent event)

updateTasksChannel

public void updateTasksChannel(MotechEvent motechEvent)