Class 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
    • Method Detail

      • 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.