ASSIGNEE_ AND OWNER AND DUE_DATE_ are not being copied on table ACT_HI_TASKINST

cancel
Showing results for 
Search instead for 
Did you mean: 
nikan_negaresh
Member II

ASSIGNEE_ AND OWNER AND DUE_DATE_ are not being copied on table ACT_HI_TASKINST

Hi All

We are using  user task Create Listener to set assignee and Due_DATE for a task using following code:

 onTaskAssignement(DelegateTask delegateTask){

delegateTask.setDueDate(date);

delegateTask.setAssignee('MR N');

}

This code was working on activiti 5.22 however we are now experiencing that the dueDate and Assignee are empty on table ACT_HI_TASKINST since we upgrade the engine to activti 6.0.0.

Can you please let me know if this is an expected behaviour and what is the alternative to get it write.

 FYI, we have requirement to define assignee at runtime

Regards

N

3 Replies
greenleaf
Member II

Re: ASSIGNEE_ AND OWNER AND DUE_DATE_ are not being copied on table ACT_HI_TASKINST

Since upgraded to Activiti 6.0.0, OWNER_ and  CATEGORY_are not being copied on table ACT_HI_TASKINST anymore.  Was working fine before upgrade (5.17)

Do you have this problem solved?

Any body has the similar problem, and how you solve this?

Data in ACT_RU_TASK saved fine, but not in ACT_HI_TASKINST 

insert into ACT_HI_TASKINST ( ID_, PROC_DEF_ID_, PROC_INST_ID_, EXECUTION_ID_, NAME_, PARENT_TASK_ID_, DESCRIPTION_, OWNER_, ASSIGNEE_, START_TIME_,

CLAIM_TIME_, END_TIME_, DURATION_, DELETE_REASON_, TASK_DEF_KEY_, FORM_KEY_, PRIORITY_, DUE_DATE_, CATEGORY_, TENANT_ID_ ) values ( ?, ?, ?, ?, ?, ?, ?, ?,

?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
insertHistoricTaskInstance:181 - ==>  value for OWNER_, CATEGORY_ are both null

insert into ACT_RU_TASK (ID_, REV_, NAME_, PARENT_TASK_ID_, DESCRIPTION_, PRIORITY_, CREATE_TIME_, OWNER_, ASSIGNEE_, DELEGATION_, EXECUTION_ID_,

PROC_INST_ID_, PROC_DEF_ID_, TASK_DEF_KEY_, DUE_DATE_, CATEGORY_, SUSPENSION_STATE_, TENANT_ID_, FORM_KEY_, CLAIM_TIME_) values (?, 1, ?, ?, ?, ?, ?, ?, ?,

?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )

insertTask:181 - ==> Parameters: value for OWNER_, CATEGORY_ are both good

Muskiehunter198
Member II

Re: ASSIGNEE_ AND OWNER AND DUE_DATE_ are not being copied on table ACT_HI_TASKINST

Did you ever find a solution to this?  Struggling with the same issue.

EddieMay
Alfresco Employee

Re: ASSIGNEE_ AND OWNER AND DUE_DATE_ are not being copied on table ACT_HI_TASKINST

Hi @Muskiehunter198,

Activiti v6 isn't supported anymore & in v7 (cloud) history is no longer enabled.

Take care,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!