Interface ITaskEvaluator


public interface ITaskEvaluator
Interface for objects that can process task operations that are scheduled.
Author:
Voicu Moldovan
  • Method Details

    • getTask

      ITaskModel getTask(long caseId, long taskId, String tenantId)
      Handles task expiration.
      Parameters:
      caseId - the case id
      taskId - the task id
      tenantId - the tenant id
      Returns:
      status of the task.
    • evaluateExpiredTask

      boolean evaluateExpiredTask(long caseId, long taskId, String tenantId)
      Handles task expiration.
      Parameters:
      caseId - the case id
      taskId - the task id
      tenantId - the tenant id
      Returns:
      Flag stating if the evaluation was done or not.
    • evaluateTimerTask

      boolean evaluateTimerTask(long caseId, long taskId, String tenantId)
      Handles timer task.
      Parameters:
      caseId - the case id
      taskId - the task id
      tenantId - the tenant id
      Returns:
      Flag stating if the evaluation was done or not.
    • reevaluateTaskPriority

      boolean reevaluateTaskPriority(long caseId, long taskId, String tenantId)
      Handles task priority evaluation.
      Parameters:
      caseId - the case id
      taskId - the task id
      tenantId - the tenant id
      Returns:
      Flag stating if the evaluation was done or not.
    • executePendingAutomaticTask

      boolean executePendingAutomaticTask(long taskId)
      Handles pending automatic task.
      Parameters:
      taskId - the task id
      Returns:
      Flag stating if the evaluation was done or not.