Package org.activiti.rest.exception

Examples of org.activiti.rest.exception.ActivitiForbiddenException


      @RequestParam(value="deleteReason", required=false) String deleteReason, HttpServletResponse response) {
   
    Task taskToDelete = getTaskFromRequest(taskId);
    if (taskToDelete.getExecutionId() != null) {
      // Can't delete a task that is part of a process instance
      throw new ActivitiForbiddenException("Cannot delete a task that is part of a process-instance.");
    }
   
    if (cascadeHistory != null) {
      // Ignore delete-reason since the task-history (where the reason is recorded) will be deleted anyway
      taskService.deleteTask(taskToDelete.getId(), cascadeHistory);
View Full Code Here

TOP

Related Classes of org.activiti.rest.exception.ActivitiForbiddenException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.