Class ReadonlyProcessTask

java.lang.Object
com.aquima.interactions.process.wrapper.ProcessTaskDelegate
com.aquima.interactions.process.wrapper.ReadonlyProcessTask
All Implemented Interfaces:
IProcessTask

public class ReadonlyProcessTask extends ProcessTaskDelegate
Decorator class that wraps a process case to make it immutable (read-only).
Since:
7.1
Author:
Jon van Leuven
  • Constructor Details

    • ReadonlyProcessTask

      public ReadonlyProcessTask(IProcessTask processTask)
      Constructs a read-only wrapper for the specified process task.
      Parameters:
      processTask - The process task that should be wrapped in this read-only decorator.
  • Method Details

    • abort

      public void abort(IUserData userData, IProcessCaseUpdates updates)
      Always throws an InvalidStateException: No modifications allowed on a read only process task.
      Specified by:
      abort in interface IProcessTask
      Overrides:
      abort in class ProcessTaskDelegate
      Parameters:
      userData - User that aborts the execution of the task.
      updates - Object containing updates that should be applied to the case data.
      Throws:
      AppException - This exception is thrown when the task could not be aborted.
    • assign

      public void assign(IUserData userData, IAssigneeInfo assigneeInfo)
      Always throws an InvalidStateException: No modifications allowed on a read only process task.
      Parameters:
      userData - Object containing information about the current user.
      assigneeInfo - The AssigneeInfo of who the task should be assigned to.
    • cancel

      public void cancel(IUserData userData)
      Always throws an InvalidStateException: No modifications allowed on a read only process task.
      Specified by:
      cancel in interface IProcessTask
      Overrides:
      cancel in class ProcessTaskDelegate
      Parameters:
      userData - User that aborts the execution of the task.
      Throws:
      AppException - This exception is thrown when the task could not be canceled.
    • complete

      public void complete(IUserData userData, IProcessCaseUpdates updates)
      Always throws an InvalidStateException: No modifications allowed on a read only process task.
      Parameters:
      userData - User that marks the task as completed.
      updates - Object containing updates that should be applied to the case data.
      Throws:
      AppException - This exception is thrown when the current task could not be marked as completed.
    • setTimeoutDate

      public void setTimeoutDate(IUserData userData, DateTimeValue dueDate)
      Always throws an InvalidStateException: No modifications allowed on a read only process task.
      Specified by:
      setTimeoutDate in interface IProcessTask
      Overrides:
      setTimeoutDate in class ProcessTaskDelegate
      Parameters:
      userData - Object containing information about the current user.
      dueDate - The new due date for the task.
    • setStartDate

      public void setStartDate(DateTimeValue startDate)
      Always throws an InvalidStateException: No modifications allowed on a read only process task.
      Specified by:
      setStartDate in interface IProcessTask
      Overrides:
      setStartDate in class ProcessTaskDelegate
      Parameters:
      startDate - The new start date for the task.
    • start

      public void start(IUserData userData, InferenceContext profile)
      Always throws an InvalidStateException: No modifications allowed on a read only process task.
      Parameters:
      userData - User that will start the task.
      profile - The inference context.
      Throws:
      AppException - always thrown, no modifications allowed
    • unassign

      public void unassign()
      Always throws an InvalidStateException: No modifications allowed on a read only process task.
    • evaluateAfterComplete

      public void evaluateAfterComplete(IUserData userData, String taskExit, IProcessCase processCase)
      Description copied from interface: IProcessTask
      Evaluates the case after a task has been completed
      Parameters:
      userData - user that marks the task as completed
      taskExit - the exit state of the completed task
      processCase - the case which is evaluated