# Executing Camel task through Flowable Task

**URL:** <https://forum.flowable.org/t/executing-camel-task-through-flowable-task/2663>\
**Category:** Flowable Application\
**Created:** [October 2, 2018, 10:26am UTC](https://forum.flowable.org/t/executing-camel-task-through-flowable-task/2663 "2018-10-02T10:26:15Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [February 15, 2019, 9:10am UTC](https://forum.flowable.org/t/executing-camel-task-through-flowable-task/2663/6 "2019-02-15T09:10:00Z")

</div>

Hey Brian,

The easiest way to do this with Spring Boot is to add the Spring Boot Starter from Camel:

```auto
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring-boot-starter</artifactId>
    <version>2.23.0</version>
</dependency>

```

2.23.0 is the version that Flowable uses, so I would suggest to stick with this one.

You then need to define your routes as Spring `@Component` that extend from `RouteBuilder`. The routes need to be next to the `FlowableTaskApplication` (otherwise they won’t be automatically picked up). See also the [Camel Spring Boot](http://camel.apache.org/spring-boot.html) documentation.

In case you don’t want to use the Camel Starter (I highly recommend that you do 😄). You can use the [Camel Spring Java Config](http://camel.apache.org/spring-java-config.html):

```auto
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring-javaconfig</artifactId>
    <version>2.23.0</version>
</dependency>

```

Then you will need a Spring `@Configuration` that would extend from `CamelConfiguration` and you can will need to configure the routes via that.

Cheers,  
Filip

---

_[View the full topic](https://forum.flowable.org/t/executing-camel-task-through-flowable-task/2663)._
