Hi
I am using multiple external task clients as below:
client.subscribe(“ingestion”).lockDuration(10000).handler((externalTask, externalTaskService) -> {
/* some work */
System.out.println(“printing from my external task—”);
System.out.println(“The External Task Ingestion” + externalTask.getId() + " waiting to be completed!");
}).open();
Here, as you can see, the topic name, ingestion is hard coded, and it should be same as the one entered in the bpmn.
I am wondering is there any way to decouple this? Since we are dealing with dynamic workflows, we don’t know in advance what topics the user will use. So hard coding is not an option.
Any suggestions is highly appreciated.