Flowable fails to mark task complete

Hi
We have a workflow with some complex condition defined on Exclusive Gateway like this.
${campaign_manager_approval==‘Yes’ and (opt_out_info==‘Yes’ and contact_policy_info==‘Yes’) and vip_info==‘No’}
When this workflow is initiated it gets stuck randomly at any task in the workflow. I am using taskService.complete(taskId) to mark task completed. But flowable fails to mark task complete.

It does not give any error or exception, why it failed. Also nothing is seen in flowable debug logs.

Please advice…

hey @hemant.karkande,

Getting stuck randomly sounds really strange. Do you by any chance have async tasks? Can you perhaps look into the dead letter job table to see if you have some jobs there?

Cheers,
Filip

Hi filiphr,
Workflow does not have any async task, will check for any job in dead letter job table.

Getting no error message is also quite confusing. In any case you are trying to complete task why multiple threads in parallel? It might happen that 2 threads trying to complete same task.
But I would strongly suggest to look at the logs. Maybe you are catching exceptions but not logging it or rethrowing it.

It started working as expected after simplifying above condition and adding few more gateways.