We faced similar issue in our application. we were claiming the task and completing it immediately. Here I believe by the time JBPM engine was notifying HT server about claiming the task we were issuing task complete command to JBPM engine. That was our analysis as in real scenario user should first claim the task then work on it and then complete the task.