Package com.itedge.infrastructure.web.dto

Examples of com.itedge.infrastructure.web.dto.TaskAvailabilityResponse


    taskService.completeTask(taskId, linkedObject, taskData, ContextUtil.getLoggedUsername());
  }

  @Override
  public TaskAvailabilityResponse requestTaskAvailabilityAndLockTask(String taskId, String lockedBy, Locale locale) {
    TaskAvailabilityResponse response = new TaskAvailabilityResponse();
    // check if task is available
    if (processService.getTaskById(taskId) != null) {
      // lock associated
      response.setAvailable(taskDataService.lock(taskId, lockedBy));     
    } else {
      response.setAvailable(false);
      response.setMessage(messageSource.getMessage(InfrastructureConstants.TASK_LOCKED_OR_COMPLETED,
          null, InfrastructureConstants.UNDEFINED_MESSAGE, locale));
    }
    return response;
  }
View Full Code Here


    return response;
  }
 
  @Override
  public TaskAvailabilityResponse requestTaskAvailability(String taskId, Locale locale) {
    TaskAvailabilityResponse response = new TaskAvailabilityResponse();
    // check if task is available
    if (processService.getTaskById(taskId) != null) {
      response.setAvailable(true);
    } else {
      response.setAvailable(false);
      response.setMessage(messageSource.getMessage(InfrastructureConstants.TASK_LOCKED_OR_COMPLETED,
          null, InfrastructureConstants.UNDEFINED_MESSAGE, locale));
    }
    return response;
  }
View Full Code Here

TOP

Related Classes of com.itedge.infrastructure.web.dto.TaskAvailabilityResponse

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.