There are three concurrent service tasks in my XML and each of them have a topic , I want to subscribe multiple and dynamic topic with camunda-external-task-client-js . Here is my js code :
_.forEach(body, (topic) => {
let topicName = topic.topicName;
//I have configure client
client.subscribe(topicName, async function ({
task,
taskService
}) { //my business logic in this topic(service task) })
})
By this way I want to finish three concurrent service task by js , but it’s not work because of some headache of asynchronous problem . So would you like to give me some suggestions for it ? Really thank you for your kindly help ~