jBPM Workflow Tutorial: Start → 👤 Human Task → ✅ End (Step-by-Step)
🚀What you’ll build
A minimal jBPM process with three nodes: Start → Human Task → End. You’ll deploy it from Business Central, start an instance, and complete the human task as an assigned user.
⚙️🛠️ Prerequisites
-
💻 jBPM/Business Central & KIE Server bundle (7.x or 8.x community)
-
☕ JDK 11+ (JDK 17 is fine)
-
👨💼 User with roles:
admin, analyst, developer, manager, kiemgmt -
🌐 Browser access to:
http://localhost:8080/business-central
📝 Step 1: Create a Project in Business Central
-
🔑 Log in → Design → Projects → Add Project
-
📂 Name: hr-approval
-
➕ Add Asset → Business Process → Name: SimpleApproval
-
🎨 Step 2: Draw the Process (🔵 Start → 👤 Human Task → ✅ End)
-
➕ Add a Start node
-
👤 Add a User Task (Human Task)
-
✅ Add an End node
-
🔗 Connect them in sequence
👉 Configure the User Task:
-
🏷️ Name: Approve Request
-
📝 Task Name: approve-request
-
👥 Actors: manager
📊 Step 3: Define Data (optional)
-
Add process variable:
approved:Boolean -
Map Human Task output → process variable
🗂️ Step 4: Generate a Simple Form
-
⚡ Auto-generate a form for the Human Task
-
📋 Form contains a checkbox for
approved
🔨 Step 5: Validate and Build
-
💾 Save the process
-
🛠️ Build & Install
-
📦 Ensure deployment on KIE Server
▶️ Step 6: Start the Process
-
Go to Menu → Manage → Process Definitions
-
▶️ Start a new instance of Simple Approval
👨💻 Step 7: Claim and Complete the Human Task
-
🔍 Check tasks under Manage → Tasks
-
✋ Claim the task
-
▶️ Start it
-
✅ Complete the task (e.g.,
approved = true)
🌐 Step 8: (Optional) Use REST API
-
📡 Start process
Start a process
Example curl
Find tasks for a user
📡 Complete task
PUT /kie-server/services/rest/server/containers/{containerId}/tasks/{taskId}/states/completed
Body: {"approved": true}
curl complete
🛠️ Step 9: Quick Troubleshooting
-
❌ No tasks? Check if user is in
managerrole -
⚠️ Build not deployed? Verify container status on KIE Server
-
🔄 405 error? Ensure correct HTTP method (PUT/POST)
👉Watch jBPM Workflow Practical in Action better:
🎯 Conclusion
The 👤 Human Task workflow shows how people can actively participate in automated processes by claiming and completing tasks assigned to them.
This simple 🔵 Start → 👤 Human Task → ✅ End workflow is the foundation of real-world approval or review systems.
By completing this tutorial, you learned how to:
👥 Assign tasks to actors or groups
📋 Generate and use task forms
🔄 Claim, start, and complete tasks via UI or REST API
👉 Next, try enhancing this workflow by adding:
🔀 Gateways for conditional branching
⚙️ Service Tasks for integration
💻 Script Tasks for automation
Mastering Human Tasks is essential since almost every business process involves people — and this example sets the stage for building enterprise-grade workflows with jBPM.
👥 Assign tasks to actors or groups
📋 Generate and use task forms
Mastering Human Tasks is essential since almost every business process involves people — and this example sets the stage for building enterprise-grade workflows with jBPM.
💼 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