AnsweredAssumed Answered

How to set OWNER_ in ACT_HI_TASKINST

Question asked by greenleaf on Apr 4, 2018

Since we upgraded from Activiti 5.17 to 6.0.0, OWNER_ column in  ACT_HI_TASKINST is null and not data not persisted in database.

I set task owner in TaskListener with java:

delegateTask.setOwner((String)execution.getVariable("task_owner"));  The OWNER_ data set properly in

ACT_RU_TASK but not in ACT_HI_TASKINST.  I tried TaskListener for create and also tried for completion, both not work.

 

Another task property: CATEGORY_ has the similar problem,

delegateTask.setCategory((String) execution.getVariable("entity_type"));  worked fine in 5.17, but not saved in 6.0.0.

Figured out CATEGORY_ can be saved into ACT_HI_TASKINST if I set that in task main config as in the screenshot. 

 

 

But I have not found a way to make OWNER_ saved in ACT_HI_TASKINST.   Do any body have this kind of problem?  I do need some your help. 

Thanks

Outcomes