Hello,
I am trying to use External task implementation using Springboot but the issue that I am facing is the file is not getting executed when reached at the external task.
Can some one please help me in this.
application.ymal
java file
BPMN
Regards,
Shoeb Sayyed
mimaom
July 15, 2024, 9:39am
2
Hi @shoebsayyed118
Everything look right. Any errors in the console log?
Could you post your pom.xml?
BR
Michael
Hello @mimaom ,
No error on console
here is pom file
4.0.0
com.AllanaInventory.OrderManagment
AllanaInventory
1.0.0-SNAPSHOT
UTF-8
17
17
org.springframework.boot
spring-boot-dependencies
3.2.2
pom
import
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bom</artifactId>
<version>7.21.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
org.camunda.bpm.springboot
camunda-bpm-spring-boot-starter-rest
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-external-task-client</artifactId>
<version>7.16.0</version>
</dependency>
org.springframework.boot
spring-boot-maven-plugin
3.2.2
mimaom
July 15, 2024, 11:37am
4
Hi @shoebsayyed118
Could you repost your pom - something is wrong with the formatting.
Could you also try to change the version of the dependency:
camunda-bpm-spring-boot-starter-external-task-client
To use the same version as your main Camunda BOM (7.21.0)
BR
Michael
Hello @mimaom here is the file
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.AllanaInventory.OrderManagment</groupId>
<artifactId>AllanaInventory</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>3.2.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bom</artifactId>
<version>7.21.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-external-task-client</artifactId>
<version>7.16.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>3.2.2</version>
</plugin>
</plugins>
</build>
</project>
mimaom
July 15, 2024, 1:34pm
6
Hi @shoebsayyed118
Please change the external task client dependency to this (changed version 7.21.0) and give that a try:
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-external-task-client</artifactId>
<version>7.21.0</version>
</dependency>
BR
Michael
system
Closed
July 22, 2024, 1:39pm
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.