Package com.founder.fix.fixflow.core.runtime

Examples of com.founder.fix.fixflow.core.runtime.ProcessInstanceQuery.singleResult()


    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询刚才暂停的流程实例
    processInstanceQuery.processInstanceId(processInstanceId);
    //获取流程实例
    processInstance = processInstanceQuery.singleResult();
    //验证流程实例已经暂停
    assertTrue(processInstance.isSuspended());
   
    //恢复流程实例
    runtimeService.continueProcessInstance(processInstanceId);
View Full Code Here


    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询刚才的流程实例
    processInstanceQuery.processInstanceId(processInstanceId);
    //获取流程实例
    processInstance = processInstanceQuery.singleResult();
    //验证不是暂停状态
    assertFalse(processInstance.isSuspended());
  }
 
  /**
 
View Full Code Here

    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询刚才暂停的流程实例
    processInstanceQuery.processInstanceId(processInstanceId);
    //获取流程实例
    processInstance = processInstanceQuery.singleResult();
    //验证流程实例为终止状态
    assertEquals(ProcessInstanceType.TERMINATION, processInstance.getInstanceType());
  }
}
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.