cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti engine got stuck while completing workflow stage

prathameshj
Champ on-the-rise
Champ on-the-rise
Hi all,
I am using Activiti 5.18 with Oracle 11 g. I am having  a issue where it seems like process engine is getting stuck for infinite time while performing
taskService.complete()
operation.It hangs up while updating <b>ACT_HI_TASKINST</b> table. Hence I am unable to approve my stage. It doesn't even show any error log.
Following are my logs while generated by 
taskService.complete()
operation.


DEBUG [http-8080-6] DEBUG org.activiti.engine.impl.persistence.entity.JobEntity.insertTimer:132 -<==    Updates: 1
DEBUG [http-8080-6] DEBUG org.activiti.engine.impl.db.DbSqlSession:869 -updating: org.activiti.engine.impl.persistence.entity.HistoricTaskInstanceEntity@63b6a56e
DEBUG [http-8080-6] DEBUG org.activiti.engine.impl.persistence.entity.HistoricTaskInstanceEntity.updateHistoricTaskInstance:132 -ooo Using Connection [Transaction-aware proxy for target Connection [com.mchange.v2.c3p0.impl.NewProxyConnection@3589c3ef]]
DEBUG [http-8080-6] DEBUG org.activiti.engine.impl.persistence.entity.HistoricTaskInstanceEntity.updateHistoricTaskInstance:132 -==>  Preparing: update ACT_HI_TASKINST set EXECUTION_ID_ = ?, NAME_ = ?, PARENT_TASK_ID_ = ?, DESCRIPTION_ = ?, OWNER_ = ?, ASSIGNEE_ = ?, CLAIM_TIME_ = ?, END_TIME_ = ?, DURATION_ = ?, DELETE_REASON_ = ?, TASK_DEF_KEY_ = ?, FORM_KEY_ = ?, PRIORITY_ = ?, DUE_DATE_ = ?, CATEGORY_ = ? where ID_ = ?
DEBUG [http-8080-6] DEBUG org.activiti.engine.impl.persistence.entity.HistoricTaskInstanceEntity.updateHistoricTaskInstance:132 -==> Parameters: 502507(String), Pending Risk(String), null, null, null, pankaj(String), 2016-10-06 17:07:55.404(Timestamp), 2016-10-06 19:12:50.978(Timestamp), 7511456(Long), completed(String), PendingRisk(String), null, 50(Integer), null, null, 502510(String)



Any help will be appreciated.
Thanks.
2 REPLIES 2

faizal-manan
Champ in-the-making
Champ in-the-making
Hi,
Could you please verify is dead-lock happen during execution?

prathameshj
Champ on-the-rise
Champ on-the-rise
@Faizal thanks for your answer. Actually it was deadlock issue. Got it solved now. Thanks.