diff --git a/camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaProcessAutodeployment.java b/camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaProcessAutodeployment.java index f9c2cdd..b1f4a6b 100644 --- a/camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaProcessAutodeployment.java +++ b/camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaProcessAutodeployment.java @@ -17,6 +17,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.UUID; /** * Auto deploys all Camunda resources found on classpath during startup of the application @@ -61,8 +62,7 @@ public void deployCamundaResources() throws IOException, ApiException { resourcesToDeploy.addAll(Arrays.asList( patternResolver.getResources(formResourcesPattern) )); for (Resource camundaResource: resourcesToDeploy) { - //ResourceUtils.getFile(camundaResource.getURI()); - final File tempFile = File.createTempFile(camundaResource.getFilename(), ".tmp"); + final File tempFile = File.createTempFile(UUID.randomUUID().toString(), ".tmp"); tempFile.deleteOnExit(); try (FileOutputStream out = new FileOutputStream(tempFile)) { IOUtils.copy(camundaResource.getInputStream(), out);