Package com.founder.fix.fixflow.core.model

Examples of com.founder.fix.fixflow.core.model.DeploymentBuilder.deploy()


  public void testGetFlowGraphicsElementPosition(){
    DeploymentBuilder deploymentBuilder = modelService.createDeployment().name("测试名称");
    //添加你要发布的定义
    deploymentBuilder.addClasspathResource("com/founder/fix/fixflow/test/engine/api/task/TaskServiceTest.bpmn");
    //发布
    String deploymentIdTemp = deploymentBuilder.deploy().getId();
    //验证是否发布成功
    assertNotNull(deploymentIdTemp);
    //定义一个流程定义查询
    ProcessDefinitionQuery processDefinitionQuery=modelService.createProcessDefinitionQuery();
    //查询刚发布的流程定义
View Full Code Here


  public void testGetStartProcessByUserId() {

    DeploymentBuilder deploymentBuilder = processEngine.getModelService().createDeployment().name("测试名称");
    //添加你要发布的定义
    deploymentBuilder.addClasspathResource("com/founder/fix/fixflow/test/engine/api/model/startProcessByUser.bpmn");
    String deploymentIdTemp = deploymentBuilder.deploy().getId();
    assertNotNull(deploymentIdTemp);
    //重置下流程发布,发布下一个流程
    DeploymentBuilder deploymentBuilder2 = processEngine.getModelService().createDeployment().name("测试发布");
    deploymentBuilder2.addClasspathResource("com/founder/fix/fixflow/test/engine/api/model/StartProcessInstanceTest.bpmn");
    //发布
View Full Code Here

    assertNotNull(deploymentIdTemp);
    //重置下流程发布,发布下一个流程
    DeploymentBuilder deploymentBuilder2 = processEngine.getModelService().createDeployment().name("测试发布");
    deploymentBuilder2.addClasspathResource("com/founder/fix/fixflow/test/engine/api/model/StartProcessInstanceTest.bpmn");
    //发布
    deploymentIdTemp = deploymentBuilder2.deploy().getId();
    assertNotNull(deploymentIdTemp);
   
    //取到用户可以启动的流程列表
    List<Map<String,String>> processList = modelService.getStartProcessByUserId("10691103");
    //判断含有startProcessByUser
View Full Code Here

    DeploymentBuilder deploymentBuilder = processEngine.getModelService().createDeployment().name("测试名称");
    //获取zip文件的inputStream流
    InputStream inputStream = ReflectUtil.getResourceAsStream("com/founder/fix/fixflow/test/engine/api/model/Process_TaskServiceTest.zip");
    //发布流程定义
    deploymentBuilder.addZipInputStream(new ZipInputStream(inputStream));
    String deploymentId = deploymentBuilder.deploy().getId();
    //验证是否发布成功
    assertNotNull(deploymentId);
    //创建流程定义查询
    ProcessDefinitionQuery processDefinitionQuery = modelService.createProcessDefinitionQuery();
    //查询刚发布的流程定义
View Full Code Here

    DeploymentBuilder deploymentBuilder = processEngine.getModelService().createDeployment().name("测试名称");
    //获取zip文件的inputStream流
    InputStream inputStream = ReflectUtil.getResourceAsStream("com/founder/fix/fixflow/test/engine/api/model/Process_TaskServiceTest.zip");
    //发布流程定义
    deploymentBuilder.addZipInputStream(new ZipInputStream(inputStream));
    String deploymentId = deploymentBuilder.deploy().getId();
    //验证是否发布成功
    assertNotNull(deploymentId);
    //创建流程定义查询
    ProcessDefinitionQuery processDefinitionQuery = modelService.createProcessDefinitionQuery();
    //查询刚发布的流程定义
View Full Code Here

    DeploymentBuilder deploymentBuilder = processEngine.getModelService().createDeployment().name("测试名称");
    //获取zip文件的inputStream流
    InputStream inputStream = ReflectUtil.getResourceAsStream("com/founder/fix/fixflow/test/engine/api/model/Process_TaskServiceTest.zip");
    //发布流程定义
    deploymentBuilder.addZipInputStream(new ZipInputStream(inputStream));
    String deploymentId = deploymentBuilder.deploy().getId();
    //验证是否发布成功
    assertNotNull(deploymentId);
    //创建流程定义查询
    ProcessDefinitionQuery processDefinitionQuery = modelService.createProcessDefinitionQuery();
    //查询刚发布的流程定义
View Full Code Here

    //发布流程定义
    deploymentBuilder.addZipInputStream(new ZipInputStream(inputStream));
    //设置需要更新的发布号
    deploymentBuilder.updateDeploymentId(deployId);
    //更新流程定义
    deploymentId = deploymentBuilder.deploy().getId();
    //重置流程定义查询
    processDefinitionQuery = modelService.createProcessDefinitionQuery();
    //查询刚发布的流程定义
    processDefinitionQuery.processDefinitionKey("Process_TaskServiceTest");
    //获取查询到的流程定义
View Full Code Here

  public void testCallActivity() {
    DeploymentBuilder deploymentBuilder = processEngine.getModelService().createDeployment().name("测试名称");
    //添加你要发布的定义
    deploymentBuilder.addClasspathResource("com/founder/fix/fixflow/test/bpmn/callactivity/CallActivityTest.bpmn");
    String deploymentIdTemp = deploymentBuilder.deploy().getId();
    assertNotNull(deploymentIdTemp);
    //重置下流程发布,发布下一个流程
    DeploymentBuilder deploymentBuilder2 = processEngine.getModelService().createDeployment().name("测试发布");
    deploymentBuilder2.addClasspathResource("com/founder/fix/fixflow/test/bpmn/subprocess/SubProcessTest.bpmn");
    //发布
View Full Code Here

    assertNotNull(deploymentIdTemp);
    //重置下流程发布,发布下一个流程
    DeploymentBuilder deploymentBuilder2 = processEngine.getModelService().createDeployment().name("测试发布");
    deploymentBuilder2.addClasspathResource("com/founder/fix/fixflow/test/bpmn/subprocess/SubProcessTest.bpmn");
    //发布
    deploymentIdTemp = deploymentBuilder2.deploy().getId();
    assertNotNull(deploymentIdTemp);
   
    // 启动测试流程
    // 创建一个启动并提交命令
    ExpandTaskCommand expandTaskCommand = new ExpandTaskCommand();
View Full Code Here

      for (String resource : resources) {
        deploymentBuilder.addClasspathResource(resource);
      }

      deploymentId = deploymentBuilder.deploy().getId();

      // connection.close();
      // processEngine.contextClose();
    }
    return deploymentId;
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.