Executing Camel task through Flowable Task

Hey Brian,

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

<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 documentation.

In case you don’t want to use the Camel Starter (I highly recommend that you do :smile:). You can use the Camel Spring Java Config:

<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