# how to subscribe to the job type to complete the job manually.io.camunda.zeebe:userTask

**URL:** <https://forum.camunda.io/t/how-to-subscribe-to-the-job-type-to-complete-the-job-manually-io-camunda-zeebe-usertask/50698>\
**Category:** Camunda 8 Topics\
**Tags:** process-engine, zeebe\
**Created:** [February 23, 2024, 8:20am UTC](https://forum.camunda.io/t/how-to-subscribe-to-the-job-type-to-complete-the-job-manually-io-camunda-zeebe-usertask/50698 "2024-02-23T08:20:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kric](https://forum.camunda.io/user_avatar/forum.camunda.io/kric/32/28546_2.png) [@Kric](https://forum.camunda.io/u/Kric)\
**Post date:** [February 23, 2024, 8:20am UTC](https://forum.camunda.io/t/how-to-subscribe-to-the-job-type-to-complete-the-job-manually-io-camunda-zeebe-usertask/50698/1 "2024-02-23T08:20:41Z")

</div>

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](https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/)

---

<div class="post-metadata">

**Author:** ![Kric](https://forum.camunda.io/user_avatar/forum.camunda.io/kric/32/28546_2.png) [@Kric](https://forum.camunda.io/u/Kric)\
**Post date:** [February 23, 2024, 8:29am UTC](https://forum.camunda.io/t/how-to-subscribe-to-the-job-type-to-complete-the-job-manually-io-camunda-zeebe-usertask/50698/2 "2024-02-23T08:29:08Z")

</div>

I got it.

```auto
@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.
    }

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [May 23, 2024, 8:29am UTC](https://forum.camunda.io/t/how-to-subscribe-to-the-job-type-to-complete-the-job-manually-io-camunda-zeebe-usertask/50698/3 "2024-05-23T08:29:35Z")

</div>

Closed on May 23, 2024, 8:29am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
