Hi,everyone。How can I subscribe to the job type to complete the job manually in io.camunda.zeebe:userTask.
User tasks | Camunda 8 Docs
I got it.
@JobWorker(type = "io.camunda.zeebe:userTask", autoComplete = false,
fetchAllVariables = true)
public void handleUserTasks(final ActivatedJob job) {
long jobKey = job.getKey();
long instanceId = job.getProcessInstanceKey();
String bpmnProcessId = job.getBpmnProcessId();
Map<String, String> customHeaders = job.getCustomHeaders(); // This is where the assignment is.
// Save the data in elastic or db. Use that to make your queries.
}
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.