/**
* 测试流程定义查询
*/
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的流程定义