Prevent camunda process instances running same delegate concurrently

My understanding is that you run it in a different program (though there’s nothing saying you can’t run it in a distinct thread).

You write it like a while-true loop…
It looks for tasks to be done (fetch tasks on topic BigRESTQuery), locks the first one, does the work, sends the work to Camunda, then loops.
If there’s nothing to be done, it sleeps for a bit, then loops.

You’ll want to code a Java program that does something like: