External task - alternatives of Polling?


Hi team,

Is it possible to use any pattern other than polling? External task Pattern

Some Ideas:

  1. Apache Kafka topic?
  2. CloudEvent
  3. AMQP Message


How would you imagine this architecture working?
Can you explain the steps you’ve like to see happen?


External Kafka task Definition
At the time of defining BPMN execution model, implementation team defines destination Kafka connection Reference properties.

During execution, when BPMN engine encounters External task with Kafka topic connection, it publishes topic using producer.send.

When task is completed by external worker, it can use regular /task/complete REST API.


So this can best be done using the existing external task pattern.
With the external task posting pushing the topic to kafka and then completing when it decided the service completed successfully.