TaskService¶
-
public interface
TaskService
¶ Service interface for managing tasks.
Methods¶
deleteTask¶
exportTask¶
findActiveTasksForTrigger¶
-
List<Task>
findActiveTasksForTrigger
(TriggerEvent trigger)¶ Returns the list of active tasks with the given trigger. Used for retrieving tasks to execute when a given trigger fires.
Parameters: - trigger – the trigger, null returns empty list
Returns: the list of active tasks
findActiveTasksForTriggerSubject¶
findCustomParser¶
-
TasksEventParser
findCustomParser
(String name)¶ Looks for implementations of the
org.motechproject.commons.api.TasksEventParser
that have been exposed as OSGi services by bundles. For all found implementations, this method will match names returned by thegetName()
method of theTasksEventParser
and passed as parameter to this method. If a match is found, the implementation is returned.Parameters: - name – A name of the parser, that will be matched with
getName()
of the implementations
Returns: Implementation of the
org.motechproject.commons.api.TasksEventParser
that returns the same name viagetName()
method as the name passed to the method- name – A name of the parser, that will be matched with
findTasksByName¶
findTasksDependentOnModule¶
getActionEventFor¶
-
ActionEvent
getActionEventFor
(TaskActionInformation taskActionInformation)¶ Returns the action event that matches the given information about the task action.
Parameters: - taskActionInformation – the action information, not null
Throws: - ActionNotFoundException – when action was not found
Returns: the action event matching the given information