Camunda 8 Human Task Job Worker – Complete Guide with Properties & Examples
Camunda 8 Human Task Job Worker – Complete Guide with Properties & Examples
In Camunda 8, Human Tasks are implemented very differently from Camunda 7.
There is no embedded engine, no Java Delegates, and no direct Tasklist logic inside the engine.
Instead, Camunda 8 is built on Zeebe, a distributed, event-driven workflow engine, where job workers are responsible for executing work—including Human Task lifecycle management.
This blog explains:
✔ How Human Tasks work in Camunda 8
✔ What a Human Task Job Worker is
✔ All-important Human Task properties
✔ Assignment, completion, and variables
✔ Differences from Camunda 7
✔ Best practices and real-world examples
⭐ 1. How Human Tasks Work in Camunda 8 (Big Picture)
In Camunda 8:
-
A User Task in BPMN creates a Human Task job
-
The Tasklist application interacts with the engine
-
Workers handle lifecycle events (create, claim, complete)
-
The workflow continues only after the task is completed
⚠️ Important:
Human Tasks are asynchronous by design in Camunda 8.
⭐ 2. What Is a Human Task Job Worker?
A Human Task Job Worker is a worker that:
-
Subscribes to Human Task–related job types
-
Manages task state and metadata
-
Coordinates with Tasklist
-
Does NOT execute business logic (users do)
Unlike service task workers, human task workers mostly manage orchestration, not computation.
⭐ 3. BPMN Human Task in Camunda 8
A typical BPMN Human Task:
At runtime:
-
A job is created
-
The job waits for human interaction
-
Completion triggers workflow continuation
⭐ 4. Core Human Task Properties in Camunda 8
These properties are configured in Camunda Web Modeler or BPMN properties panel.
🔹 4.1 assignee
Defines the user responsible for the task.
✔ Single user
✔ Can be set dynamically using variables
Example:
🔹 4.2 candidateUsers
Defines users who can claim the task.
✔ Any listed user can claim
✔ Once claimed, task becomes exclusive
🔹 4.3 candidateGroups
Defines groups allowed to claim the task.
✔ Common in enterprise workflows
✔ Integrated with identity providers
🔹 4.4 dueDate
Defines when the task should be completed.
✔ Used for SLA tracking
✔ Visible in Tasklist
🔹 4.5 followUpDate
Used for reminders or escalation.
🔹 4.6 priority
Defines task importance.
✔ Higher value = higher priority
✔ Helps ordering in Tasklist
⭐ 5. Input & Output Variables (Human Task Mapping)
Input Mapping
Variables passed into the task:
Output Mapping
Variables returned after completion:
✔ Clean separation of scope
✔ Prevents accidental variable overwrite
⭐ 6. Task Claim, Complete & Lifecycle
Task Lifecycle:
-
Task is created
-
User claims task (optional)
-
User completes task
-
Engine resumes workflow
Completion triggers:
-
Variable updates
-
Gateway evaluation
-
Next BPMN step
⭐ 7. Tasklist Role in Camunda 8
Tasklist is a separate application that:
✔ Displays human tasks
✔ Handles claim/unclaim
✔ Submits completion data
✔ Talks to Zeebe via APIs
It is not embedded in the engine.
⭐ 8. Human Task vs Service Task Workers
| Feature | Human Task | Service Task |
|---|---|---|
| Executor | Human | Worker |
| Job Type | User Task | Custom type |
| Execution | Manual | Automatic |
| Duration | Minutes/Days | Milliseconds/Seconds |
| Retry | Manual/Process logic | Automatic retries |
| SLA | Important | Usually not |
⭐ 9. Comparison with Camunda 7 Human Tasks
| Aspect | Camunda 7 | Camunda 8 |
|---|---|---|
| Engine | Embedded | Distributed |
| Execution | Can be synchronous | Always async |
| Tasklist | Built-in | Separate app |
| Assignment | Engine-managed | Worker-managed |
| Scaling | Limited | Highly scalable |
| Transactions | ACID | Eventual consistency |
⭐ 10. Real-World Example: Loan Approval
Flow:
-
Customer submits loan request
-
Service Task validates data
-
Human Task: Loan Officer approval
-
Manager approval (conditional)
-
Final notification
Human Task properties:
-
candidateGroups = loan_officers -
priority = 90 -
dueDate = +2 days
⭐ 11. Best Practices for Camunda 8 Human Tasks
✔ Always use candidateGroups for scalability
✔ Avoid hard-coding assignees
✔ Use input/output mappings
✔ Set dueDate for SLA tracking
✔ Keep Human Tasks simple (decision, not logic)
✔ Combine with DMN for rule-based decisions
✔ Monitor with Operate
✔ Design for async completion
⚠️ Common Mistakes to Avoid
❌ Expecting synchronous behavior
❌ Putting business logic in Human Tasks
❌ Forgetting variable mapping
❌ Hard-coding user IDs
❌ Ignoring SLA properties
❌ Treating Camunda 8 like Camunda 7
🎉 Conclusion
In Camunda 8, Human Tasks are:
✔ Asynchronous
✔ Scalable
✔ Event-driven
✔ Managed via Job Workers and Tasklist
✔ Perfect for cloud-native architectures
Understanding Human Task Job Workers and properties is essential to design robust, enterprise-grade workflows in Camunda 8.
💼 Professional Support Available
If you are facing issues in real projects related to enterprise backend development or workflow automation, I provide paid consulting, production debugging, project support, and focused trainings.
Technologies covered include Java, Spring Boot, PL/SQL, Azure, and workflow automation (jBPM, Camunda BPM, RHPAM).
📧 Contact: ishikhanirankari@gmail.com | info@realtechnologiesindia.com
🌐 Website: IT Trainings | Digital metal podium
Comments
Post a Comment