Class TaskEvaluator

java.lang.Object
com.aquima.interactions.process.impl.TaskEvaluator
All Implemented Interfaces:
ITaskEvaluator

public class TaskEvaluator extends Object implements ITaskEvaluator
Task Evaluator that uses process engine in order to handle task operations that are scheduled.

Hint: A new instance of this object can be created in each scheduler job execution method.

Author:
Voicu Moldovan
  • Constructor Details

  • Method Details

    • getTask

      public ITaskModel getTask(long caseId, long taskId, String tenantId)
      Description copied from interface: ITaskEvaluator
      Handles task expiration.
      Specified by:
      getTask in interface ITaskEvaluator
      Returns:
      status of the task.
    • evaluateExpiredTask

      public boolean evaluateExpiredTask(long caseId, long taskId, String tenantId)
      Description copied from interface: ITaskEvaluator
      Handles task expiration.
      Specified by:
      evaluateExpiredTask in interface ITaskEvaluator
      Returns:
      Flag stating if the evaluation was done or not.
    • evaluateTimerTask

      public boolean evaluateTimerTask(long caseId, long taskId, String tenantId)
      Description copied from interface: ITaskEvaluator
      Handles timer task.
      Specified by:
      evaluateTimerTask in interface ITaskEvaluator
      Returns:
      Flag stating if the evaluation was done or not.
    • reevaluateTaskPriority

      public boolean reevaluateTaskPriority(long caseId, long taskId, String tenantId)
      Description copied from interface: ITaskEvaluator
      Handles task priority evaluation.
      Specified by:
      reevaluateTaskPriority in interface ITaskEvaluator
      Returns:
      Flag stating if the evaluation was done or not.
    • executePendingAutomaticTask

      public boolean executePendingAutomaticTask(long taskId)
      Description copied from interface: ITaskEvaluator
      Handles pending automatic task.
      Specified by:
      executePendingAutomaticTask in interface ITaskEvaluator
      Returns:
      Flag stating if the evaluation was done or not.