camunda-community-hub / camunda-platform-7-camel

Community Extension to add Apache Camel support for Camunda Platform 7
Apache License 2.0
82 stars 57 forks source link

"No such external task" for some async routes #38

Closed stephanpelikan closed 6 years ago

stephanpelikan commented 6 years ago

Using the attribute "async=true" on "poll-externalTasks" routes and resolve the task in the same route gives the error mentioned in the subject.

Example route:

        from("camunda-bpm:poll-externalTasks"
                + "?topic=LongRunningTask"
                + "&async=true"
                + "&lockDuration=6h"
                + "&scheduler=#LongRunningScheduler")
            .threads()
            .bean(LongRunningTask.class.getSimpleName(), "doIt")
            .to("camunda-bpm://async-externalTask");