Package com.founder.fix.fixflow.core.task

Examples of com.founder.fix.fixflow.core.task.TaskQuery.singleResult()


    TaskQuery taskQuery = taskService.createTaskQuery();
   
    taskQuery.taskAssignee("testAddExternalTask_admin");
    taskQuery.addTaskType(TaskInstanceType.OTHERBPMTASK);

    TaskInstance taskInstanceReturn = taskQuery.singleResult();

    assertNotNull(taskInstanceReturn);

  }
View Full Code Here


    TaskQuery taskQuery = taskService.createTaskQuery();
    taskQuery.taskAssignee("testAddExternalTask_admin");
    taskQuery.addTaskType(TaskInstanceType.OTHERBPMTASK);

    TaskInstance taskInstanceReturn = taskQuery.singleResult();

    assertNotNull(taskInstanceReturn);

    /* 任务变量 */

 
View Full Code Here

    // 查询任务
    TaskQuery taskQuery = taskService.createTaskQuery();
    taskQuery.taskAssignee("testAddExternalTask_admin");
    taskQuery.addTaskType(TaskInstanceType.OTHERBPMTASK);

    TaskInstance taskInstanceReturn = taskQuery.singleResult();

    assertNotNull(taskInstanceReturn);

    // 级联删除任务信息
    taskService.deleteTask(taskInstanceReturn.getId(), true);
View Full Code Here

    // 查询任务
    TaskQuery taskQuery = taskService.createTaskQuery();
    taskQuery.taskAssignee("testAddExternalTask_admin");
    taskQuery.addTaskType(TaskInstanceType.OTHERBPMTASK);

    TaskInstance taskInstanceReturn = taskQuery.singleResult();

    assertNotNull(taskInstanceReturn);

    // 将任务处理者换为testAddExternalTask_test
    taskInstanceReturn.setAssignee("testAddExternalTask_test");
View Full Code Here

    // 再次查询任务
    taskQuery = taskService.createTaskQuery();
    taskQuery.taskAssignee("testAddExternalTask_test");
    taskQuery.addTaskType(TaskInstanceType.OTHERBPMTASK);

    taskInstanceReturn = taskQuery.singleResult();
    // 任务处理者的确被更新了
    assertNotNull(taskInstanceReturn);
  }

  /**
 
View Full Code Here

    TaskQuery taskQuery = taskService.createTaskQuery();
    // 查询候选任务
    taskQuery.taskCandidateUser("testAddExternalTask_admin");
    taskQuery.addTaskType(TaskInstanceType.OTHERBPMTASK);

    TaskInstance taskInstanceReturn = taskQuery.singleResult();

    assertNotNull(taskInstanceReturn);

  }
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.