Examples of taskId()


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

    TaskService taskService = processEngine.getTaskService();

    TaskQuery taskQuery = taskService.createTaskQuery();

    TaskInstance taskInstance=taskQuery.taskId(taskId).singleResult();
   
        

    return null;
View Full Code Here

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

    TaskInstance taskInstance = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list().get(0);
   
    String taskId = taskInstance.getId();
    taskService.setAssignee(taskId, "121231231");
    taskQuery = taskService.createTaskQuery();
    taskInstance = taskQuery.taskId(taskId).singleResult();
    //assertEquals("121231231", taskInstance.getAssignee());
  }
  /**
   * 测试查询可退回的任务
   */
 
View Full Code Here

Examples of org.activiti.engine.history.HistoricDetailQuery.taskId()

    if( historyTaskList == null || historyTaskList.isEmpty() )
      return null;
    HistoricTaskInstance historyTask = historyTaskList.get(0);
   
    HistoricDetailQuery query = historyService.createHistoricDetailQuery().formProperties();
    query.taskId( historyTask.getId() );
   
    return query.list();
  }
 
  /**
 
View Full Code Here

Examples of org.activiti.engine.history.HistoricDetailQuery.taskId()

    }
    if (queryRequest.getActivityInstanceId() != null) {
      query.activityInstanceId(queryRequest.getActivityInstanceId());
    }
    if (queryRequest.getTaskId() != null) {
      query.taskId(queryRequest.getTaskId());
    }
    if (queryRequest.getSelectOnlyFormProperties() != null) {
      if (queryRequest.getSelectOnlyFormProperties()) {
        query.formProperties();
      }
View Full Code Here

Examples of org.activiti.engine.history.HistoricTaskInstanceQuery.taskId()

  protected DataResponse getQueryResponse(HistoricTaskInstanceQueryRequest queryRequest, Map<String,String> allRequestParams, String serverRootUrl) {
    HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery();

    // Populate query based on request
    if (queryRequest.getTaskId() != null) {
      query.taskId(queryRequest.getTaskId());
    }
    if (queryRequest.getProcessInstanceId() != null) {
      query.processInstanceId(queryRequest.getProcessInstanceId());
    }
    if (queryRequest.getProcessBusinessKey() != null) {
View Full Code Here

Examples of org.activiti.engine.history.HistoricVariableInstanceQuery.taskId()

        query.excludeTaskVariables();
      }
    }
   
    if (queryRequest.getTaskId() != null) {
      query.taskId(queryRequest.getTaskId());
    }
   
    if (queryRequest.getProcessInstanceId() != null) {
      query.processInstanceId(queryRequest.getProcessInstanceId());
    }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.taskId()

  }

  public void testTaskQuery() {
    // create query
    TaskQueryImpl query = new TaskQueryImpl();
    query.taskId(testString);
    query.taskName(testString);
    query.taskNameLike(testString);
    query.taskDescription(testString);
    query.taskDescriptionLike(testString);
    query.taskPriority(testInteger);
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.taskId()

  public TaskQuery toObject(JSONObject json) {
    TaskQueryImpl query = new TaskQueryImpl();

    if (json.has(TASK_ID)) {
      query.taskId(json.getString(TASK_ID));
    }
    if (json.has(NAME)) {
      query.taskName(json.getString(NAME));
    }
    if (json.has(NAME_LIKE)) {
View Full Code Here

Examples of org.camunda.bpm.engine.impl.TaskQueryImpl.taskId()

  public TaskQuery toObject(JSONObject json) {
    TaskQueryImpl query = new TaskQueryImpl();

    if (json.has(TASK_ID)) {
      query.taskId(json.getString(TASK_ID));
    }
    if (json.has(NAME)) {
      query.taskName(json.getString(NAME));
    }
    if (json.has(NAME_LIKE)) {
View Full Code Here

Examples of org.camunda.bpm.engine.task.TaskQuery.taskId()

  private void createTaskMock() {
    Task mockTask = MockProvider.createMockTask();

    TaskQuery mockTaskQuery = mock(TaskQuery.class);
    when(mockTaskQuery.taskId(eq(MockProvider.EXAMPLE_TASK_ID))).thenReturn(mockTaskQuery);
    when(mockTaskQuery.initializeFormKeys()).thenReturn(mockTaskQuery);
    when(mockTaskQuery.singleResult()).thenReturn(mockTask);
    when(mockTaskService.createTaskQuery()).thenReturn(mockTaskQuery);
  }
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.