Hello, I’m having an issue with Camunda self-managed.
I have a service task followed by a user task. After completing the service task, Camunda skips the user task, and I encounter an error at the gateway. How can I solve this? I use the Zeebe client to complete tasks.
@JobWorker(type = "validateForm")
public void validateForm(final JobClient client, final ActivatedJob job) {
logJob(job, "validateForm");
var variables = job.getVariablesAsType(HolderVariables.class);
service.checkOpenAccount(variables);
client.newCompleteCommand(job.getKey()).send().join();
}
Thanks for sharing all of this information.
Let’s try how the behaviour differs when adding a form to the user task which causes a problem. I have already added one to the BPMN model. Here is the updated version:
Thank you for all your help. I found a solution to this problem. The first user task should have been automatically solved using Zeebe, but this code finishes all user tasks, not just one by name.
Oh, I see.
Thanks for posting the solution to your problem.
P.S.: If you user workers to complete your user tasks, rather make it a service task right away.