Package com.founder.fix.fixflow.core.impl.command

Examples of com.founder.fix.fixflow.core.impl.command.StartProcessInstanceCommand


   * 测试增加流程实例持久化变量map
   */
  @Deployment(resources = { "com/founder/fix/fixflow/test/engine/api/runtime/StartProcessInstanceTest.bpmn" })
  public void testSetAndGetProcessInstanceVariables(){
    //创建一个启动命令
    StartProcessInstanceCommand startProcessInstanceCommand = new StartProcessInstanceCommand();
    //设置需要启动的流程的KEY
    startProcessInstanceCommand.setProcessDefinitionKey("Process_StartProcessInstanceTest");
    //设置业务关联键
    startProcessInstanceCommand.setBusinessKey("bk_StartProcessInstanceTest");
    //设置流程的启动人
    startProcessInstanceCommand.setStartAuthor("1200119390");
    //启动流程,返回流程实例
    ProcessInstance processInstance = runtimeService.noneStartProcessInstance(startProcessInstanceCommand);
    //验证流程是否启动成功
    assertNotNull(processInstance);
   
View Full Code Here


   * 测试管理员暂停和恢复流程实例
   */
  @Deployment(resources = { "com/founder/fix/fixflow/test/engine/api/runtime/StartProcessInstanceTest.bpmn" })
  public void testSuspendAndContinueProces(){
    //创建一个启动命令
    StartProcessInstanceCommand startProcessInstanceCommand = new StartProcessInstanceCommand();
    //设置需要启动的流程的KEY
    startProcessInstanceCommand.setProcessDefinitionKey("Process_StartProcessInstanceTest");
    //设置业务关联键
    startProcessInstanceCommand.setBusinessKey("bk_StartProcessInstanceTest");
    //设置流程的启动人
    startProcessInstanceCommand.setStartAuthor("1200119390");
    //启动流程,返回流程实例
    ProcessInstance processInstance = runtimeService.noneStartProcessInstance(startProcessInstanceCommand);
    //验证流程是否启动成功
    assertNotNull(processInstance);
   
View Full Code Here

   * 测试管理员暂停和恢复流程实例
   */
  @Deployment(resources = { "com/founder/fix/fixflow/test/engine/api/runtime/StartProcessInstanceTest.bpmn" })
  public void testTerminatProcessInstance(){
    //创建一个启动命令
    StartProcessInstanceCommand startProcessInstanceCommand = new StartProcessInstanceCommand();
    //设置需要启动的流程的KEY
    startProcessInstanceCommand.setProcessDefinitionKey("Process_StartProcessInstanceTest");
    //设置业务关联键
    startProcessInstanceCommand.setBusinessKey("bk_StartProcessInstanceTest");
    //设置流程的启动人
    startProcessInstanceCommand.setStartAuthor("1200119390");
    //启动流程,返回流程实例
    ProcessInstance processInstance = runtimeService.noneStartProcessInstance(startProcessInstanceCommand);
    //验证流程是否启动成功
    assertNotNull(processInstance);
   
View Full Code Here

    externalContent.setConnection(connection);
    processEngine.setExternalContent(externalContent);

    //RuntimeService runtimeService = processEngine.getRuntimeService();

    StartProcessInstanceCommand startProcessInstanceCommand = new StartProcessInstanceCommand();
    startProcessInstanceCommand.setProcessDefinitionKey("Process_101");
    startProcessInstanceCommand.setBusinessKey("1234567890");
    startProcessInstanceCommand.setStartAuthor("1200119390");
    //ProcessInstanceQueryTo processInstance = runtimeService.startProcessInstanceByKey(startProcessInstanceCommand);

   
   
    try {
View Full Code Here

   */
  @Deployment(resources = { "com/founder/fix/fixflow/test/engine/api/task/TaskServiceNewTest.bpmn"})
  public void testSubmit(){
   
    //启动流程命令
    StartProcessInstanceCommand startProcessInstanceCommand = new StartProcessInstanceCommand();
    //设置流程编号
    startProcessInstanceCommand.setProcessDefinitionKey("TaskServiceNewTest");
    //设置业务关联键
    startProcessInstanceCommand.setBusinessKey("BK_testStartProcessInstanceByKey");
    //设置流程启动人
    startProcessInstanceCommand.setStartAuthor("1200119390");
    //启动流程,只启动流程 ,流程停在第一步
    ProcessInstance processInstanceQueryTo = runtimeService
        .noneStartProcessInstance(startProcessInstanceCommand);
    String processInstanceId = processInstanceQueryTo.getId();
    //验证是否成功启动
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.command.StartProcessInstanceCommand

Copyright © 2018 www.massapicom. 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.