use of cern.modesti.workflow.task.TaskInfo in project modesti by jlsalmon.
the class CoreWorkflowServiceTest method assertTaskNameAndRequestStatus.
/**
* @param requestId
* @param taskName
* @param status
*/
private void assertTaskNameAndRequestStatus(String requestId, String taskName, String status) {
if (taskName != null) {
TaskInfo task = taskService.getTask(requestId, taskName);
assertEquals(taskName, task.getName());
}
Request request = requestRepository.findOneByRequestId(requestId);
assertEquals(status, request.getStatus());
}
use of cern.modesti.workflow.task.TaskInfo in project modesti by jlsalmon.
the class CoreWorkflowServiceTest method claimCurrentTask.
/**
* @param requestId
* @param taskName
* @param user
*/
private void claimCurrentTask(String requestId, String taskName, User user) {
TaskInfo task = taskService.getTask(requestId, taskName);
taskService.execute(requestId, task.getName(), new TaskAction(ASSIGN, user.getUsername()), user);
}
use of cern.modesti.workflow.task.TaskInfo in project modesti by jlsalmon.
the class CoreWorkflowServiceTest method completeCurrentTask.
/**
* @param requestId
* @param taskName
* @param user
*/
private void completeCurrentTask(String requestId, String taskName, User user) {
TaskInfo task = taskService.getTask(requestId, taskName);
taskService.execute(requestId, task.getName(), new TaskAction(COMPLETE, user.getUsername()), user);
}
use of cern.modesti.workflow.task.TaskInfo in project modesti by jlsalmon.
the class BaseIntegrationTest method assertTaskNameAndRequestStatus.
public void assertTaskNameAndRequestStatus(String requestId, String taskName, String status) {
TaskInfo task = taskService.getActiveTask(requestId);
assertNotNull(task);
assertEquals(taskName, task.getName());
Request request = requestService.findOneByRequestId(requestId);
assertEquals(status, request.getStatus());
}
use of cern.modesti.workflow.task.TaskInfo in project modesti by jlsalmon.
the class BaseIntegrationTest method assertTaskNameAndRequestStatus.
public void assertTaskNameAndRequestStatus(String requestId, String taskName, String status) {
TaskInfo task = taskService.getActiveTask(requestId);
assertNotNull(task);
assertEquals(taskName, task.getName());
Request request = requestService.findOneByRequestId(requestId);
assertEquals(status, request.getStatus());
}
Aggregations