Hi
I’ve created a simple DMN File.txt (1.6 KB) and wanted to deploy it using the repositoryService
public Map<String,String> upload( MultipartFile file, RepositoryService repositoryService ) {
boolean successful = super.check(file, FILE_EXTENSION);
if(successful) {
try {
// convert multipartfile into java.io.file
File convertedFile = super.convert(file);
String fileName = convFile.getName();Deployment d = repositoryService.createDeployment() .addInputStream(fileName,new FileInputStream(convFile)) .name(fileName) .deploy(); ...
But calling the deploy results in an Deployment Execption.txt (3.8 KB)
What does “java.lang.NoSuchMethodError: org.camunda.bpm.model.dmn.instance.Decision.getCamundaHistoryTimeToLive()” mean?
I’m using Spring Boot and Camunda 7.7.0. In my POM I have the following settings:
> <dependency>
> <groupId>org.camunda.bpm.extension.springboot</groupId>
> <artifactId>camunda-bpm-spring-boot-starter</artifactId>
> <version>2.1.2</version>
> </dependency>
> <dependency>
> <groupId>org.camunda.bpm</groupId>
> <artifactId>camunda-engine-spring</artifactId>
> <version>${camunda.version}</version>
> </dependency>
> <dependency>
> <groupId>org.camunda.bpm.extension.dmn</groupId>
> <artifactId>dmn-xlsx-converter</artifactId>
> <version>0.1.1</version>
> </dependency>
I added also a screenshot of my Eclipse environment
There you can see that in class org.camunda.bpm.engine.impl.dmn.transformer.DecisionDefinitionHandler the method createFromDecision is executed, but the decision parameter does not provide the required methodgetCamundaHistoryTimeToLive which will than result in an exception.
Here’s a second screenshot
Please have a look into class DefaultDmnTransform. As you can see in the Stacktrace, method transformIndividualDecisions is called where the “dDcision” objects are transferred into “DmnDecisionImpl” objects which do not offer an getCamundaHistoryTimeToLive() method
Best regards, Roland