I am trying to deploy DmnModelInstance and get deployment Id using Spring Boot. Camunda Engine running in separate port. I am not using embedded Camunda Engine. I had attached the code below.
@Service
public class DMNService {
@Autowired
GenerateJSON generateJSON;
@Qualifier(“remote”)
private RuntimeService runtimeService;
@Qualifier(“remote”)
private RepositoryService repositoryService;public String deployDMN() { System.out.println("Inside deployDMN :: "); DmnModelInstance dmnModelInstance = GenerateXML.createXML(generateJSON.createJSON()); String id = repositoryService.createDeployment().addModelInstance("Dish.dmn", dmnModelInstance).deployWithResult().getId(); System.out.println("ID : " + id); return id; }
}
This is my configuration file
@Configuration @EnableCamundaRestClient public class MyClientConfiguration { /** * Full debug of feign client, including request/response */ @Bean public feign.Logger.Level feignLoggerLevel() { return Logger.Level.FULL; } }
This is my application.yml file
feign: client: config: remoteRuntimeService: url: "http://localhost:8080/engine-rest/engine/default/" remoteRepositoryService: url: "http://localhost:8080/engine-rest/engine/default/" logging: level: org.camunda.bpm.extension.rest.client.RuntimeServiceClient: DEBUG org.camunda.bpm.extension.rest.client.RepositoryServiceClient: DEBUG
I am getting the below Exception
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘remoteRepositoryService’ defined in URL [jar:file:/home/subash/.m2/repository/org/camunda/bpm/extension/rest/camunda-rest-client-spring-boot/0.0.3/camunda-rest-client-spring-boot-0.0.3.jar!/org/camunda/bpm/extension/rest/impl/RemoteRepositoryService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.camunda.bpm.extension.rest.client.RepositoryServiceClient’: FactoryBean threw exception on object creation; nested exception is java.lang.NoClassDefFoundError: org/camunda/bpm/engine/rest/dto/repository/ProcessDefinitionQueryDto
I don’t know what I am missing in configuration file. Can any one help me?