550551552553554555556557558559560
.deploy() .getId(); ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery(); query .processDefinitionNameLike("%Test Process") .latestVersion(); verifyQueryResults(query, 1);
561562563564565566567568569570571
ProcessDefinition result = query.singleResult(); assertEquals("Second Test Process", result.getName()); assertEquals(2, result.getVersion()); query .processDefinitionNameLike("%Test%") .latestVersion(); verifyQueryResults(query, 1);
572573574575576577578579580581582
result = query.singleResult(); assertEquals("Second Test Process", result.getName()); assertEquals(2, result.getVersion()); query .processDefinitionNameLike("Second%") .latestVersion(); result = query.singleResult();
600601602603604605606607608609610
.deploy() .getId(); ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery(); query .processDefinitionNameLike("First%") .latestVersion(); verifyQueryResults(query, 0);