updateUpcomingTasksToDue

suspend fun updateUpcomingTasksToDue(subject: Reference? = null, taskResourcesToFilterBy: List<Task>? = null)

This function updates upcoming Task s (with statuses TaskStatus.REQUESTED, TaskStatus.ACCEPTED or TaskStatus.RECEIVED) to due (updates the status to TaskStatus.READY). If the Task is dependent on another Task and it's parent TaskStatus is NOT TaskStatus.COMPLETED, the dependent Task status will not be updated to TaskStatus.READY. A Task should only be due when the start date of the Tasks Task.executionPeriod is before today and the status is TaskStatus.REQUESTED and the pre-requisite Task s are completed.

Parameters

subject

optional subject resources to use as an additional filter to tasks processed

taskResourcesToFilterBy

optional set of Task resources whose resource ids will be used to filter tasks processed