use of cern.modesti.workflow.task.TaskAction 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.TaskAction 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.TaskAction in project modesti by jlsalmon.
the class BaseIntegrationTest method doAction.
public void doAction(String requestId, TaskInfo task, TaskAction.Action action) {
assertNotNull(task);
User user = userService.getCurrentUser();
taskService.execute(requestId, task.getName(), new TaskAction(action, user.getUsername()), user);
}
use of cern.modesti.workflow.task.TaskAction in project modesti by jlsalmon.
the class BaseIntegrationTest method doAction.
public void doAction(String requestId, TaskInfo task, TaskAction.Action action) {
assertNotNull(task);
User user = userService.getCurrentUser();
taskService.execute(requestId, task.getName(), new TaskAction(action, user.getUsername()), user);
}
Aggregations