Hello.
The problem has appeared after upgrading the version from 3.2.0 to 3.3.0
All of my integration unit tests are configured as follows:
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = DeliveryBpmApplication.class,
webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT,
properties = {
"camunda.bpm.generate-unique-process-engine-name=true",
"camunda.bpm.generate-unique-process-application-name=true",
"spring.datasource.generate-unique-name=true"
})
@ActiveProfiles("test")
@DirtiesContext
One of them had the following code which worked in version 3.2.0:
repositoryService.createProcessDefinitionQuery()
.processDefinitionKey("delivery_work_flow").singleResult()
But after updating, it stopped working.
As it turned out, a process definition is generated for each test in the new version. I have solved the problem as follows:
repositoryService.createProcessDefinitionQuery()
.processDefinitionKey("delivery_work_flow").latestVersion().singleResult()
Why did the previous logic stop working? Maybe additional settings are missing? The documentation for updating the version does not say anything about this ((