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

Examples of com.founder.fix.fixflow.core.model.DeploymentBuilder


  /**
   * 测试流程定义查询
   */
  public void testProcessDefinitionQuery(){
    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");
    //发布
    deploymentIdTemp = deploymentBuilder2.deploy().getId();
    assertNotNull(deploymentIdTemp);
   
    //创建流程定义查询
    ProcessDefinitionQuery processDefinitionQuery = modelService.createProcessDefinitionQuery();
    //查询发布号为deploymentIdTemp的流程定义
View Full Code Here


  /**
   * 测试流程定义发布
   */
  public void testDeployProcessDefinition() {

    DeploymentBuilder deploymentBuilder = processEngine.getModelService().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();
    //查询上面发布的流程
    processDefinitionQuery.processDefinitionKey("Process_TaskServiceTest");
View Full Code Here

  /**
   * 测试删除流程删除定义部署
   */
  public void testDeleteDeployment() {

    DeploymentBuilder deploymentBuilder = processEngine.getModelService().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();
    //查询上面发布的流程定义
    processDefinitionQuery.processDefinitionKey("Process_TaskServiceTest");
View Full Code Here

  }
  /**
   * 测试检索一个指定的定义部署清单资源---方法未实现
   */
  public void testGetDeploymentResourceNames(){
    DeploymentBuilder deploymentBuilder = processEngine.getModelService().createDeployment().name("测试名称");
    //添加你要发布的定义
    deploymentBuilder.addClasspathResource("com/founder/fix/fixflow/test/engine/api/task/TaskServiceTest.bpmn");
    //发布
    String deploymentIdTemp = deploymentBuilder.deploy().getId();
    assertNotNull(deploymentIdTemp);
    List<String> list = modelService.getDeploymentResourceNames(deploymentIdTemp);
    //System.out.println(list.size()+"***************");
  }
 
View Full Code Here

  /**
   * 获取流程图SVG格式
   */
  public void testGetFlowGraphicsSvg() {

    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();
    //查询刚刚发布的流程定义
    processDefinitionQuery.processDefinitionKey("Process_TaskServiceTest");
View Full Code Here

  }
  /**
   * 获取流程的默认表单
   */
  public void testGetDefaultFormUri(){
    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();
    //查询Process_TaskServiceTest的流程定义
    processDefinitionQuery.processDefinitionKey("Process_TaskServiceTest");
View Full Code Here

  }
  /**
   * 获取流程图IMG路径
   */
  public void testGetFlowGraphicsImgPath(){
    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 testGetResourceAsStream(){
    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 testGetProcessDefinition(){
    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 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

TOP

Related Classes of com.founder.fix.fixflow.core.model.DeploymentBuilder

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.