Lock Service Task

Helle every one,
I have built a spring boot with camunda application, I have used multiple ports to run with the same camunda config. I want when a service task executes, other service tasks listening to the same topic will not execute anything with the same process instance id. I have the configuration “camunda.bpm.client.lock-duration=100” but it has a problem: service task with the same topic name on 2 ports also handles the same task but when it is completed, 1 service task will report being locked. This causes my service task to process twice the work. I hope that when the service task on this port is processed, the other service task with the same topic name will not do anything.

Hello my friend!

Would you like to show us your flow modeling, please, so I can try to understand it better and help you?

William Robert Alves