Package org.activiti.engine.task

Examples of org.activiti.engine.task.TaskQuery.taskName()


   
    TaskQuery taskQuery = taskService.createTaskQuery();
   
    // Populate filter-parameters
    if (request.getName() != null) {
      taskQuery.taskName(request.getName());
    }
    if (request.getNameLike() != null) {
      taskQuery.taskNameLike(request.getNameLike());
    }
    if (request.getDescription() != null) {
View Full Code Here


        TaskQuery q = getProcessEngine().getTaskService().createTaskQuery().processInstanceId(pi.getInternalId());
        if (userLogin != null)
            q = q.taskAssignee(userLogin);
        if (taskNames != null && !taskNames.isEmpty())  //TODO what if more than 1 task name is supplied
            q = q.taskName(taskNames.iterator().next());
        List<Task> tasks = q.listPage(0, 1000);

       return collectTasks(tasks, pi, ctx);

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.