# External Task using java Spring

**URL:** <https://forum.camunda.io/t/external-task-using-java-spring/53686>\
**Category:** Camunda 7 Topics\
**Created:** [July 15, 2024, 7:32am UTC](https://forum.camunda.io/t/external-task-using-java-spring/53686 "2024-07-15T07:32:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoebsayyed118](https://forum.camunda.io/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@shoebsayyed118](https://forum.camunda.io/u/shoebsayyed118)\
**Post date:** [July 15, 2024, 7:32am UTC](https://forum.camunda.io/t/external-task-using-java-spring/53686/1 "2024-07-15T07:32:02Z")

</div>

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  
 ![image](https://forum.camunda.io/uploads/default/original/3X/5/1/513d35d019b03de2d54f722acba4f2b6d7397dd3.png)

java file

 ![image](https://forum.camunda.io/uploads/default/original/3X/3/6/36567d0dad4b5023d31ccbfd52b725732e6e9a7b.png)

BPMN

 ![image](https://forum.camunda.io/uploads/default/original/3X/0/7/07230b0af6016a56af63f602eef30f75c71e802c.png)

Regards,  
Shoeb Sayyed

---

<div class="post-metadata">

**Author:** ![mimaom](https://forum.camunda.io/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@mimaom](https://forum.camunda.io/u/mimaom)\
**Post date:** [July 15, 2024, 9:39am UTC](https://forum.camunda.io/t/external-task-using-java-spring/53686/2 "2024-07-15T09:39:42Z")

</div>

Hi @shoebsayyed118

Everything look right. Any errors in the console log?  
Could you post your pom.xml?

BR  
Michael

---

<div class="post-metadata">

**Author:** ![shoebsayyed118](https://forum.camunda.io/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@shoebsayyed118](https://forum.camunda.io/u/shoebsayyed118)\
**Post date:** [July 15, 2024, 9:51am UTC](https://forum.camunda.io/t/external-task-using-java-spring/53686/3 "2024-07-15T09:51:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mimaom](https://forum.camunda.io/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@mimaom](https://forum.camunda.io/u/mimaom)\
**Post date:** [July 15, 2024, 11:37am UTC](https://forum.camunda.io/t/external-task-using-java-spring/53686/4 "2024-07-15T11:37:25Z")

</div>

Hi @shoebsayyed118

Could you repost your pom - something is wrong with the formatting.

Could you also try to change the version of the dependency:

```auto
camunda-bpm-spring-boot-starter-external-task-client

```

To use the same version as your main Camunda BOM (7.21.0)

BR  
Michael

---

<div class="post-metadata">

**Author:** ![shoebsayyed118](https://forum.camunda.io/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@shoebsayyed118](https://forum.camunda.io/u/shoebsayyed118)\
**Post date:** [July 15, 2024, 1:06pm UTC](https://forum.camunda.io/t/external-task-using-java-spring/53686/5 "2024-07-15T13:06:44Z")

</div>

Hello @mimaom here is the file

```auto
<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>

```

---

<div class="post-metadata">

**Author:** ![mimaom](https://forum.camunda.io/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@mimaom](https://forum.camunda.io/u/mimaom)\
**Post date:** [July 15, 2024, 1:34pm UTC](https://forum.camunda.io/t/external-task-using-java-spring/53686/6 "2024-07-15T13:34:38Z")

</div>

Hi @shoebsayyed118

Please change the external task client dependency to this (changed version 7.21.0) and give that a try:

```auto
<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

---

<div class="post-metadata">

**Author:** ![shoebsayyed118](https://forum.camunda.io/letter_avatar_proxy/v4/letter/s/ce7236/32.png) [@shoebsayyed118](https://forum.camunda.io/u/shoebsayyed118)\
**Post date:** [July 15, 2024, 1:39pm UTC](https://forum.camunda.io/t/external-task-using-java-spring/53686/7 "2024-07-15T13:39:38Z")

</div>

thanks it working

Regards,  
Shoeb

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [July 22, 2024, 1:39pm UTC](https://forum.camunda.io/t/external-task-using-java-spring/53686/8 "2024-07-22T13:39:38Z")

</div>

Closed on July 22, 2024, 1:39pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
