TasksChannelServiceInstance

public class TasksChannelServiceInstance

The TasksChannelServiceInstance class, holds Tasks-related beans. The reason this class must exist is because no Spring beans should be initialised if the Tasks module is not present. Therefore, we should first make sure that the Tasks module is present and only then we use Tasks classes, to avoid NoClassDefFoundError.

Constructors

TasksChannelServiceInstance

public TasksChannelServiceInstance(Object service, ChannelRequestBuilder builder)

Methods

unregisterTaskChannel

public void unregisterTaskChannel()

Unregisters the channel originating from the OpenMRS module.

updateTaskChannel

public void updateTaskChannel()

Registers or updates the task channel if it contains any task triggers, if it doesn’t the channel will be unregistered.