I have a service task that invoke JobWorker A. In JobWorker A, can I invoke JobWorker B? If so, how can I achieve this? What is the API to invoke another job worker? I tried:
Hi @khew - job workers are invoked by the process itself, not an API call. I think you have two options:
you can explicitly model the next job worker as a service task in your process, with a gateway before if needed. This is the route I would recommend because it is explicit about what is being invoked, when it is being invoked, and is therefore a more accurate reflection of your actual process than “hiding” the second job worker inside the first task.
refactor your job worker to have it’s logic contained in it’s own class and methods, and call that class/method from both job workers.
@khew - in short, it’s the command a job worker uses to invoke a queued job. The endpoint is documented here, and you can read about job worker activation here: